1.下載YUM庫 shell > wget http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm 2.安裝YUM庫 shell > yum localinstall -y mysql57-community-release-el7-7.noarch.rpm 3.安裝數(shù)據(jù)庫 shell > yum install -y mysql-community-server 4.啟動(dòng)MySQL服務(wù) shell > systemctl start mysqld.service 5.默認(rèn)空密碼 shell > mysql -uroot -p 6.重置root密碼后重啟mysql服務(wù) shell > update mysql.user set authentication_string=passWord(“yourpassword”) where user=”root” and Host=”localhost”; shell > flush PRivileges; shell > quit; shell > systemctl restart mysqld; 如果手賤或者不知道啥原因出現(xiàn)如下問題: ERROR 1045 (28000): access denied for user ‘root’@’localhost’ (using password: NO) 請(qǐng)修改my.cnf,添加skip-grant-tables和skip-networking: shell > vi /etc/my.cnf
如果啟動(dòng)mysql過程中出現(xiàn)錯(cuò)誤,請(qǐng)查看我的;另一篇博客:http://blog.csdn.net/lzc4869/article/details/54893415
新聞熱點(diǎn)
疑難解答
圖片精選
網(wǎng)友關(guān)注