切换到mysql的mysql数据库,找到user表;

cmd:mysql -u root -p

cmd:use mysql;

cmd:select host,user,password from user;

更新user表信息:

cmd:update user set host = '%' where user = 'root';

为root用户授权密码为root:

cmd:grant all privileges on *.* to root@'%' identified by 'root';

刷新权限:

cmd:flush privileges;

 

相关文章:

  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
  • 2021-11-06
猜你喜欢
  • 2021-09-17
  • 2021-11-20
  • 2021-08-31
  • 2021-11-06
  • 2021-09-02
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案