设置允许IP访问,执行语句

select host,user from mysql.user;

mysql解决只能用localhost连接,不能用ip连接的问题

 

 update mysql.user set host = '%' where user = 'root';

运行完上面的语句之后,再次执行 select host,user from mysql.user;  确认结果

 

 

mysql解决只能用localhost连接,不能用ip连接的问题

 

 flush privileges;

 

测试:连接成功

相关文章:

  • 2021-10-28
  • 2021-11-25
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2021-11-08
  • 2022-02-09
  • 2021-08-28
猜你喜欢
  • 2021-06-16
  • 2021-08-03
  • 2022-12-23
  • 2022-01-30
  • 2021-09-25
相关资源
相似解决方案