mysql远程连接 Host * is not allowed to connect to this MySQL server的错误。

是因为mysql需要授权才能访问。授权方式:

授权给某一个ip:

GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.1.3' IDENTIFIED BY 'root' WITH GRANT OPTION;

授权给所有ip:

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;

相关文章:

  • 2021-08-06
  • 2022-12-23
  • 2021-11-21
  • 2021-08-14
  • 2022-12-23
  • 2021-09-29
  • 2022-01-29
  • 2021-12-24
猜你喜欢
  • 2021-06-21
  • 2021-07-04
  • 2021-09-17
  • 2021-09-29
  • 2021-12-13
  • 2022-12-23
  • 2021-06-01
相关资源
相似解决方案