Difference between revisions of "RestoreInstructions"

From PLplotWiki
Jump to: navigation, search
(Added link to source)
(removed unecessary links)
 
Line 16: Line 16:
  
 
{|border="1" cellpadding="4" cellspacing="0"|
 
{|border="1" cellpadding="4" cellspacing="0"|
|'''[[MW:Manual:$IP|$IP]]'''||Needs to be correct for the paths on the new server
+
|'''$IP'''||Needs to be correct for the paths on the new server
 
|-
 
|-
|'''[[MW:Manual:$wgScriptPath|$wgScriptPath]]'''||Needs to be correct for the path on the new server
+
|'''$wgScriptPath'''||Needs to be correct for the path on the new server
 
|-
 
|-
|'''[[MW:Manual:$wgDBserver|$wgDBserver]]'''||Check the database server name is correct
+
|'''$wgDBserver'''||Check the database server name is correct
 
|-
 
|-
|'''[[MW:Manual:$wgDBname|$wgDBname]]'''||This might have changed in a shared hosting environment
+
|'''$wgDBname'''||This might have changed in a shared hosting environment
 
|-
 
|-
|'''[[MW:Manual:$wgDBuser|$wgDBuser]]'''||This might have changed in a shared hosting environment
+
|'''$wgDBuser'''||This might have changed in a shared hosting environment
 
|-
 
|-
|'''[[MW:Manual:$wgDBpassword|$wgDBpassword]]'''||Check this is correct for the new user
+
|'''$wgDBpassword'''||Check this is correct for the new user
 
|}
 
|}
  
 
These instructions are taken from http://meta.wikimedia.org/wiki/How_to_move_a_MediaWiki_Database
 
These instructions are taken from http://meta.wikimedia.org/wiki/How_to_move_a_MediaWiki_Database

Latest revision as of 10:34, 5 October 2006

Restore file backup

Unzip the file backup into a directory.

Restore database

  • On the server, create a new mySQL database.
  • Create also a user, and grant that user permissions on the database. SELECT, INSERT, UPDATE and DELETE permissions should suffice.
  • Import the database backup into the new database.

Check the configuration file

The final, real task is to tweak the LocalSettings.php file. Certain entries in this will almost undoubtedly require changing, and you may need to change the database connection information as well.

Check the following configuration options:

$IP Needs to be correct for the paths on the new server
$wgScriptPath Needs to be correct for the path on the new server
$wgDBserver Check the database server name is correct
$wgDBname This might have changed in a shared hosting environment
$wgDBuser This might have changed in a shared hosting environment
$wgDBpassword Check this is correct for the new user

These instructions are taken from http://meta.wikimedia.org/wiki/How_to_move_a_MediaWiki_Database