hi all, I built two mediawiki(wiki1,wiki2),and each of them has a database(wikidb1,wikidb2).I want to use both of the database in wiki1.That's mean I can query the data which belong to wikidb2 in wiki1.
I have already use the following code in wiki1.
$dbName = "wikidb2";
$dbw = wfGetDB( DB_MASTER ); $dbw->selectDB( $dbName );
$pageId = $dbw->selectField( 'page','page_id',
array( 'page_title' => $title,
'page_namespace' => 0 ),
__METHOD__); But it didn't work.
Is there any way or any function to solve this problem?
Thanks a lot
vanessa lee
"李琴" qli@ica.stc.sh.cn wrote in message news:WorldClient-F201004241138.AA38200023@ica.stc.sh.cn...
hi all, I built two mediawiki(wiki1,wiki2),and each of them has a database(wikidb1,wikidb2).I want to use both of the database in wiki1.That's mean I can query the data which belong to wikidb2 in wiki1.
...
But it didn't work.
Define "didn't work". What type of database server are you using?
--HM
wikitech-l@lists.wikimedia.org