Mediawiki

From Halfface
Revision as of 18:22, 24 November 2024 by Ekaanbj (talk | contribs) (Replaced content with "==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.ph...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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