新安裝的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' ;數據庫