Mediawiki

From Halfface
Jump to navigation Jump to search

Backup database.

DATABASE=mediawiki ; mysqldump --database ${DATABASE} --single-transaction | gzip > ${DATABASE}.${HOSTNAME}.$(date '+%Y-%m-%d_%H-%M-%S').sql.gz

Truncate recentchanges.

mysql -e "TRUNCATE TABLE mediawiki.recentchanges ;"

Remove history

php maintenance/run.php deleteOldRevisions.php --delete
php maintenance/run.php deleteArchivedRevisions.php --delete

Make changes take effect

php maintenance/run.php update.php
php maintenance/run.php runJobs.php