Why is connecting to MySQL server so slow?

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

    The --skip-name-resolve worked great for me.

    To make it permanent, I just add this line at the end of file my.ini in the [mysql] section:

    skip-name-resolve
    

    And voilá! Transactions now fly!

提交回复
热议问题