1.wget dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
2.yum install mysql-community-release-el6-5.noarch.rpm
3.yum install mysql-community-server
4.service mysqld start
5.mysql
6.修改密码
mysql> SET PASSWORD FOR ‘root‘@‘localhost‘ = PASSWORD(‘newpass‘);
7.
grant all privileges on *.* to ‘root‘@‘%‘ identified by ‘上一部的newpass‘ with grant option;
FLUSH PRIVILEGES;
8.service mysqld restart