1.找到mysql数据库的my.cnf 2.添加 skip-name-resolve 到my.cnf 3.重启数据库就可以解决访问慢的问题了 转载 https://blog.csdn.net/guoxingege/article/details/47025087