CentOS 7 卸载删除MariaDB教程

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
posted @ 2021-01-04 13:12  风无心客  阅读(5200)  评论(0编辑  收藏  举报