Home » Performance » MySQL » Join tables across database
Join tables across database [message #680] Wed, 07 February 2007 10:56 Go to previous message
al.james  is currently offline al.james
Messages: 16
Registered: October 2006
Junior Member
Hi there...

I am building a couple of websites. The idea is that the two (later to be more) sites share some info such as user accounts.

Now, I want to use a separate database for each website, but how would I manage to link the user tables?

Currently all the databases exist on the same server, so I beleive it would be possible to keep the joint data in its own database and be able to access it in database.table.column notation.

However, would I pay a performance hit doing it this way? In particular if I were performing joins across databases?

Is there another way to do it. I.e. could I create a virtual table in one database that is a linked copy one from the other database.

Also, if the database grows beyond a single server, I guess I could use replication to do this?

Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:GROUP BY with ORDER BY without using filesort/tmp table
Next Topic:Duplicate Key Problem
Goto Forum:

  


Current Time: Sun Jul 5 16:12:49 EDT 2009

Total time taken to generate the page: 0.00924 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 2.7.7.
Copyright ©2001-2007 FUD Forum Bulletin Board Software

MySQL is a trademark of Sun Microsystems.
InnoDB is a trademark of Oracle Corp.

Percona Performance Forums are a service of Percona, Inc.
Not affiliated with Sun Microsystems or Oracle Corp.