1、ERROR 1130: Host 192.168.88.160 is not allowed to connect to this MySQL server

  1)改表法。可能是你的帐号不允许从远程登陆,只能在localhost。

    mysql -u root -p

    mysql>use mysql;

    mysql>update user set host = ‘%' where user =’root’;

    mysql>flush privileges;

    mysql>select host,user from user where user=’root’;

  现在就可以连接了!

  2)授权法。

    如想myuser使用mypassword从任何主机连接到mysql服务器:

    GRANT ALL PRIVILEGES ON *.* TO ‘myuser’@'%’ IDENTIFIED BY ‘mypassword’ WITH GRANT OPTION;

    如想允许用户myuser从ip为192.168.1.3的主机连接到mysql服务器,并使用mypassword作为密码:

    GRANT ALL PRIVILEGES ON *.* TO ‘myuser’@'192.168.1.3′ IDENTIFIED BY ‘mypassword’ WITH GRANT OPTION;

相关文章:

  • 2021-12-04
  • 2021-12-02
  • 2021-11-19
  • 2022-01-11
  • 2021-12-03
  • 2021-07-26
  • 2021-07-07
  • 2021-09-13
猜你喜欢
  • 2021-05-06
  • 2021-12-25
  • 2021-07-07
  • 2021-11-10
  • 2022-12-23
  • 2021-12-16
  • 2022-01-07
相关资源
相似解决方案