On Tue, Jun 2, 2009 at 10:40 PM, Rolf Lampa <rolf.lampa(a)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' );
--
Andrew Garrett
http://werdn.us/