CentOS6.5 安装 Mysql5.6

2014年08月28日

CentOS6系列默认安装的Mysql版本为5.1,今天讨论如何将其升级到5.6

查看现有mysql版本

# rpm -qa | grep mysql
mysql-utilities-1.3.6-1.el6.noarch
mysql-server-5.1.71-1.el6.x86_64
mysql-libs-5.1.71-1.el6.x86_64
mysql-5.1.71-1.el6.x86_64
mysql-connector-python-1.1.4-1.el6.noarch
mysql-devel-5.1.71-1.el6.x86_64

删除旧版本Mysql

# yum remove mysql*

添加mysql库

# yum install http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm

安装新的Mysql

#yum install mysql mysql-devel mysql-server mysql-utilities

查看新版本

# rpm -qa | grep mysql
mysql-community-libs-5.6.20-4.el6.x86_64
mysql-community-client-5.6.20-4.el6.x86_64
mysql-utilities-1.4.4-1.el6.noarch
mysql-community-release-el6-5.noarch
mysql-community-common-5.6.20-4.el6.x86_64
mysql-connector-python-1.2.2-1.el6.noarch
mysql-community-server-5.6.20-4.el6.x86_64
mysql-community-devel-5.6.20-4.el6.x86_64