Difference between revisions of "Restoring mediawiki from database backup"
m |
m |
||
Line 1: | Line 1: | ||
[[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 14: | Line 13: | ||
[[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:
- Restore database backup into active database and then configure mediawiki to get LocalSettings.php.
- 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