dsqve08622 2014-08-07 14:16
浏览 74

将多个表从不同的服务器导出到一个数据库

i am looking for some help regarding import and export of mysql tables. So here is my problem:

I have multiple tables in different locations. Lets say there is one server in dresden, another in england and another in düsseldorf. the name of the table is the same in these 3 locations. Let say the table name is "mactable" I need to pull all the data from this different locations into one database. This have to be done every time the user request for it. Each of this table can change at any time....

Is there any way of doing this?

Here are a test of the tables:

Dusseldorf:

--------------------------------
|Username | value | macaddress |
-------------------------------
|jose     | 10    | 00:00:00:00|
--------------------------------
|maria    | 20    | 00:00:00:01|
--------------------------------

Dresden:

--------------------------------
|Username | value | macaddress |
--------------------------------
|jose     | 10    | 00:00:00:00|
--------------------------------
|maria    | 20    | 00:00:00:01|
--------------------------------
|juan     | 15    | 00:00:00:02|
--------------------------------

England:

--------------------------------
|Username | value | macaddress |
-------------------------------
|jose     | 10    | 00:00:00:00|
-------------------------------
|maria    | 20    | 00:00:00:01|
--------------------------------
|pedro    | 20    | 00:00:00:03|
--------------------------------

Here you can see an example of what i am triying to do once i got all this tables in one database: http://www.sqlfiddle.com/#!2/8ca2f/1

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 keil的map文件中Image component sizes各项意思
    • ¥30 BC260Y用MQTT向阿里云发布主题消息一直错误
    • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
    • ¥15 划分vlan后,链路不通了?
    • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
    • ¥15 Vue3 大型图片数据拖动排序
    • ¥15 Centos / PETGEM
    • ¥15 划分vlan后不通了
    • ¥20 用雷电模拟器安装百达屋apk一直闪退
    • ¥15 算能科技20240506咨询(拒绝大模型回答)