命令如下: (注意:下面代码中12345就是你想要改成的新的密码) ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '12345';