[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服務(wù)
查看MySQL服務(wù)器的狀態(tài)
設(shè)置開機(jī)啟動
生成隨機(jī)密碼
grep 'temporary password' /var/log/mysqld.log
重新登陸
mysql -uroot -p
b/xE8hdZoEwJ
配置Mysql 密碼以及權(quán)限
ALTER USER 'root'@'localhost' IDENTIFIED BY 'Report@123';
允許root用戶在任何地方進(jìn)行遠(yuǎn)程登錄,并具有所有庫任何操作權(quán)限
[code]GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'Report@123' WITH GRANT OPTION;
FLUSH PRIVILEGES;