出現如下錯誤:mysql1130Error.jpg

 Mysql 1130 error

 

原因:無法用遠程連接MYSQL服務器的數據庫

 

解決方案:打dos命令

cd C:\MySQL\bin

c:

mysql -u root -p

mysql>use mysql;                                            選擇mysql數據庫

mysql>select  host from user where user='root';       查看user表中host值(可進行連接訪問的主機/ip名稱) 

mysql>update user set host='%'  where user='root';     修改host值(以通配符%的內容增加主機/ip地址)

mysql>flush privileges;                    刷新MYSQL的系統權限相關表

mysql>select  host from user where user='root';       

 

 

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2021-06-14
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-08
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2021-06-02
  • 2022-12-23
相关资源
相似解决方案