好像过几次,安装mysql时,总会遇到这个问题。

每次都忘怎么解决。 这回写下来吧。 

编辑 mysql数据库的 user表太麻烦了, 最简单的方法是加一个用户,以后就用这个用户登录

CREATE USER 'mysql'@'客户端IP' IDENTIFIED BY 'mysql';
GRANT ALL PRIVILEGES ON *.* TO 'mysql'@'客户端IP'  WITH GRANT OPTION;

参考:

http://stackoverflow.com/questions/1559955/host-xxx-xx-xxx-xxx-is-not-allowed-to-connect-to-this-mysql-server

相关文章:

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