Start background MySQL upgrade

This function upgrades MySQL® or MariaDB® in the background.

Important:

When you disable the MySQL/MariaDB server role and remote MySQL is not already configured, the system disables this function.

Authorizations:
query Parameters
version
required
number

The desired MySQL or MariaDB version.

Example: version=5.7

Responses

Response Schema: application/json
object
object

Request samples

whmapi1 --output=jsonpretty \
  start_background_mysql_upgrade \
  version='5.7'

Response samples

Content type
application/json
{
  • "data": {
    • "upgrade_id": "mysql_upgrade.20200202-172923"
    },
  • "metadata": {
    • "command": "start_background_mysql_upgrade",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}