按顺序执行下面三行语句,每条必须OK再执行下一条!
ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '数据库密码';
FLUSH PRIVILEGES;