问题 解决方案 查询用户 select host,user,plugin,authentication_string from mysql.user; 新增远程登录用户 create user 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123456'; 授予权限 grant all on *.* to 'root'@'%'; 登录成功