use mysql;
update user set password='123456' where user='root'; //报unknown column password错误
update mysql.user set authentication_string=password('123456') where user='root';  //修改root用户密码,密码字段为authentication_string
FLUSH PRIVILEGES; //刷新缓存

相关文章:

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