Home > Ask the Enterprise Linux Experts > Questions & Answers > Replication or symbolic links for databases
Ask The Enterprise Linux Expert: Questions & Answers
EMAIL THIS

Replication or symbolic links for databases

Scott Noyes EXPERT RESPONSE FROM: Scott Noyes

Pose a Question
Other Enterprise Linux Categories
Meet all Enterprise Linux Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 11 September 2006
Can you tell me how I can create linked tables in MySQL as I'm able to do in Access? I have two databases. Master tables are in one database and other tables are in another database. I want to be able to use all tables from one database with either of the two databases.

>
EXPERT RESPONSE

If all the databases exist on the same MySQL server, there is no need to set up anything special. You can query against tables in any database, using dbName.tableName. For example:

SELECT * FROM db1.table1 JOIN db2.table2 ON (table1.id = table2.id);

Check out "SELECT Syntax" and "Identifier Qualifiers" of the MySQL 5.0 Device Manual for more details.

If your databases are on different servers, you can either set up replication so that one server gets an update copy from the other, or you can use the FEDERATED storage engine to define a sort of symbolic link to a remote table.

Chapter 6, "Replication," and the "Federated Storage Engine" sections of the MySQL 5.0 Device Manual can help you with either of those tasks.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice

HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2003 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts