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