ShawnYang

MYSQL5.7以下版本的数据库密码使用的是

mysql这个数据库里的user表的password这个字段,

修改密码只需:

1.update MySQL.user set password=password(\'root\') where user=\'root\' ;
2.flush privileges;
可是到了5.7版本,user表里就没有了password这个字段了,

要想修改密码则需要用authentication_string这个字段:

1.update MySQL.user set authentication_string=password(\'root\') where user=\'root\';

2.flush privileges;

分类:

技术点:

相关文章:

  • 2021-11-21
  • 2021-05-06
  • 2021-12-08
  • 2021-12-12
  • 2021-10-20
  • 2022-02-10
  • 2021-08-08
  • 2021-08-16
猜你喜欢
  • 2022-12-23
  • 2021-12-27
  • 2021-11-06
  • 2021-10-11
  • 2021-04-11
相关资源
相似解决方案