1. 查看当前mysql
yum list installed | grep -i mysql
2.卸载老版mysql
yum remove mysql mysql-*
3.添加 rpm 库
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
4. 安装mysql
yum --enablerepo=remi,remi-test install mysql mysql-server
5.查看新版mysql是否安装成功
yum list installed | grep -i mysql
6.启动 mysql
service mysqld start
7.设置开机启动mysql
chkconfig --levels 235 mysqld on
ok,大功告成!