latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

Databases
Manage MySQL Server

Return MySQL version

This function retrieves the server's version of MySQL® or MariaDB®.

Important:

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

get/current_mysql_version

Response

HTTP Request was successful.

Example response

{
  "data": {
    "server": "mysql",
    "version": "8.0"
  },
  "metadata": {
    "command": "current_mysql_version",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}