USE mysql;
-- 修改密码加密规则
ALTER USER 'root'@'%' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER;
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'SghjdA887#';
-- 刷新权限
FLUSH PRIVILEGES;