mysql遠程鏈接 Host * is not allowed to connect to this MySQL server

在本機登入mysql後,更改"mysql"數據庫裏的"user"表裏的"host"項,從"localhost"改成’%’。mysql

代碼以下:sql

use mysql;

update user set Host='%' where Host='root';

最後重啓MySql服務,個人電腦 -> 右鍵管理 -> 打開服務列表 -> 從新啓動mysql。數據庫

相關文章
相關標籤/搜索