在本机登入mysql后,更改"mysql"数据库里的"user"表里的"host"项,从"localhost"改为'%'

代码如下         

mysql>

mysql>use mysql;

mysql>select 'host' from user where user='root';

#查看mysql库中的user表的host值(即可进行连接访问的主机/IP名称)

相关文章:

  • 2021-04-05
  • 2021-10-04
  • 2021-07-28
  • 2022-12-23
  • 2021-11-12
  • 2021-07-26
  • 2021-10-14
猜你喜欢
  • 2021-07-27
  • 2022-12-23
  • 2021-10-17
相关资源
相似解决方案