CentOS 7.x 卸载删除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