Home >Database >Mysql Tutorial >Why is My MySQL 5.7 Root Password Update Failing with \'Unknown column \'password\' in \'field list\'\'?
MySQL User DB Missing Password Columns
Problem:
While attempting to update the MySQL root password, the error message "Unknown column 'password' in 'field list'" appears, indicating that the password column does not exist in the user table.
Explanation:
In MySQL 5.7, the password column in the mysql.user table has been removed, and the authentication details are now stored in the 'authentication_string' column.
Solution:
mysql -u root
USE mysql;
SHOW TABLES;
DESCRIBE user;
UPDATE user SET authentication_string = PASSWORD('1111') WHERE user = 'root';
Additional Notes:
The above is the detailed content of Why is My MySQL 5.7 Root Password Update Failing with \'Unknown column \'password\' in \'field list\'\'?. For more information, please follow other related articles on the PHP Chinese website!