Explore some of the supported advanced parameters that enable you to configure your OVHcloud Managed Databases for MySQL® according to your specific use cases.
Requirements
- A Public Cloud project in your OVHcloud account
- A database running on your OVHcloud Cloud Databases (this guide can help you to meet this requirement)
- Access to your OVHcloud Control Panel or the OVHcloud API
Instructions
NOTE: The management of advanced parameters is not supported via Terraform.
Using the OVHcloud Control Panel
Please refer to this guide to find out how to change your advanced parameters from the OVHcloud Control Panel.
Using API
Please refer to this guide to learn how to modify your advanced parameters using the OVHcloud API.
Advanced parameters for MySQL®
You can find a complete list of configuration options via the OVHcloud API. Below are some configuration options available for a MySQL® service:
| Parameters |
|---|
mysql.connect_timeout longmin: 2 max: 3600The number of seconds that the mysqld server waits for a connect packet before responding with Bad handshake. |
mysql.default_time_zone stringDefault server time zone as an offset from UTC (from -12:00 to +12:00), a time zone name, or 'SYSTEM' to use the MySQL® server default. |
mysql.group_concat_max_len longmin: 4 max: 18446744073709552000The maximum permitted result length in bytes for the GROUP_CONCAT() function. |
mysql.information_schema_stats_expiry longmin: 900 max: 31536000The time, in seconds, before cached statistics expire. |
mysql.innodb_change_buffer_max_size longmin: 0 max: 50Maximum size for the InnoDB change buffer, as a percentage of the total size of the buffer pool. Default is 25. |
mysql.innodb_flush_neighbors longmin: 0 max: 2Specifies whether flushing a page from the InnoDB buffer pool also flushes other dirty pages in the same extent (default is 1): 0 - dirty pages in the same extent are not flushed, 1 - flush contiguous dirty pages in the same extent, 2 - flush dirty pages in the same extent. |
mysql.innodb_ft_min_token_size longmin: 0 max: 16Minimum length of words that are stored in an InnoDB FULLTEXT index. Changing this parameter will lead to a restart of the MySQL® service. |
mysql.innodb_ft_server_stopword_table stringThis option is used to specify your own InnoDB FULLTEXT index stopword list for all InnoDB tables. |
mysql.innodb_lock_wait_timeout longmin: 1 max: 3600The length of time in seconds an InnoDB transaction waits for a row lock before giving up. Default is 120. |
mysql.innodb_log_buffer_size longmin: 1048576 max: 4294967295The size in bytes of the buffer that InnoDB uses to write to the log files on disk. |
mysql.innodb_online_alter_log_max_size longmin: 65536 max: 1099511627776The upper limit in bytes on the size of the temporary log files used during online DDL operations for InnoDB tables. |
mysql.innodb_print_all_deadlocks booleanWhen enabled, information about all deadlocks in InnoDB user transactions is recorded in the error log. Disabled by default. |
mysql.innodb_read_io_threads longmin: 1 max: 64The number of I/O threads for read operations in InnoDB. Default is 4. Changing this parameter will lead to a restart of the MySQL® service. |
mysql.innodb_rollback_on_timeout booleanWhen enabled a transaction timeout causes InnoDB to abort and roll back the entire transaction. Changing this parameter will lead to a restart of the MySQL® service. |
mysql.innodb_thread_concurrency longmin: 0 max: 1000Defines the maximum number of threads permitted inside of InnoDB. Default is 0 (infinite concurrency - no limit). |
mysql.innodb_write_io_threads longmin: 1 max: 64The number of I/O threads for write operations in InnoDB. Default is 4. Changing this parameter will lead to a restart of the MySQL® service. |
mysql.interactive_timeout longmin: 30 max: 604800The number of seconds the server waits for activity on an interactive connection before closing it. |
mysql.internal_tmp_mem_storage_engine stringvalues: MEMORY, TempTableThe storage engine for in-memory internal temporary tables. |
mysql.log_output stringvalues: INSIGHTS, INSIGHTS,TABLE, NONE, TABLEThe slow log output destination when slow_query_log is ON. To enable MySQL® AI Insights, choose INSIGHTS. To use MySQL® AI Insights and the mysql.slow_log table at the same time, choose INSIGHTS,TABLE. To only use the mysql.slow_log table, choose TABLE. To silence slow logs, choose NONE. |
mysql.long_query_time doublemin: 0 max: 3600The slow_query_logs work as SQL statements that take more than long_query_time seconds to execute. |
mysql.max_allowed_packet longmin: 102400 max: 1073741824Size of the largest message in bytes that can be received by the server. Default is 67108864 (64M) |
mysql.max_heap_table_size longmin: 1048576 max: 1073741824Limits the size of internal in-memory tables. Also set tmp_table_size. Default is 16777216 (16M) |
mysql.net_buffer_length longmin: 1024 max: 1048576Start sizes of connection buffer and result buffer. Default is 16384 (16K). Changing this parameter will lead to a restart of the MySQL® service. |
mysql.net_read_timeout longmin: 1 max: 3600The number of seconds to wait for more data from a connection before aborting the read. |
mysql.net_write_timeout longmin: 1 max: 3600The number of seconds to wait for a block to be written to a connection before aborting the write. |
mysql.slow_query_log booleanSlow query log enables capturing of slow queries. Setting slow_query_log to false also truncates the mysql.slow_log table. |
mysql.sort_buffer_size longmin: 32768 max: 1073741824Sort buffer size in bytes for ORDER BY optimization. Default is 262144 (256K) |
mysql.sql_mode stringGlobal SQL mode. Set to empty to use MySQL® server defaults. When creating a new service and not setting this field, Aiven default SQL mode (strict, SQL standard compliant) will be assigned. |
mysql.sql_require_primary_key booleanRequire primary key to be defined for new tables or old tables modified with ALTER TABLE and fail if missing. It is recommended to always have primary keys because various functionalities may break if any large table is missing them. |
mysql.tmp_table_size longmin: 1048576 max: 1073741824Limits the size of internal in-memory tables. Also sets max_heap_table_size. Default is 16777216 (16M). |
mysql.wait_timeout longmin: 1 max: 2147483The number of seconds the server waits for activity on a non-interactive connection before closing it. |
Go further
For more information and tutorials, please see our other Managed Databases & Analytics or Platform as a Service guides. You can also explore the guides for other OVHcloud products and services.
OVHcloud Managed Databases and Analytics:
- Grafana® is a registered trademark of Grafana Labs and is used with the permission of Grafana Labs. OVH SAS and its subsidiaries are not affiliated with or endorsed by Grafana Labs.
- Kafka® is a registered trademark of The Apache Software Foundation and has been licensed for use by OVHcloud, who has no affiliation with and is not endorsed by The Apache Software Foundation.
- MongoDB® is a registered trademark of MongoDB, Inc.
- MySQL® is a registered trademark of Oracle and/or its affiliates.
- PostgreSQL® is a registered trademark of the PostgreSQL Community Association of Canada.