ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; password 是root用户的密码;