最近新买了电脑,再重新安装mysql过程中,发现user字段没有了password字段,update root密码失败,发现最新版本更新为authentication_string,然后update user set authentication_string=‘123456’ where user=‘root’;
免登录之后发现authentication_string已变为123456,然而去除免密重启之后一直1045,后来发现没有用到mysql的加密函数,实际应该使用update user set authentication_string=password(‘123456’) where user=‘root’;调用mysql的password函数。

mysql authentication_string更改密码不成功的问题

相关文章:

  • 1970-01-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-03
  • 2022-01-06
  • 2022-01-02
猜你喜欢
  • 2022-01-13
  • 2021-05-31
  • 2021-10-16
  • 2022-12-23
  • 2021-11-12
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案