Skip to content

JSON Schema Mysql

Properties

PropertyTypeRequiredDescription
automatic_sp_privilegesbooleannoWhen enabled, the server automatically grants the EXECUTE and ALTER ROUTINE privileges to the creator of a stored routine and drops them when the routine is dropped.
collation_serverstringnoThe default collation for databases created without one, which their new tables then inherit. Only collations of the utf8mb4 character set are accepted. Databases Aiven creates, defaultdb and those added through the API or Console, keep utf8mb4_0900_ai_ci. Changing it leaves existing databases as they are. A change applies to new connections at once. After the next server restart, for example at maintenance, an upgrade, a plan change or a node replacement, sessions reset with COM_RESET_CONNECTION also compare strings with this collation, which a change without a restart does not do. Every 0900 collation except utf8mb4_0900_ai_ci has an id above 255, so after that restart MySQL announces a wrong character set to connecting clients. Clients that take their character set from the server, such as PHP mysqli and PDO without a charset option and MySQL Connector/NET (MySql.Data) without CharSet, must then set utf8mb4 themselves. Default is utf8mb4_0900_ai_ci.

Allowed values: utf8mb4_0900_ai_ci, utf8mb4_0900_as_ci, utf8mb4_0900_as_cs, utf8mb4_0900_bin, utf8mb4_bg_0900_ai_ci, utf8mb4_bg_0900_as_cs, utf8mb4_bin, utf8mb4_bs_0900_ai_ci, utf8mb4_bs_0900_as_cs, utf8mb4_croatian_ci, utf8mb4_cs_0900_ai_ci, utf8mb4_cs_0900_as_cs, utf8mb4_czech_ci, utf8mb4_danish_ci, utf8mb4_da_0900_ai_ci, utf8mb4_da_0900_as_cs, utf8mb4_de_pb_0900_ai_ci, utf8mb4_de_pb_0900_as_cs, utf8mb4_eo_0900_ai_ci, utf8mb4_eo_0900_as_cs, utf8mb4_esperanto_ci, utf8mb4_estonian_ci, utf8mb4_es_0900_ai_ci, utf8mb4_es_0900_as_cs, utf8mb4_es_trad_0900_ai_ci, utf8mb4_es_trad_0900_as_cs, utf8mb4_et_0900_ai_ci, utf8mb4_et_0900_as_cs, utf8mb4_general_ci, utf8mb4_german2_ci, utf8mb4_gl_0900_ai_ci, utf8mb4_gl_0900_as_cs, utf8mb4_hr_0900_ai_ci, utf8mb4_hr_0900_as_cs, utf8mb4_hungarian_ci, utf8mb4_hu_0900_ai_ci, utf8mb4_hu_0900_as_cs, utf8mb4_icelandic_ci, utf8mb4_is_0900_ai_ci, utf8mb4_is_0900_as_cs, utf8mb4_ja_0900_as_cs, utf8mb4_ja_0900_as_cs_ks, utf8mb4_latvian_ci, utf8mb4_la_0900_ai_ci, utf8mb4_la_0900_as_cs, utf8mb4_lithuanian_ci, utf8mb4_lt_0900_ai_ci, utf8mb4_lt_0900_as_cs, utf8mb4_lv_0900_ai_ci, utf8mb4_lv_0900_as_cs, utf8mb4_mn_cyrl_0900_ai_ci, utf8mb4_mn_cyrl_0900_as_cs, utf8mb4_nb_0900_ai_ci, utf8mb4_nb_0900_as_cs, utf8mb4_nn_0900_ai_ci, utf8mb4_nn_0900_as_cs, utf8mb4_persian_ci, utf8mb4_pl_0900_ai_ci, utf8mb4_pl_0900_as_cs, utf8mb4_polish_ci, utf8mb4_romanian_ci, utf8mb4_roman_ci, utf8mb4_ro_0900_ai_ci, utf8mb4_ro_0900_as_cs, utf8mb4_ru_0900_ai_ci, utf8mb4_ru_0900_as_cs, utf8mb4_sinhala_ci, utf8mb4_sk_0900_ai_ci, utf8mb4_sk_0900_as_cs, utf8mb4_slovak_ci, utf8mb4_slovenian_ci, utf8mb4_sl_0900_ai_ci, utf8mb4_sl_0900_as_cs, utf8mb4_spanish2_ci, utf8mb4_spanish_ci, utf8mb4_sr_latn_0900_ai_ci, utf8mb4_sr_latn_0900_as_cs, utf8mb4_sv_0900_ai_ci, utf8mb4_sv_0900_as_cs, utf8mb4_swedish_ci, utf8mb4_tr_0900_ai_ci, utf8mb4_tr_0900_as_cs, utf8mb4_turkish_ci, utf8mb4_unicode_520_ci, utf8mb4_unicode_ci, utf8mb4_vietnamese_ci, utf8mb4_vi_0900_ai_ci, utf8mb4_vi_0900_as_cs, utf8mb4_zh_0900_as_cs.
connect_timeoutintegernoThe number of seconds that the mysqld server waits for a connect packet before responding with Bad handshake

Min: 2. Max: 3600.
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.

Min length: 2. Max length: 100.
div_precision_incrementintegernoNumber of digits by which to increase the scale of the result of division operations performed with the / operator. Default is 4.

Min: 0. Max: 30.
end_markers_in_jsonbooleannoWhether optimizer JSON output such as EXPLAIN FORMAT=JSON adds end markers that repeat a structure’s key near its closing bracket, making large JSON structures easier to read.
eq_range_index_dive_limitintegernoThe number of equality ranges in a query at or above which the optimizer switches from index dives to index statistics when estimating the number of qualifying rows. 0 means always use index dives. Default is 200.

Min: 0. Max: 4.294967295e+09.
event_schedulerstringnoWhether the event scheduler runs the events created with CREATE EVENT. Set OFF to stop every event on the service without dropping it, and ON to start them again. A change applies at once, without a restart. Events take effect only on the primary node. After a failover, they are re-enabled on the new primary. Default is ON.

Allowed values: ON, OFF.
group_concat_max_lenintegernoThe maximum permitted result length in bytes for the GROUP_CONCAT() function.

Min: 4. Max: 1.8446744073709552e+19.
information_schema_stats_expiryintegernoThe time, in seconds, before cached statistics expire

Min: 900. Max: 3.1536e+07.
innodb_adaptive_hash_indexbooleannoWhether InnoDB adaptive hash indexing is enabled. The optimal setting is workload-dependent: it speeds up lookups for some workloads but its internal latch can become a contention point under high concurrency, in which case disabling it can improve throughput.
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

Min: 0. Max: 50.
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

Min: 0. Max: 2.
innodb_ft_cache_sizeintegernoThe size in bytes of the InnoDB FULLTEXT index cache for each table. Pending index updates are flushed to disk when the cache reaches this limit. innodb_ft_total_cache_size controls the combined cache limit for all tables. Default is 8000000. Changing this parameter will lead to a restart of the MySQL service.

Min: 1.6e+06. Max: 8e+07.
innodb_ft_enable_stopwordbooleannoWhether stopword processing is applied when creating or rebuilding an InnoDB FULLTEXT index. Enabled by default.
innodb_ft_max_token_sizeintegernoMaximum length of words that are stored in an InnoDB FULLTEXT index. Changing this parameter will lead to a restart of the MySQL service.

Min: 10. Max: 84.
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.

Min: 0. Max: 16.
innodb_ft_num_word_optimizeintegernoNumber of words processed during each OPTIMIZE TABLE operation on an InnoDB FULLTEXT index. Default is 2000.

Min: 1000. Max: 10000.
innodb_ft_result_cache_limitintegernoMaximum memory in bytes used per query for the InnoDB FULLTEXT search query result cache. Aiven sizes this automatically based on the service plan’s memory; setting a value overrides the calculated default.

Min: 1e+06. Max: 4.294967295e+09.
innodb_ft_server_stopword_tablestringnoThis option is used to specify your own InnoDB FULLTEXT index stopword list for all InnoDB tables.

Max length: 1024.
innodb_ft_sort_pll_degreeintegernoThe number of parallel threads used to tokenize and index text when building an InnoDB FULLTEXT index. Default is 2. Changing this parameter will lead to a restart of the MySQL service.

Min: 1. Max: 32.
innodb_ft_total_cache_sizeintegernoThe combined memory limit in bytes for InnoDB FULLTEXT index caches across all tables. When an index operation reaches this limit, InnoDB forces cached index updates to disk to reduce memory usage. Values above 5% of plan RAM are rejected. Changing this parameter will lead to a restart of the MySQL service.

Min: 3.2e+07. Max: 1.6e+09.
innodb_ft_user_stopword_tablestringnoThis option is used to specify your own InnoDB FULLTEXT index stopword list for specific InnoDB tables.

Max length: 1024.
innodb_io_capacityintegernoThe number of I/O operations per second (IOPS) available to InnoDB background tasks, such as flushing pages from the buffer pool and merging data from the change buffer. Set this to a value appropriate for the underlying storage; it must not exceed innodb_io_capacity_max.

Min: 100. Max: 4.294967295e+09.
innodb_io_capacity_maxintegernoThe maximum number of I/O operations per second (IOPS) that InnoDB background tasks may perform when flushing falls behind. Defaults to twice innodb_io_capacity (minimum 2000). This must be greater than or equal to innodb_io_capacity.

Min: 100. Max: 4.294967295e+09.
innodb_lock_wait_timeoutintegernoThe length of time in seconds an InnoDB transaction waits for a row lock before giving up. Default is 120.

Min: 1. Max: 3600.
innodb_log_buffer_sizeintegernoThe size in bytes of the buffer that InnoDB uses to write to the log files on disk.

Min: 1.048576e+06. Max: 4.294967295e+09.
innodb_max_dirty_pages_pctnumbernoPercentage of dirty pages in the InnoDB buffer pool at which InnoDB starts flushing aggressively. Lowering it spreads write I/O more evenly and shortens crash recovery, at the cost of flushing pages that might have been modified again. Must stay at or above innodb_max_dirty_pages_pct_lwm. Default is 90.

Min: 5. Max: 99.
innodb_max_dirty_pages_pct_lwmnumbernoPercentage of dirty pages in the InnoDB buffer pool at which InnoDB starts pre-flushing, to keep the dirty page ratio from reaching innodb_max_dirty_pages_pct. 0 turns pre-flushing off. Cannot be set above innodb_max_dirty_pages_pct. Default is 10.

Min: 0. Max: 99.
innodb_max_purge_lagintegernoNumber of outstanding transactions the InnoDB purge operation may fall behind by before INSERT, UPDATE and DELETE are delayed to let it catch up. The delay applies per row and grows with the lag, and it is capped by innodb_max_purge_lag_delay, which has to be set as well for this option to have any effect. Default is 0, which never delays anything.

Min: 0. Max: 4.294967295e+09.
innodb_max_purge_lag_delayintegernoCap in microseconds on the per-row delay innodb_max_purge_lag applies to INSERT, UPDATE and DELETE. MySQL clamps the delay to this value unconditionally, so while this is 0 no delay is ever applied and innodb_max_purge_lag on its own does nothing. Both options must be non-zero for either to take effect. Default is 0.

Min: 0. Max: 1e+07.
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.

Min: 65536. Max: 1.099511627776e+12.
innodb_optimize_fulltext_onlybooleannoWhen enabled, OPTIMIZE TABLE on InnoDB tables only updates the FULLTEXT index instead of rebuilding the table. Intended to be enabled temporarily during FULLTEXT index maintenance and disabled afterwards; while enabled, OPTIMIZE TABLE does not reclaim table space.
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.

Min: 1. Max: 64.
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_sort_buffer_sizeintegernoThe size in bytes of the sort buffer used when creating InnoDB indexes. Also controls the read and write buffer sizes for the temporary log used during online DDL operations. Default is 1048576 (1 MiB). Changing this parameter will lead to a restart of the MySQL service.

Min: 65536. Max: 6.7108864e+07.
innodb_thread_concurrencyintegernoDefines the maximum number of threads permitted inside of InnoDB. Default is 0 (infinite concurrency - no limit)

Min: 0. Max: 1000.
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.

Min: 1. Max: 64.
interactive_timeoutintegernoThe number of seconds the server waits for activity on an interactive connection before closing it.

Min: 30. Max: 604800.
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

Min: 0. Max: 3600.
lower_case_table_namesintegernoSets how table and database names are stored and compared. 0 = case-sensitive (default), 1 = names stored lowercase, comparisons are case-insensitive. This option can only be set when creating the service and cannot be changed later. See https://dev.mysql.com/doc/refman/8.0/en/identifier-case-sensitivity.html for details.

Allowed values: 0, 1.
max_allowed_packetintegernoSize of the largest message in bytes that can be received by the server. Default is 67108864 (64M)

Min: 102400. Max: 1.073741824e+09.
max_connectionsintegernoThe maximum permitted number of simultaneous client connections. Lower this to reserve memory for other work. The value cannot exceed the limit provided by your service plan. Upgrading the plan does not raise a value you have set explicitly, so increase it yourself after an upgrade.

Min: 30. Max: 100000.
max_execution_timeintegernoExecution timeout in milliseconds for read-only top-level SELECT statements. 0 (the default) means no timeout.

Min: 0. Max: 4.294967295e+09.
max_heap_table_sizeintegernoLimits the size of internal in-memory tables. Also set tmp_table_size. Default is 16777216 (16M)

Min: 1.048576e+06. Max: 1.073741824e+09.
max_seeks_for_keyintegernoLimit on the assumed maximum number of index seeks when looking up rows based on a key. Lowering this value causes the optimizer to prefer index lookups over table scans.

Min: 1. Max: 1.8446744073709552e+19.
max_user_connectionsintegernoThe maximum number of simultaneous connections permitted to any single user account. 0, the default, means no per-account limit. Any other value must be at least 10 below max_connections, so that monitoring and your own admin sessions can still connect when an application saturates its own limit. Aiven’s replication and management connections are unaffected however low you set this.

Min: 0. Max: 99990.
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.

Min: 1024. Max: 1.048576e+06.
net_read_timeoutintegernoThe number of seconds to wait for more data from a connection before aborting the read.

Min: 1. Max: 3600.
net_write_timeoutintegernoThe number of seconds to wait for a block to be written to a connection before aborting the write.

Min: 1. Max: 3600.
optimizer_prune_levelintegernoControls the heuristics applied during query optimization to prune less-promising partial plans from the optimizer search space. 0 disables heuristics (exhaustive search); 1 prunes plans based on the number of rows retrieved.

Min: 0. Max: 1.
optimizer_search_depthintegernoMaximum depth of search performed by the query optimizer when choosing a join order. Larger values produce better plans for joins over many tables but take longer to compile; 0 lets the optimizer choose the depth automatically.

Min: 0. Max: 62.
optimizer_switchstringnoComma-separated list of optimizer flag assignments in the form flag=on
performance_schema_events_statements_history_sizeintegernoThe number of rows per thread in the events_statements_history table. Changing this parameter will lead to a restart of the MySQL service.

Min: 0. Max: 1024.
relay_log_space_limitintegernoThe maximum amount of space in bytes to use for all relay logs while replicating from an external migration source. When the limit is reached, the replication I/O thread stops fetching relay log events until the SQL thread has caught up. Raise this to give a large migration a bigger relay-log budget; ensure the service disk is sized accordingly. The setting applies only on the node replicating from the external source; standby nodes always use the Aiven-managed default (the smaller of 5 GiB and 30% of the service disk), which is also used when this option is left unset. Changing this parameter will lead to a restart of the MySQL service.

Min: 1.34217728e+08. Max: 1.8446744073709552e+19.
schema_definition_cacheintegernoThe number of schema definition objects the data dictionary object cache can hold. Raise it above the number of schemas on the service to keep their definitions in memory. Each cached definition uses a small amount of memory, and the cache never holds more than the service’s own schemas, so a high value costs nothing extra on a service with few schemas. Default is 256.

Min: 256. Max: 524288.
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)

Min: 32768. Max: 1.073741824e+09.
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.

Max length: 1024.
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.
tablespace_definition_cacheintegernoThe number of tablespace definition objects the data dictionary object cache can hold. Each InnoDB table stored in its own file is a separate tablespace, so raise it above the number of tables on the service to keep their tablespace definitions in memory. Each cached definition uses a small amount of memory, and the cache never holds more than the service’s own tables, so a high value costs nothing extra on a service with few tables. Default is 256.

Min: 256. Max: 524288.
tmp_table_sizeintegernoLimits the size of internal in-memory tables. Also set max_heap_table_size. Default is 16777216 (16M)

Min: 1.048576e+06. Max: 1.073741824e+09.
wait_timeoutintegernoThe number of seconds the server waits for activity on a noninteractive connection before closing it.

Min: 1. Max: 2.147483e+06.
Last updated on