Update the servers SQL configuration.

This function updates the database configuration file for MySQL® or MariaDB®.

Important:

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

SecurityBasicAuth
Request
Request Body schema: application/json
required
required
Array of objects

Array of objects that contains the requested updates to the sql configuration.

Responses
200

HTTP Request was successful.

Response Schema: application/json
object
post/update_sql_config
Request samples
application/json
{
  • "data": [
    • {
      • "name": "max_allowed_packet",
      • "section": "mysqld",
      • "value": "268435456"
      }
    ]
}
Response samples
application/json
{
  • "metadata": {
    • "command": "update_sql_config",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}