1, go to Yum's Repo folder
Cd/etc/yum.repos.d
The 2,mysql home page already provides the RPM files required by systems such as CentOS to go directly to the homepage for download.
I use the centos6.5, choose the version of Red Hat Enterprise linux 6/oracle Linux 6 (Architecture Independent), RPM package.
# wget http://hogehoge.com/mysql-community-release-el6-5.noarch.rpm
# RPM-IVH mysql-community-release-el6-5.noarch.rpm
After installing the rpm file in the/etc/yum.repos.d folder appears Mysql-community-source.repo, with vim to open the file. You can see that it contains 5.7 of the information, only the parameter enable=0, modified to enable=1, you can install the 5.7 version through Yum.
The next step is to stop the old version of MySQL service, then back up the database, modify permissions, delete the old version, install the new version directly with Yum.
Reference:
Http://blog.ybbo.net/2014/01/22/%E3%80%90%E3%82%B7%E3%83%B3%E3%83%97%E3%83%AB%E3%80%91centos6%E3%81%ABmysql5-6 %e3%82%92yum%e3%81%a7%e7%b0%a1%e5%8d%98%e3%81%ab%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81% 99%e3%82%8b/
http://www.seta-blog.co.jp/mysql-5-1-to-5-7/
Installing MySQL5.7.4 with Yum