Mysql.user deleted from the table in the MySQL 5.7 password fields, the new field name is "authenticalion_string".
Update the root password
format:
update user set authentication_string=password('新密码') where user='root' and Host='localhost';
Example:
Select Database
use mysql;
change Password
update user set authentication_string=password('123.com') where user='testuser' and Host='%';
Refresh rights
flush privileges;