Host 'localhost' is not allowed to connect to this MySQL server 错误

解决办法:

C:\Program Files\MySQL\MySQL Server 5.5\my.ini

在[mysqld]下加下面两行,

skip-name-resolve
skip-grant-tables

 

重启mysql的windows服务,在mysql命令行界面输入

grant all on *.* to ‘root’@’%’ identified by ‘123’ with grant option;

flush privileges;

 

相关文章:

  • 2021-09-04
  • 2021-08-16
  • 2022-03-09
  • 2022-02-13
  • 2022-02-13
  • 2022-12-23
  • 2022-12-23
  • 2021-08-01
猜你喜欢
  • 2021-06-22
  • 2022-12-23
  • 2021-05-15
  • 2021-12-01
  • 2021-06-25
  • 2021-08-05
  • 2022-01-03
相关资源
相似解决方案