環境:
ubuntu14.04 mysql5.7
一、mysql5.7 密碼過期問題
報錯:
ERROR 1862 (HY000): Your password has expired. To log in you must change it using a client that supports expired passwords.
翻譯:
錯誤1862(HY000):你的密碼已經過期。登錄必須改變它使用一個客戶端,支持過期的密碼。
解決方法:
1、 用忽略授權表的方法進入mysql
2、進入mysql,查看root用戶的詳細信息
3、把password_expired 改成不過期
4、把 /etc/my.cnf 的 skip-grant-tables 這行注釋掉
5、重啟服務
6、再次登陸 mysql 就正常了
轉自:http://blog.51cto.com/dahui09/1775501