# rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpmmysql
# rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpmsql
# yum repolist enabled | grep "mysql.*-community.*"
mysql-connectors-community/x86_64 MySQL Connectors Community
mysql-tools-community/x86_64 MySQL Tools Community
mysql56-community/x86_64 MySQL 5.6 Community Server server
從上面的列表能夠看出, mysql56-community/x86_64 和 MySQL 5.6 Community Server 可使用。
所以,咱們就能夠直接用yum方式安裝了MySQL5.6版本了。資源
# yum -y install mysql-community-serverget
# mysql -Vit