在my.cnf里设置 set-variable = interactive_timeout=30skip-name-resolve 然后设置linux的/etc/hosts 将目标ip加入进去 这样可以提升很大的连接速度!