1. 在Linux的Mysql下执行赋权限操作 grant all privileges on *.* to root@'%' identified by '123456'; 2. 刷新Mysql flush privileges; 3. 在外网下用SqlYog连接