# download
wget http://repo.mysql.com/mysql57-community-release-el6-10.noarch.rpm
# installation
yum -y localinstall mysql57-community-release-el6-10.noarch.rpm
# or
rpm -Uvh mysql57-community-release-el6-10.noarch.rpm
[ root@centos6 mysql5.7_centos6]# ls -lh /etc/yum.repos.d/
total 24K
- rw-r--r--1 root root 2.6K Feb 2419:43 CentOS-Base.repo
- rw-r--r--1 root root 1.4K Feb 2419:43 CentOS-Base.repo.backup
- rw-r--r--1 root root 220 Feb 2419:43 CentOS-Epel.repo
- rw-r--r--1 root root 175 Mar 82014 devtoolset-2.repo
- rw-r--r--1 root root 1.6K Apr 52017 mysql-community.repo
- rw-r--r--1 root root 1.7K Apr 52017 mysql-community-source.repo
[ root@centos6 mysql5.7_centos6]#
yum -y install mysql-community-server
[ root@centos6 mysql5.7_centos6]# mysql -V
mysql Ver 14.14 Distrib 5.7.26,forLinux(x86_64) using EditLine wrapper
Recommended Posts