cPanel WHM icon

cPanel WHM

Full cPanel WHM API — all 622 operations across Accounts, DNS, Mail, SSL, Backups, Databases and more

Actions262

Database → Return MySQL or MariaDB upgrade status

AI-generated

Summary

Return the MySQL or MariaDB upgrade status by specifying the logfile name corresponding to the upgrade process.

Inputs

  • Upgrade Id (required) — The name of the logfile located in the '/var/cpanel/logs/' directory that records the MySQL or MariaDB upgrade status.

Output shape

a single JSON object representing the upgrade status as returned by the WHM API for the specified logfile.

The output corresponds directly to the WHM API response for the given upgrade_id query parameter. Errors will be reported according to WHM API conventions if the logfile does not exist or other issues occur.

Examples

Example 1: Check the upgrade status of a MySQL or MariaDB instance by providing the upgrade log filename (Upgrade Id).

Set 'Upgrade Id' to the exact logfile name found in '/var/cpanel/logs/'. The node calls the WHM API endpoint with this parameter and retrieves the current status.

Links

Discussion