use mysql alter user'root'@'localhost' identified by '新密码'; alter user'root'@'localhost' identified with mysql_native_password by '新密码';