Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I join between two MySQL tables stores on separate machines?

Tags:

mysql

I have a relatively light query that needs information from a local MySQL table along with another MySQL table which is stored on a physically separate machine (on the same network). I'm keen to avoid setting up replication just to facilitate this light query that only needs executed once a day.

Is there any way that I can join with a table on a remote machine using one query? Or run a SELECT INTO into a local table.


Notes

  • I'm using C# & .NET 4.
like image 604
InvertedAcceleration Avatar asked Jan 26 '26 15:01

InvertedAcceleration


1 Answers

This can be done by using the FEDERATED storage engine for the remote table. Find out more.

like image 50
Janek Bogucki Avatar answered Jan 29 '26 08:01

Janek Bogucki