Why is connecting to MySQL server so slow?

后端 未结 4 905
無奈伤痛
無奈伤痛 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:34

    For me it was this solution I found here, If IP6 connectivity is enabled, connection to "localhost" may be slow, instead use the ip address, 127.0.0.1. This worked for me.

    my mysql slow to connect problem was solved by this solution

提交回复
热议问题