原因:

这里的 xxx.xxx.xxx.xxx 是你自己电脑的IP地址,出现这个错误的原因是你的服务器中的数据库之允许本地访问,即从数据库访问,外部连接是访问不到的。

解决方法:

修改MySQL数据库中的 user表格,将host的“localhost”修改为“%”,然后重启MySQL服务。
可以通过代码修改

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

也可以使用可视化工具进行修改
Host "xxx.xxx.xxx.xxx" is not allowes to connect to this MySQL severe.

相关文章:

  • 2022-12-23
  • 2021-05-11
  • 2022-01-10
  • 2021-09-27
  • 2021-08-29
  • 2021-10-24
  • 2021-08-02
猜你喜欢
  • 2021-04-12
  • 2021-09-22
  • 2021-07-08
  • 2021-12-09
  • 2021-08-04
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案