Create a directory where you need to download the RPM package package:
See if the system has a MySQL package if it has been deleted
# rpm-qa|grep MySQL
mysql-libs-5.1.71-1.el6.x86_64
mysql-server-5.1.71-1el6.x86_64
# yum Remove Mysql-server mysql-libs
#rpm-qa|grep MySQL
#
This means that there is no MySQL package if the MySQL has been installed after the removal of the package also need to operate
# Find/-name MYSLQ
/var/lib/mysql
/var/lib/mysql/mysql
/var/lock/subsgs/myslq
# rm-rf/var/lib/ MySQL
# rm-rf/vra/lib/mysql/mysql
Check to see if the MYSLQ installation directory is clean at once
Also need to download 3 packages on the website:
Install these three packages:
# RPM-IVH mysql-server-5.6.21-1.rhel5.x86_64.rpm
#rpm-ivh mysql-client-5.6.21-1.rhel5.x86_64.rpm
# RPM-IVH mysql-devel-5.6.21-1.rhel5.x86_64.rpm
If the error is installed Libaio package in the installation
Initializing MySQL
#/usr/bin/mysql_install_db
View MySQL's initial password
# Less/root/.mysql and press the TAB key and then press the enter colon after a string of characters is the MySQL password
Login MySQL Modify password
Mysql-uroot-pf6k3v_xggfolqein
Enter MySQL to modify password
mysql> SET Password=password (' 123.COM ');
Mysql> Exit
Bye
Login to see if the password was modified successfully:
# mysql-uroot-p123.com
set mysql boot up
# chkconfig MySQL on
# chkconfig MySQL--list
Install MySQL 5.6.21 to this installation complete, thank you
The above is a small set to introduce the CentOS 6.5 under the installation of MySQL 5.6.21 method, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!