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.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ current_mysql_version
{- "data": {
- "server": "mysql",
- "version": "8.0"
}, - "metadata": {
- "command": "current_mysql_version",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}