1.从MySQL Yum仓库下载最新的rpm文件:http://dev.mysql.com/downloads/repo/yum/
CentOS 6 http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
2.yum remove mysql mysql-*
3.mysql-community-release-el6-5.noarch.rpm
4.yum localinstall mysql-community-release-el6-5.noarch.rpm
5.可以通过下面的命令来确认这个仓库被成功添加:
yum repolist enabled | grep "mysql.*-community.*
6.yum install mysql-community-server
设置currenttime
http://www.metsky.com/archives/118.html
参考文件:
http://blog.csdn.net/shootyou/article/details/8236886
记得删除老版本的/etc/my.conf,/var/lib/mysql, 或者备份老版本的mysql
否则可能会起动不起来
http://www.th7.cn/db/mysql/201408/66691.shtml