通过SQLyog连接linux中的MySQL报错问题:
SQL Error (1130): Host '192.168.0.18' is not allowed to connect to this MySQL server
说明你所连接的用户账户没有远程连接的权限,只能在本机localhost登录
需要更改 mysql 数据库里的 user表里的 host字段 把localhost改称%
下面是我设置的远程连接步骤,请参考:
 1.登录MySQL
  mysql -uroot -proot
2.进入数据库
  use mysql;
3.查看是否有user表
 show tables;
4.更改lost字段值
 update user set host='%' where host = 'localhost';
5.刷新
 flush privileges;
6.查看
 select host,user from user;
Mysql远程连接报错:SQL Error (1130): Host '192.168.61.128' is not allowed to connect to this MySQL server
出现上面的界面,说明远程连接成功,最后quit退出了。。

相关文章:

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