錯誤信息: SQL Error (1130): Host ‘192.168.1.88’ is not allowed to connect to this MySQL server
說明所連接的用戶帳號沒有遠程連接的權限,只能在本機(localhost)登錄。
需更改 mysql 數據庫里的 user表里的 host項
把localhost改稱%
登錄mysql服務器,執行以下命令
mysql>use mysql;
mysql>update user set host = ‘%’ where user =’root’;
mysql>flush privileges;
mysql>quit
備注:雲服務器設置遠程訪問別忘了開放3306端口,否則連接不上
--------------------- 本文來自 Black毒葯 的CSDN 博客 ,全文地址請點擊:https://blog.csdn.net/runner1920/article/details/79495595?utm_source=copy