maintenance/renameDbPrefix.php File Reference

Run this script to after changing $wgDBPrefix on a wiki. More...

Go to the source code of this file.

Variables

 $optionsWithArgs = array('old','new','help')
 $count = 0
 $dbw = wfGetDB( DB_MASTER )
 $res = $dbw->query( "SHOW TABLES LIKE '".$dbw->escapeLike($old)."%'" )
foreach($res as $row) print
Done[$count tables] 
n


Detailed Description

Run this script to after changing $wgDBPrefix on a wiki.

The wiki will have to get downtime to do this correctly.

Definition in file renameDbPrefix.php.


Variable Documentation

$count = 0

Definition at line 50 of file renameDbPrefix.php.

$dbw = wfGetDB( DB_MASTER )

Definition at line 52 of file renameDbPrefix.php.

$optionsWithArgs = array('old','new','help')

Definition at line 9 of file renameDbPrefix.php.

$res = $dbw->query( "SHOW TABLES LIKE '".$dbw->escapeLike($old)."%'" )

Definition at line 53 of file renameDbPrefix.php.

foreach ($res as $row) print Done [$count tables] n

Definition at line 54 of file renameDbPrefix.php.


Generated on Sat Sep 5 02:08:28 2009 for MediaWiki by  doxygen 1.5.9