Media Wiki Operations: Difference between revisions
Jump to navigation
Jump to search
Line 35: | Line 35: | ||
mysqldump -h localhost -u <old-user> -p --default-character-set=binary <old-database> > novaordis-wiki.sql | mysqldump -h localhost -u <old-user> -p --default-character-set=binary <old-database> > novaordis-wiki.sql | ||
mysql -u <new-user> -p <new-database> < novaordis-wiki.sql | mysql -u <new-user> -p <new-database> < novaordis-wiki.sql | ||
</pre> | </pre> | ||
Revision as of 00:23, 4 April 2021
External
- MediaWiki FAQ: https://www.mediawiki.org/wiki/Manual:FAQ
Internal
Get Media Wiki Version
Look up "$wgVersion" in includes/DefaultSettings.php.
Alternatively go to Tools → Special Pages → Version
Installation
Back Up a Wiki
Restoring a Wiki into the Same or Newer MediaWiki Version
Moving a Wiki
- External:
Steps:
- Backup the source wiki
- Transfer backups from the old server to the new one
- Restore the backup on the new server
Lessons learned after performing a not500 export and a now510 import:
- The wiki users carry passwords over (as expected, they're stored in the database).
- MySQL export/import went fine:
mysqldump -h localhost -u <old-user> -p --default-character-set=binary <old-database> > novaordis-wiki.sql mysql -u <new-user> -p <new-database> < novaordis-wiki.sql
Create a User
Special pages -> Login / create account -> Create Account. Or Special:UserLogin/signup.
Get the List of All Users
Special Pages -> Users and rights -> User list. Or Special:ListUsers.