Difference between revisions of "Restoring mediawiki from database backup"

From Notes_Wiki
(Created page with "=Restoring mediawiki from database backup= Most of the times during restore the latest version of mediawiki available would be never then version of mediawiki from which back...")
 
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Restoring mediawiki from database backup=
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Web based tools or applications]] > [[Mediawiki configuration]] > [[Mediawiki maintenance scripts]] > [[Restoring mediawiki from database backup]]


Most of the times during restore the latest version of mediawiki available would be never then version of mediawiki from which backup was taken. In such situations there are two ways to restore mediawiki from database backups:
Most of the times during restore the latest version of mediawiki available would be never then version of mediawiki from which backup was taken. In such situations there are two ways to restore mediawiki from database backups:
Line 10: Line 10:
</pre>
</pre>
command from wiki base folder to upgrade database. This will then allow latest wiki to load properly.
command from wiki base folder to upgrade database. This will then allow latest wiki to load properly.
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Web based tools or applications]] > [[Mediawiki configuration]] > [[Mediawiki maintenance scripts]] > [[Restoring mediawiki from database backup]]

Latest revision as of 13:05, 28 July 2022

Home > CentOS > CentOS 6.x > Web based tools or applications > Mediawiki configuration > Mediawiki maintenance scripts > Restoring mediawiki from database backup

Most of the times during restore the latest version of mediawiki available would be never then version of mediawiki from which backup was taken. In such situations there are two ways to restore mediawiki from database backups:

  1. Restore database backup into active database and then configure mediawiki to get LocalSettings.php.
  2. Configure mediawiki to get LocalSettings.php and then restore database backup over mediawiki database

In first case when we configure mediawiki over existing database which has tables and values, mediawiki would recognize that older database exists and upgrade it as per latest mediawiki schema. In second case when we restore old database and overwrite latest wiki database, then wiki may fail to load with error message. In such cases we need to run:

php maintenance/update.php

command from wiki base folder to upgrade database. This will then allow latest wiki to load properly.


Home > CentOS > CentOS 6.x > Web based tools or applications > Mediawiki configuration > Mediawiki maintenance scripts > Restoring mediawiki from database backup