Why is connecting to MySQL server so slow?

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

    firewalls, Internet, routing etc etc slows down your connection.

    You should put your database on a intra net instead. Keep it local and behind your big firewall. You can of course have firewall and security between computers. I'd recommend that you didn't expose your mysql database connection to the Internet unfiltered that way.

提交回复
热议问题