duankang8114 2013-02-03 01:14
浏览 16

数据从一个数据库输入到远程数据库

I'm making a website for an e-commerce purpose. On the main page there will be a permanent text-block or a featured article, which is going to display information about latest money transactions.

For security reasons I want to hide the source where this information is coming from. So I decided to create 2 sites:

a) "Main Site" (MS): will be a fully custom site with an engine, which will be responsible to deal with and handle financial transactions. This site will contain all financial data and will be known/accessible only for limited people.

b) "Customer Site" (CS): will provide basic information along with "Latest transaction" page.

Main point is that "Latest transaction" on CS will be just a static copy of "latest" table in MS database and will not be available to be tracked back, as it will be uploaded/input from MS side each time when there is a new transaction. I presume that even if someone dumps the CS database, he/she will only be able to get a plain-text, without reaching the core database in MS. Because data input will be one-way from MS to CS.

Here is the draft scheme how I assume it to be, but don't know how to do:

  • Database-to-Database: to write a custom php file, which will be triggered after a new transaction and copy "latest" table values from MS database to a "latest" table in CS database.

Thanking in advance for any ideas, guides and especially for inputs.

  • 写回答

1条回答 默认 最新

  • duanpo2813 2013-02-03 02:04
    关注

    If both db's are sql server, give MS permission to write to CS. Then write a trigger on MS that populates CS according to your requirements.

    php involvement is unnecessary.

    评论

报告相同问题?

悬赏问题

  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大
  • ¥15 Oracle中如何从clob类型截取特定字符串后面的字符
  • ¥15 想通过pywinauto自动电机应用程序按钮,但是找不到应用程序按钮信息
  • ¥15 如何在炒股软件中,爬到我想看的日k线
  • ¥15 seatunnel 怎么配置Elasticsearch
  • ¥15 PSCAD安装问题 ERROR: Visual Studio 2013, 2015, 2017 or 2019 is not found in the system.
  • ¥15 (标签-MATLAB|关键词-多址)
  • ¥15 关于#MATLAB#的问题,如何解决?(相关搜索:信噪比,系统容量)
  • ¥500 52810做蓝牙接受端