STEP1: Check whether the system comes with the installation of MySQL
# Yum List Installed | grep MySQL
STEP2: Delete the system's own MySQL and its dependencies
Command:
# yum-y Remove mysql-libs.x86_64
STEP3: Add a RPM source to CentOS and select a newer source
Command:
# wget dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm# yum localinstall mysql-community-release-el6-5.noarch.rpm# yum repolist all | grep mysql# yum-config-manager --disable mysql55-community# yum-config-manager --disable Mysql56-community# yum-config-manager --enable mysql57-community-dmr# yum repolist enabled | grep mysql
STEP4: Installing the MySQL server
Command:
# yum Install Mysql-community-server
STEP5: Start MySQL
Command:
# service Mysqld Start
STEP6: Check if MySQL is self-booting and set on self-boot
Command:
# chkconfig--list | grep mysqld# chkconfig mysqld on
This article from "Endless life, toss more than" blog, please be sure to keep this source http://admxj.blog.51cto.com/10955090/1843264
The most complete version of the CentOS 6.5/6.6 installation MySQL 5.7 tutorial