今天应用挂了,log提示密码过期.客户端连接不上。

打开mysql,执行sql语句提示密码过期

执行set password=new password('123456');

提示成功,但客户端仍然连接不上。但可以在控制台执行sql语句。于是:

use mysql;

update user set password=password('123456') where user='root';

flush privileges;

客户端仍然连接不上。

再执行:set password for 'root'=password('123456');

神奇的可以了。

相关文章:

  • 2022-12-23
  • 2021-08-03
  • 2021-05-22
  • 2022-12-23
  • 2021-06-18
  • 2021-06-07
  • 2021-06-02
  • 2022-12-23
猜你喜欢
  • 2021-11-13
  • 2021-10-02
  • 2021-10-05
  • 2022-12-23
相关资源
相似解决方案