Tip 1
在使用mariadb中启动服务报错 :
Failed to start mariadb.service: Unit not found.
解决办法:
yum install -y mariadb-server //安装服务
systemctl start mariadb.service //开启服务
systemctl enable mariadb.service //设置开机启动
Tip 2
安装mariadb:
yum install mariadb-server mariadb
相关操作:
systemctl start mariadb //启动 systemctl stop mariadb //停止 systemctl restart mariadb //重启 systemctl enable mariadb //设置开机自启
Tip 3
卸载mysql:
rpm -qa|grep -i mysql //查看安装了哪些mysql组件
rpm -ev --nodeps *** //***替换为组件名称 删除所有相关组件
find / -name mysql //查看所有mysql残存文件夹
rm -rf *** //***替换为上面查询出的文件夹路径