Upgrade MariaDB
Move a site's database to the next MariaDB release.
Before you start
- You can open the site in Managed Websites. Anyone who can open a site can upgrade its database.
- Your application supports the release you are moving to. Upgrade a staging environment first.
- Take a backup first: an upgrade cannot be undone, and MariaDB never moves back to an earlier release.
Upgrade the database
Open Software & services
Go to Managed Websites, choose the site, then Software & services under Site settings. Choose Upgrade… beside Database.
Check the release
The dialog offers the next release only. Later ones read Upgrade one LTS release at a time: upgrade again once this one has finished.
Upgrade
Choose Upgrade to MariaDB 11.8. The button names the release.
The upgrade takes about a minute to apply, plus up to 3 minutes before it starts. When it is done, Database under Services and the site header show the new release.
If the upgrade is refused
| Message | What to do |
|---|---|
| Another change is in progress | Wait for the other change on the site to finish. |
| A snapshot is being taken. Try again in a minute. | Wait for the backup to finish. |
| The site is not running normally. Try again once it has recovered. | Check Health on the site's Overview, then try again. |
| A previous upgrade has not finished. Contact support. | Raise a support ticket. |
Automate this
Upgrade MariaDB
Moves the site's database to the next MariaDB version.
curl -X PUT https://manage.corefinity.com/api/corestack/sites/1042/mariadb-version \
-H "Authorization: Bearer $COREFINITY_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"to": "11.8"
}'Your assistant calls corestack_mariadb_version_change.
{
"name": "corestack_mariadb_version_change",
"arguments": {
"site_id": 4211,
"to": "11.4"
}
}Related
Was this helpful?