一:确认公网IP. 二:修改Mysql 数据库user表中host表。localhost => % 三: 重启mysql服务器. CMD =>net stop mysql ;net start mysql