service mysql stop 或 /etc/init.d/mysql stop 或 mysqladmin shutdown -uroot -p
whereis mysql find / -name mysql rm -rf xxx
cd /usr/local/ unlink mysql
chkconfig --del mysql rm -f /etc/init.d/mysql /etc/my.cnf
userdel mysql groupdel mysql
service mysql stop 或 /etc/init.d/mysql stop 或 mysqladmin shutdown -uroot -p
rpm -qa | grep -i mariadb
rpm -e mariaDB-xxx
在上一步查到的全部包。(不建议使用yum remove来删除,由于会删除依赖包,有可能程序也在使用这些依赖包,从而形成其余程序出错)mysql
whereis mysql find / -name mysql rm -rf xxx
userdel mysql groupdel mysql