java - 将java连接到mysql域服务器

标签 java mysql database jdbc

<分区>

我为我们的 POS 项目创建了一个 java 应用程序,并尝试使用 heliohost.org 作为我的域服务器来同步来自不同分支的所有数据,并在其中上传了我的 MySQL 数据库。我已成功连接它,我的应用程序可以毫无问题地访问数据库。然而,当使用域服务器时会有额外的延迟——当我添加一个产品或登录到我的应用程序时,它需要几秒钟才能执行操作。

有什么技巧或其他方法可以将其他分支的数据同步到一个数据库吗?

最佳答案

Location, Resources and Load concerning the DNS server; this are the factors that increases or decrease the performance of your DNS server. Try to optimize this factor.

If you want full speed use your IP itself to connect to the DB server, this will eliminate the DNS resolution time.

You can also use cloudflare or similar DNS service; they are both fast and secure (I think it is free also).

关于java - 将java连接到mysql域服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36192008/

相关文章:

mysql - 查找引用表的连接数

java - 为什么我的 ListView 在 TableRow 中包含 RatingBar 时不可点击?

mysql - #1064 错误信息

mySQL 专家 - 需要 'intersect' 的帮助

php - 从不同形式的表更新数据库中的表

mysql - 加入 MYSQL 表的正确方法

java - 我如何在 Maven 插件运行之前执行一组目标?

java没有执行系统命令

java - 如何正确测试java中的instanceof

mysql - 使用 LOAD DATA INFILE 跳过第一列