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 *** //***替换为上面查询出的文件夹路径

 

相关文章:

  • 2022-02-22
  • 2021-04-15
  • 2021-06-05
  • 2022-02-15
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
  • 2022-01-20
猜你喜欢
  • 2021-07-05
  • 2022-12-23
  • 2022-12-23
  • 2021-10-02
  • 2022-02-05
  • 2021-06-11
  • 2022-12-23
相关资源
相似解决方案