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 dependent commands:
# yum -y remove mysql-libs.x86_64
STEP3: Add the 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: Install MySQL server command:
install mysql-community-server
STEP5: Start mysql command:
# service mysqld start
STEP6: Check to see if MySQL is self-booting, and set the self-start command to open:
# chkconfig --list | grep mysqld# chkconfig mysqld on
Step7:mysql Security Settings command:
# mysql_secure_installation
Refer to the relevant document address:
Http://www.rackspace.com/know ...
Http://dev.mysql.com/doc/refm ...
Http://www.cnblogs.com/xiaolu ...
- Published on August 04, 2015
- More
CentOS 6.5/6.6 Installation (install) MySQL 5.7 The most complete version of the tutorial