MySQL 在失去外网时变得连接非常慢的原因仅仅是一个my.cnf的配置

在 [mysqld]中加入一条

skip-name-resolve

参考链接 :
http://hi.baidu.com/fei5/blog/item/47460b550baae5ceb645ae51.html