原因:远程连接没有权限
mysql远程连接报1130
解决方法:设置ip权限
1、使用本地连接mysql
mysql -u root -p
2、使用mysql库
mysql>use mysql;
3、查询root用户的host
mysql>select ‘host’ from user where user=‘root’;
4、更新root用户的host为%
mysql>update user set host = ‘%’ where user =‘root’;
5、刷新
mysql>flush privileges;
6、查询是否更新成功
mysql>select ‘host’ from user where user=‘root’;
mysql远程连接报1130

相关文章:

  • 2021-06-04
  • 2021-09-10
  • 2021-05-01
  • 2022-12-23
  • 2022-12-23
  • 2021-08-09
  • 2021-10-14
猜你喜欢
  • 2022-01-08
  • 2021-12-27
  • 2021-12-23
  • 2021-08-16
  • 2021-09-25
  • 2022-12-23
相关资源
相似解决方案