Monday, April 16, 2007

How to migrate MediaWiki?

MediaWiki Migration

Old Server:

 mysqldump -u root -p wikidb > wikidb.sql
 tar -cvf wiki.tar wiki ;this is the wiki folder on document root

New Server:

 create database wikidb;  this is inside mysql, Note that both mysql versions should be same.
 grant create, select, insert, update, delete, lock tables on wikidb.* to wiki@localhost identified by 'YourPassword' ;

MediaWiki Upgrade

 copy all the new files to wiki folder and then
 run php update.php from maintenance folder after updating AdminSettings.php


craig0r said...

wow, this is probably the most vague/ambiguous "tutorial" i've seen in my entire life. might want to go into a little more detail in the future.

ronin said...

I think it is one of the BEST "tutorials" I have ever seen... no BS no superflous jiberish.. straight to the point.. thanks Suji!

Hacyran said...

Agree with Ronin. That's just what I wanted to know. Not usefull if you don't know nothing about mysql or apache, but in that case, you don't have to play with mediawiki. =)

vishakha said...
This comment has been removed by the author.
vishakha said...


I need to migrate existing midiawiki with all the contents as is to another box.
What all do I need new machine as pre-requisites and how to transfer the site to new server.

It will be of great help if you can provide with quick instructions.

Thanks in advance.


Robert J. Cooksey said...

Nice. Thanks for the how-to. That saved me a lot of research.

Hooooooopdy said...

@craig0r -- it's not a "tutorial". it's not a HowTO. It's called a "blog" or web log. This domain is called "blogger" which suggests to me it's a collection of "blogs" or "weblogs" if you're over 40.

monkeyman said...

Suji, You seem to have forgotten the step where the database is imported on the new server...

Something like:
cat wikidb_dump.sql | mysql -p wikidb_1_15