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('abc123!@#') where user='root';
重启计算机
reboot
密码修改成功;