Hi,
In the lab I'd have use for a MW configuration where some tables are placed in separate databases. I've tried googling and also tried searching at mediawiki.org but I find out from there how to go about (if it's possible at all).
Does anyone have a hint or link where I can find out how to set up such a configuration?
Best regards,
// Rolf Lampa
Rolf Lampa wrote:
Hi,
In the lab I'd have use for a MW configuration where some tables are placed in separate databases. I've tried googling and also tried searching at mediawiki.org but I find out from there how to go about (if it's possible at all).
Does anyone have a hint or link where I can find out how to set up such a configuration?
Best regards,
// Rolf Lampa
Look at http://www.mediawiki.org/wiki/Manual:$wgSharedDB Seems that for using more than two databases you'll need to modify the code (Database::tableName).
Platonides wrote:
Rolf Lampa wrote:
Hi,
In the lab I'd have use for a MW configuration where some tables are placed in separate databases. I've tried googling and also tried searching at mediawiki.org but I [didn't] find out from there how to go about (if it's possible at all).
<snip>
Look at http://www.mediawiki.org/wiki/Manual:$wgSharedDB Seems that for using more than two databases you'll need to modify the code (Database::tableName).
Ah, thank you! Yes, but two dbs may well do the trick for me.
// Rolf Lampa
On Tue, Jun 2, 2009 at 10:40 PM, Rolf Lampa rolf.lampa@rilnet.com wrote:
Platonides wrote:
Rolf Lampa wrote:
Hi,
In the lab I'd have use for a MW configuration where some tables are placed in separate databases. I've tried googling and also tried searching at mediawiki.org but I [didn't] find out from there how to go about (if it's possible at all).
<snip> > Look at http://www.mediawiki.org/wiki/Manual:$wgSharedDB > Seems that for using more than two databases you'll need to modify the > code (Database::tableName).
Ah, thank you! Yes, but two dbs may well do the trick for me.
If you're doing this in an extension, you can get a foreign DB with wfGetDB( DB_(MASTER|SLAVE), array(), 'db_name' );
wikitech-l@lists.wikimedia.org