MySQL Tutorial
MySQL Installation and Configuration
MySQL Database Operations
Database Design
MySQL Data Types
MySQL Storage Engines
MySQL Basic Operations of Tables
MySQL Constraints
MySQL Operators
MySQL Function
MySQL Manipulate Table Data
MySQL View
MySQL Indexes
MySQL Stored Procedure
MySQL Trigger
MySQL Transactions
MySQL Character Set
MySQL User Management
MySQL Database Backup and Recovery
MySQL Log
MySQL Performance Optimization
[root@bogon Desktop]# rpm -qa|grep -i mysql mysql-libs-5.1.71-1.el6.x86_64The result shows that the MySQL installed on Linux is the mysql-libs-5.1.71-1.el6.x86_64 version.
service mysql stop rpm -e --nodeps mysql-libs-5.1.71-1.el6.x86_64Note: If you get an error, you can use the command rpm -ev mysql-libs-5.1.71-1.el6.x86_64 --nodeps or rpm -e --noscripts mysql-libs-5.1.71-1.el6.x86_64 to uninstall MySQL .
find / -name mysqlAfter the MySQL directory is displayed, the directory can be deleted using the following command.
rm -rf 目录名4) Find out again whether MySQL is installed in the current system.
rpm -qa|grep -i mysqlIf no result is displayed, it means that it has been uninstalled cleanly, and then you can directly install MySQL.
Uninstall MySQL in CentOS:
sudo yum remove mysql-server mysql
Remove MySQL from CentOS system:
sudo yum remove mysql-server mysql
Cleanly uninstall MySQL on Linux:
sudo yum remove mysql-server mysql sudo rm -rf /var/lib/mysql sudo rm -rf /etc/my.cnf
Preparing for MySQL reinstall on CentOS:
sudo yum remove mysql-server mysql sudo yum clean all
Backup MySQL databases before uninstall:
mysqldump -u [username] -p[password] [database_name] > backup.sql
Uninstall MySQL and dependencies CentOS:
sudo yum autoremove mysql-server mysql
Purge MySQL from CentOS:
sudo yum erase mysql-server mysql
Completely remove MySQL on Linux:
sudo yum erase mysql-server mysql sudo rm -rf /var/lib/mysql sudo rm -rf /etc/my.cnf
CentOS uninstall MySQL and reinstall steps:
sudo yum remove mysql-server mysql sudo yum clean all
Check for existing MySQL installations CentOS:
rpm -qa | grep mysql