mysql 出現Host 'localhost' is not allowed to connect to this MySQL server 錯誤


MySql數據庫:Host 'localhost' is not allowed to connect to this MySQL server

修改mysql的root密碼后,出現Host 'localhost' is not allowed to connect to this MySQL server 錯誤。

 

解決辦法:

 

C:\Program Files\MySQL\MySQL Server 5.5\my.ini

 

在[mysqld]下加下面兩行,

 

skip-name-resolve

skip-grant-tables

 

重啟mysql的windows服務


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM