rpm -qa|grep MysqL
yum remove MysqL-libs
2、安装MysqL YUM源
wgethttp://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
rpm -ivhMysqL-community-release-el6-5.noarch.rpm
3、安装MysqL
yum install MysqL-serverMysqL-devel
4、warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY,key ID*****
rpm --import /etc/pki/rpm-gpg/RPM*
5、root密码设置
service MysqLd stop
MysqLd_safe --skip-grant-tables &
MysqL -u root -p 回车直接进去,或者随便输入一个密码
use MysqL;
update user set password=PASSWORD("newpass")where user="root"; 更改密码为 newpassord
flush privileges; 更新权限
quit