dirty hack to work around the one-space-at-beginning-required problem
[mediawiki.git] / maintenance / cleandb.php
blob15e61958a84185ac3287c8417e4d0c420657ecb3
1 <?php
3 # Creating a new empty database; either this or the conversion
4 # script from the old format needs to be run, but not both.
6 $wgCommandLineMode = true;
7 include_once( "../LocalSettings.php" );
9 $sep = strchr( $include_path = ini_get( "include_path" ), ";" ) ? ";" : ":";
10 ini_set( "include_path", "$IP$sep$include_path" );
12 include_once( "Setup.php" );
14 $wgTitle = Title::newFromText( "Database creation script" );
15 include_once( "./buildTables.inc" );
16 set_time_limit(0);
18 #$wgDBname = "wikidb";
19 #$wgDBuser = "wikiadmin";
20 #$wgDBpassword = "adminpass";
22 cleanDatabase();
23 initializeTables();
25 print "Done.\n";
26 exit();