[Mediawiki-l] $dbr->selectDB

Platonides Platonides at gmail.com
Sun Aug 26 12:41:20 UTC 2007

Michael Daly wrote:
> Rob Church wrote:
>> This statement seems to assume that "wiki families" all exist in the
>> same database, which is an odd assumption.
> Sorry - maybe I'm confused.
> Each wiki family member has a separate catalog entry in MySQL.  All the 
> tables within each family share the same prefix - which I assume is 
> $wgDBprefix.  So you can have, say, a table called "en_page" (i.e. 
> $wgDBprefix = "en_") for an English family member, "fr_page" for a 
> French family member etc.  Hence the need to have the prefix on the 
> extension's tables to make them consistent with all the other tables in 
> the database.  Otherwise the tables would look like:

You can have this system (designed for hosts which only allow one 
database per user) or use the more common system of one database per 

More information about the MediaWiki-l mailing list