MySQL5.7更改密碼時出現ERROR 1054 (42S22): Unknown column 'password' in 'field list'


 

新安裝的MySQL5.7,登錄時提示密碼錯誤,安裝的時候並沒有更改密碼,后來通過免密碼登錄的方式更改密碼,輸入update mysql.user  set password=password('root') where user='root'時提示ERROR 1054 (42S22): Unknown column 'password' in 'field list',原來是mysql數據庫下已經沒有password這個字段了,password字段改成了
authentication_string
所以更改語句替換為update mysql.user set authentication_string=password('root') where user='root' ;即可

https://blog.csdn.net/u010603691/article/details/50379282


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM