[root@localhost /]# rpm -e --nodeps qt-MySQL-4.6.2-26.el6_4.x86_64
[root@localhost /]# rpm -e --nodeps mysql-server-5.1.71-1.el6.x86_64
[root@localhost /]# rpm -e --nodeps mysql-libs-5.1.71-1.el6.x86_64
[root@localhost /]# rpm -e --nodeps mysql-devel-5.1.71-1.el6.x86_64
[root@localhost /]# rpm -e --nodeps mysql-5.1.71-1.el6.x86_64
[root@localhost /]# rpm -qa | grep mysql
yum install -y mysql-community-common mysql-community-libs mysql-community-client mysql-community-server mysql-community-devel
启动Mysql服务
查看MySQL服务器的状态
设置开机启动
生成随机密码
grep 'temporary password' /var/log/mysqld.log
重新登陆
mysql -uroot -p
b/xE8hdZoEwJ
配置Mysql 密码以及权限
ALTER USER 'root'@'localhost' IDENTIFIED BY 'Report@123';
允许root用户在任何地方进行远程登录,并具有所有库任何操作权限
[code]GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'Report@123' WITH GRANT OPTION;
FLUSH PRIVILEGES;