[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
驗(yàn)證正確的subrepositories已啟用和禁用通過(guò)運(yùn)行以下命令來(lái)檢查它的輸出(DNF啟用系統(tǒng),取代百勝在DNF的命令)
yum install -y mysql-community-common mysql-community-libs mysql-community-client mysql-community-server mysql-community-devel
啟動(dòng)Mysql服務(wù)
查看MySQL服務(wù)器的狀態(tài)
設(shè)置開(kāi)機(jī)啟動(dòng)
生成隨機(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)程登錄,并具有所有庫(kù)任何操作權(quán)限
[code]GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'Report@123' WITH GRANT OPTION;
FLUSH PRIVILEGES;