MySQL:ERROR 1820 (HY000)

ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.

今天在MySql5.7操作時報錯:You must SET PASSWORD before executing this statement,解決方法:

ERROR 1820 (HY000): You must SET PASSWORD before executing this statement 

mysql> create database cma; 
ERROR 1820 (HY000): You must SET PASSWORD before executing this statement 
mysql> SET PASSWORD = PASSWORD('123456'); 

Query OK, 0 rows affected (0.03 sec) 遇到1820的錯誤,需要重設密碼,使用命令:

SET PASSWORD = PASSWORD('123456'); 

發佈了16 篇原創文章 · 獲贊 17 · 訪問量 7萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章