Home > Article > Operation and Maintenance > How to delete mysql using yum in linux
Deletion method: 1. Use the "rpm -qa | grep -i mysql" command to view all dependency information of mysql; 2. Use the "yum remove mysql dependency" command to uninstall all dependencies in sequence; 3. Use "rm -rf file or directory" command to delete the related files and directories of mysql.
The operating environment of this tutorial: linux5.9.8 system, mysql8 version, Dell G3 computer.
Use yum to delete mysql under linux
1. Check the installed mysql and list all dependencies
View command:
rpm -qa | grep -i mysql
will list all dependencies of mysql
2. Uninstall mysql
Use the yum remove mysql dependency
command to uninstall all mysql dependencies in sequence
Example:
yum remove mysql-community-server-5.6.36-2.el7.x86_64
3. Delete the mysql file directory
Use rm -rf file or directory
Delete the mysql file directory in sequence
If you do not know the mysql file directory, you can use: find / -name mysql
View related file directories
Uninstallation completed
[Related recommendations: mysql video Tutorial】
The above is the detailed content of How to delete mysql using yum in linux. For more information, please follow other related articles on the PHP Chinese website!