1、登录mysql,授权远程用户访问 grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option; flush privileges; 注:123456表示登录密码,需要根据实际修改。 %标识