mysql突然无法连接,提示:Your password has expired. To log in you must

时间:2017-02-09
遇到错误:
 
 Your password has expired. To log in you must change it using a client that supports expired passwords.
 
原因是:
 
MySQL 5.6 introduces password-expiration capability, to enable database administrators to expire account passwords and require users to reset their password. 
 
所以只需重新修改下密码即可,修改方式如下:
以root权限登录mysql:(这里我的账户是root,密码也是root)
mysql -uroot -proot
然后更改密码:
SET PASSWORD = PASSWORD('root');
 
OK,可以正常使用了。
上一条:mysql中判断记录是否存在方法比较 下一条:mysql 一张表update另一张表

相关文章

最新文章