‘Host’ is not allowed to connect to this mysql server


‘Host’ is not allowed to  connect to this mysql server

        mysql 數據庫不允許遠程連接

 

方法一:修改 host 表

       進入mysql數據庫,選擇mysql 

mysql> use mysql;

   選擇 host 表

mysql> select host from user;

   更新 host, 然后退出。

mysql> update user set host = '%' where user='root';

    重啟數據庫, 完成。

# service mysqld restart

    

 

 --------------  打賞碼  --------------------------------    

 


免責聲明!

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



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