Why is connecting to MySQL server so slow?

后端 未结 4 906
無奈伤痛
無奈伤痛 2020-12-03 07:07

I use JDBC to connect to MySQL. When it’s at localhost:3306, everything is OK.

But when I move my application to another computer in the intranet, and u

4条回答
  •  再見小時候
    2020-12-03 07:39

    Well it could be a DNS problem. You can disable DNS host name lookups by starting mysqld with the --skip-name-resolve option in the configuration file.

    Read here for more details: http://dev.mysql.com/doc/refman/5.0/en/host-cache.html

提交回复
热议问题