Mysql受權遠程登陸

Mysql受權遠程登陸

錯誤緣由:sql

...null, message from server: "Host 'XXX' is not allowed to connect t

操做步驟:數據庫

  第一步:打開mql連接工具,參考下圖:ide

    

  第二步:找到要設置受權的數據庫,點擊查詢,新建查詢,以下圖:工具

    

    

  第三步:輸入受權指令測試

1 grant all privileges on *.* to '用戶名'@'%' identified by '登陸密碼' with grant option; 2 
3 /** 4 *例如:grant all privileges on *.* to 'root'@'%' identified by 'root' with grant option; 5 **/

 

1 flush privileges;

  第四步:測試,受權成功,問題已解決spa

相關文章
相關標籤/搜索