1. 程式人生 > >區域網或遠端連線mysql資料庫伺服器,出現Host 'localhost' is not allowed to connect to this MySQL server 錯誤解決方法

區域網或遠端連線mysql資料庫伺服器,出現Host 'localhost' is not allowed to connect to this MySQL server 錯誤解決方法

1、在mysql伺服器安裝目錄下,找到my.ini檔案。C:\Program Files\MySQL\MySQL Server 5.5\my.ini

2、在[mysqld]節點下加下面兩行程式碼:

skip-name-resolve
skip-grant-tables

3、重啟mysql的windows服務

相關推薦

no