1.更改用户的访问地址为允许所有IP update user set host = '%' where user = 'root'; 2.授权 GRANT ALL PRIVILEGES ON *.* TO "root"@"%"; 3.刷新权限 flush privileges;