mysql under Linux system uninstall

1. Check the mysql installed

Command: rpm -qa | grep -i mysql

 

 

2. Uninstall mysql

Command: yum remove mysql-community-server-5.6.45-2.el7.x86_64 (version filled in accordance with the actual situation)

 

 View other dependent mysql: rpm -qa | grep -i mysql

Use yum remove mysql-xxx in turn unloaded until all the other rely mysql unloading up

 

3. Delete the file mysql directory

Use the mysql command to view the associated file directory: find / -name mysql

 

 Rm -rf command to delete files using mysql directory

 

 So far mysql has been successfully uninstalled

 

Guess you like

Origin www.cnblogs.com/pretty88/p/11585122.html