My rough notes are found in MediaWiki reinstallation notes. This page is a straight line to success for me. If things don't work out for you, it's possible that I explored some other paths which might work for you.
The direct approach is to use PhpMyAdmin
The official method?: Exporting and importing MediaWiki XML dumps ∞
(somewhat old, never tried)
Prerequisite: Assign values to the
$wgDBadminpassword settings in the AdminSettings.php file in the wiki root. These values are required for running wiki/maintenance scripts.
cd /bla/firstwiki/maintenance php dumpBackup.php --full > /tmp/firstwiki.xml cd /bla/secondwiki/maintenance php importDump.php /tmp/firstwiki.xml
Note: This procedure backs up all the pages. However, when importing pages into a new wiki, the restored pages are not automatically made current if the new wiki already contains those pages. For example, the following pages (there are others also) are not automatically restored as current versions (Media Wiki 1.11.0):
- Main Page