Install MySQL 5.7 On CentOS
1. Download mysql57-community-release-el6-8.noarch.rpm from mysql Official Website
2. Install the rpm downloaded in step 1
rpm -ivh mysql57-community-release-el6-8.noarch.rpm
3. After the installation is complete, we found that two new files are added under the/etc/yum. repos. d directory. The second file records the mysql source information.
1 mysql-community.repo2 mysql-community-source.repo
4. view available mysql installation sources
yum repolist enabled | grep mysql 1 mysql-connectors-community MySQL Connectors Community 212 mysql-tools-community MySQL Tools Community 243 mysql57-community MySQL 5.7 Community Server 56
5. Use yum to install mysql (automatically solves the dependency problem and installs other related packages) (if you need to save the downloaded package, modify/etc/yum. conf and
Change keepcache = 0 to keepcache = 1)
yum install mysql-community-server
Installing:
Mysql-community-libs i686 5.7.13-1. el6 mysql57-community 2.0 M
Replacing mysql-libs.i686 5.1.73-3. el6_5
Mysql-community-libs-compat i686 5.7.13-1. el6 mysql57-community 1.6 M
Replacing mysql-libs.i686 5.1.73-3. el6_5
Mysql-community-server i686 5.7.13-1. el6 mysql57-community 140 M
Installing for dependencies:
Mysql-community-client i686 5.7.13-1. el6 mysql57-community 22 M
Mysql-community-common i686 5.7.13-1. el6 mysql57-community 327 k
Updating for dependencies:
Postfix i686. 6.6-6. el6_7.1 base 2.0 M
Transaction Summary
========================================================== ========================================================== ====================
Install 5 Package (s)
Upgrade 1 Package (s)
6. Check the mysql service status after the installation is complete.
sudo service mysqld status mysqld (pid 26422)