Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
1 ,. View system version.
CAT # / proc / Version, uname
# CAT / etc / RedHat-Release
2, check whether they have the mysql installation.
# Rpm -qa | grep mysql *
3, stop the database service.
# Service mysqld stop
4, delete the mysql service boot from the start.
Chkconfig --list # | grep MySQL
# chkconfig mysqld --del
5, remove mysql package.
# Yum remove -y mysql *
6, mysql query related files and delete.
# Find / -name mysql * | xargs rm -rf
or
# find / -name mysql * -exec rm -rf {} \;
or
# rm -rf $ (find / -name mysql *)