错误提示如图 解决方法 登录mysql mysql -u root -p 设置用户配置项 select host,user,plugin,authentication_string from mysql.user; 更改加密方式,新密码 ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '新密码'; 刷新 FLUSH PRIVILEGES; 以上。