Jump to content

Joining tables from two different Servers


davidz

Recommended Posts

I'm using PHP5+Mysql 4.0+Apache 2.0.  I need to join tables from two different Mysql servers.  I've looked everywhere and can't find a for sure yes or no if this is possible. 

 

So my question is: Is it possible to join tables using php from two different servers?  If yes, how?

 

Thanks!

David

Link to comment
Share on other sites

The two databases are on completely different servers, so doing a dbname.tblname.field in the SELECT will not work.

 

Now correct me if I'm wrong, the FEDERATED tables are basically just aliases to a table on another server?

 

Thanks,

David

Link to comment
Share on other sites

Now correct me if I'm wrong, the FEDERATED tables are basically just aliases to a table on another server?

Yes, that's correct... but you really should be using 4.1 or higher.

 

Yeah, it's actually on our todo list to upgrade both servers to 5.  Thanks for the info!

 

David

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.