gpt4 book ai didi

php - 本地 Intranet 应用程序(基于 php 构建)可以查询存储在异地位置的 mysql 数据库吗?

转载 作者:太空宇宙 更新时间:2023-11-03 10:27:13 24 4
gpt4 key购买 nike

我有一个本地 Intranet 应用程序,它在我们办公室的基本 WAMP 服务器上运行。每天早上,我们的一名团队成员手动将我们的内部 mysql 数据库与我们的外部 mysql 数据库(在线注册发生的地方)同步。如果当天在内网应用程序上进行了更改,则直到第二天才会反射(reflect)在外部数据库上。

我想知道是否有可能(基本上)从我们办公室内的 wamp 或 xampp 服务器隧道连接到外部 mysql 连接并“实时”工作。

有人有任何运气或建议吗?

最佳答案

Yes

Replication enables data from one MySQL database server (the master) to be replicated to one or more MySQL database servers (the slaves). Replication is asynchronous - slaves need not to connected permanently to receive updates from the master. This means that updates can occur over long-distance connections and even over temporary or intermittent connections such as a dial-up service. Depending on the configuration, you can replicate all databases, selected databases, or even selected tables within a database.

如果直接使用外部服务器,性能可能会受到影响。千兆 LAN 可能比您的 Internet 连接快一千倍 - 特别是 ADSL 连接的上传速度。

关于php - 本地 Intranet 应用程序(基于 php 构建)可以查询存储在异地位置的 mysql 数据库吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4495058/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com