IDEA程序访问Mysql,出现权限异常。
SQLException: Access denied for user 'root'@'192.168.119.1' (using password: YES)


应该是mysql中的特定库、特定表等对特定的用户、特定的ip开放。

所以可以修改一下,在mysql中执行:grant all privileges on *.* to root@'%' identified by '123456';

表示root用户可以在任何ip都可以访问任何库的任何对象,密码是123456

生产上,按实际情况而定。

相关文章:

  • 2021-07-03
  • 2021-05-01
  • 2022-12-23
  • 2021-06-22
猜你喜欢
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
  • 2021-05-23
  • 2021-04-28
  • 2021-09-11
  • 2021-07-03
相关资源
相似解决方案