mysql初始化密碼常見報錯問題
1,然后執行 mysql -uroot -p ,輸入上面的到的密碼進入,用該密碼登錄后,必須馬上修改新的密碼,不然會報如下錯誤:
mysql> use mysql;
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
2,如果你想要設置一個簡單的測試密碼的話,比如設置為123456,會提示這個錯誤,報錯的意思就是你的密碼不符合要求
mysql> alter user 'root'@'localhost' identified by '123456';
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
