ERROR 1862 (HY000): Your password has expired. To log in you must change it using a client that supp

解决办法:

先通过跳过授权表的方式启动数据库:

mysqld_safe --user=mysql--datadir=/data/mysql --skip-grant-tables --skip-networking &

这样就可以免密码登录了。

然后修改该用户密码过期策略为N:

update user set password_expired="N" where user="root"; 

flush privileges;

重启数据库即可。

service mysql restart

猜你喜欢

转载自blog.csdn.net/oshan2012/article/details/89195020
今日推荐