SQLSTATE[HY000] [1130] Host '127.0.0.1' is not allowed to connect to this MySQL server怎么解决?

登录的用户名不可以在127.0.0.1这个ip登录,如果要用这个用户登录就创建一个吧,
create user 'username'@'127.0.0.1' identified by 'password'; #创建名为username,主机为127.0.0.1,密码为password的用户

grant all on *.* to 'username'@'127.0.0.1'; #赋予所有权限

相关文章:

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