找到mysql配置文件中 [mysqld] 在其后加入一句:skip-name-resolve 保存 重启mysql服务 转载于:https://www.cnblogs.com/zydtm/p/10214111.html