Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Joining tables across multiple servers

Tags:

sql

join

mysql

I guess we can do database1.table1 join database2.table2 on etc. I.e. join tables in separate databases on the same server.
Is it possible to join tables across different sql servers?

like image 875
Cratylus Avatar asked Oct 22 '22 07:10

Cratylus


1 Answers

you can use FEDERATED Storage Engine.

 The FEDERATED storage engine lets you access data from a remote
 MySQL database without using replication or cluster technology.
 Querying a local FEDERATED table   automatically pulls the data
 from the remote (federated) tables.  No data is stored on the local tables.

The site shows a good illustration

like image 68
Dinup Kandel Avatar answered Oct 24 '22 05:10

Dinup Kandel