Description

This function retrieves the latest available version of MySQL® or MariaDB®.

Examples 




https://hostname.example.com:2087/cpsess##########/json-api/latest_available_mysql_version?api.version=1




https://hostname.example.com:2087/cpsess##########/xml-api/latest_available_mysql_version?api.version=1




whmapi1 latest_available_mysql_version



{
  "data": {
    "version": "10.0",
    "server": "mariadb"
  },
  "metadata": {
    "version": 1,
    "reason": "OK",
    "result": 1,
    "command": "latest_available_mysql_version"
  }
}




<result>
    <data>
        <version>10.0</version>
        <server>mariadb</server>
    </data>
    <metadata>
        <version>1</version>
        <reason>OK</reason>
        <result>1</result>
        <command>latest_available_mysql_version</command>
    </metadata>
</result>



Parameters

This function does not accept parameters.

Returns

ReturnTypeDescriptionPossible valuesExample

version

string

The version number.

A valid string, in major.minor format.10.0

server

string

The server's database engine.

  • mysql
  • mariadb
mariadb