Mysql Settings

Properties

PropertyTypeRequiredDescription
connect_timeoutintegernoThe number of seconds that the mysqld server waits for a connect packet before responding with Bad handshake
default_time_zonestringnoDefault 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.
group_concat_max_lenintegernoThe maximum permitted result length in bytes for the GROUP_CONCAT() function.
information_schema_stats_expiryintegernoThe time, in seconds, before cached statistics expire
innodb_change_buffer_max_sizeintegernoMaximum size for the InnoDB change buffer, as a percentage of the total size of the buffer pool. Default is 25
innodb_flush_neighborsintegernoSpecifies 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
innodb_ft_min_token_sizeintegernoMinimum length of words that are stored in an InnoDB FULLTEXT index. Changing this parameter will lead to a restart of the MySQL service.
innodb_ft_server_stopword_tablestringnoThis option is used to specify your own InnoDB FULLTEXT index stopword list for all InnoDB tables.
innodb_lock_wait_timeoutintegernoThe length of time in seconds an InnoDB transaction waits for a row lock before giving up. Default is 120.
innodb_log_buffer_sizeintegernoThe size in bytes of the buffer that InnoDB uses to write to the log files on disk.
innodb_online_alter_log_max_sizeintegernoThe upper limit in bytes on the size of the temporary log files used during online DDL operations for InnoDB tables.
innodb_print_all_deadlocksbooleannoWhen enabled, information about all deadlocks in InnoDB user transactions is recorded in the error log. Disabled by default.
innodb_read_io_threadsintegernoThe 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.
innodb_rollback_on_timeoutbooleannoWhen 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.
innodb_thread_concurrencyintegernoDefines the maximum number of threads permitted inside of InnoDB. Default is 0 (infinite concurrency - no limit)
innodb_write_io_threadsintegernoThe 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.
interactive_timeoutintegernoThe number of seconds the server waits for activity on an interactive connection before closing it.
internal_tmp_mem_storage_enginestringnoThe storage engine for in-memory internal temporary tables.

Allowed values: TempTable, MEMORY.
log_outputstringnoThe 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.

Allowed values: INSIGHTS, INSIGHTS,TABLE, NONE, TABLE.
long_query_timenumbernoThe slow_query_logs work as SQL statements that take more than long_query_time seconds to execute. Default is 10s
max_allowed_packetintegernoSize of the largest message in bytes that can be received by the server. Default is 67108864 (64M)
max_heap_table_sizeintegernoLimits the size of internal in-memory tables. Also set tmp_table_size. Default is 16777216 (16M)
net_buffer_lengthintegernoStart sizes of connection buffer and result buffer. Default is 16384 (16K). Changing this parameter will lead to a restart of the MySQL service.
net_read_timeoutintegernoThe number of seconds to wait for more data from a connection before aborting the read.
net_write_timeoutintegernoThe number of seconds to wait for a block to be written to a connection before aborting the write.
slow_query_logbooleannoSlow query log enables capturing of slow queries. Setting slow_query_log to false also truncates the mysql.slow_log table. Default is off
sort_buffer_sizeintegernoSort buffer size in bytes for ORDER BY optimization. Default is 262144 (256K)
sql_modestringnoGlobal 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.
sql_require_primary_keybooleannoRequire 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 functionality may break if any large table is missing them.
tmp_table_sizeintegernoLimits the size of internal in-memory tables. Also set max_heap_table_size. Default is 16777216 (16M)
wait_timeoutintegernoThe number of seconds the server waits for activity on a noninteractive connection before closing it.
Last updated on