mysql修改密碼時提示錯誤

新安裝的MySQL5.7,登陸時提示密碼錯誤,安裝的時候並無更改密碼,後來經過免密碼登陸的方式更改密碼,輸入update mysql.user  set password=password('root123') where user='root'時提示  1054 - Unknown error 1054mysql

原來是mysql數據庫下已經沒有password這個字段了,password字段改爲了 authentication_stringsql

因此更改語句替換爲update MySQL.user set authentication_string=password('root123') where user='root' ;數據庫

相關文章
相關標籤/搜索