第一步:alter user ‘username’@‘host’ identified by ‘password’ password expire never;
第二步:alter user ‘username’@‘host’ identified with mysql_native_password by ‘password’;
第三步:flush privileges;
第一步:alter user ‘username’@‘host’ identified by ‘password’ password expire never;
第二步:alter user ‘username’@‘host’ identified with mysql_native_password by ‘password’;
第三步:flush privileges;