How do I migrate my database to a newer version?
- MariaDB 10.6 to 10.11
- MySQL 8.0 to 8.4
I currently upgaded all instances to a new database version, using the Admin panel backup and restore mechanism. As this affects all WackoWiki users sooner or later, we should perhaps share our HowTo's. The SSH as well the phpMyAdmin part might be differ slightly from provider to provider.
Comments
Log in or create an account to post a comment.
Re: Migrate database to newer version
You've three options
The available options may depend on the services your hosting provider supports. Usually your hosting providers has also good HowTo's and FAQ to each topic.
Export your old DB.
Create a backup of your DB.
Create new DB you want upgrade to.
Update your config.php.
Import your backup into new DB.
Check your application if all works fine.
Delete your old DB.
Admin panel
After creating a backup in the Admin panel, the new database and updating the config.php with the new db settings, delete the config cache, change the value forRECOVERY_MODE
to1
in your constants.php and go again to the Admin panel to restore your backup (usually takes between 2 minutes up to half an hour, depending on the hardware and the size of your backup, your local PC is probably less powerful than the server of your hosting provider).Reset value for
RECOVERY_MODE
again to0
in your constants.php and you're ready to go with your new database.Go again to the Admin Panel -> Synchronizing data -> Wiki-links and re-synchronize all data.
Check again if all works as expected. Dont forget to delete your old database.
phpMyAdmin
...Command line / SSH
...