Jump to content

Using more then on DB at once


php4.23

Recommended Posts

Can I set up a connection to more then one MySQL database and use them both in a single query?

 

I am editing this post as I accept the answer give by another member. :wink: Good call!

 

But you still have to avoid this.

 

Database name is a just a logical identifer for categorizing. Now how did you have two tables that are linked in two sperate database? I guess you need to spend some time reading RDBMS concepts. :wink:

Link to comment
Share on other sites

Now how did you have two tables that are linked in two sperate database? I guess you need to spend some time reading RDBMS concepts.  

 

Let me explain better. There are two applications both have there own database(local) for storeing their own information, but they access a remote database (on another server) where they share a table with all the registered users.

 

So how can I create a query that can access a local DB and a remote DB at the same time? Can I connect two a local DB and the remote DB and use them both in a query.

thanks

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.