转 重装mariadb

CentOS 7.x 卸载删除MariaDB,重新安装

转 重装mariadb TsengYUen 2019.02.19 10:51:23字数 60阅读 2,118

1、 卸载

rpm –qa | grep mariadb

yum remove mariadb

2、 删除遗留目录

ls /etc/my.cnf

ll /var/lib/mysql/

rm –rf /etc/my.cnf

rm –rf /var/lib/mysql/

3、 重新安装

yum install mariadb mariadb-server –y

systemctl start mariadb

systemctl enable mariadb

mysql_secure_installation

mysql –u root –p

上一篇:第43月第2天 解决MySQL报错:1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column &


下一篇:Linux下安装mysql-8.0.20