mysql> show slave status \G
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
場景:資料庫用着用着沒有問題,突然開發報給我程式連接配接不上資料庫,手動去資料庫伺服器發現能登入,但是不能執行任何操作,報錯如上
1

按照如上解決
如果有密碼的話 直接執行step2
原因:這是mysql5.7密碼過期政策
本文轉自 小小三郎1 51CTO部落格,原文連結:http://blog.51cto.com/wsxxsl/2050518,如需轉載請自行聯系原作者