---
title: "JSON Schema Mysql"
description: "JSON Schema Mysql object in the Exoscale API reference."
url: https://community.exoscale.com/reference/api/_schemas/json-schema-mysql/
section: reference
last_updated: 2026-11-18
---
> For AI agents: the documentation index is at https://community.exoscale.com/llms.txt. Every page is available as markdown at `<page URL>index.md` or with `Accept: text/markdown`.

# JSON Schema Mysql

## Properties

| Property | Type | Required | Description |
| --- | --- | --- | --- |
| `automatic_sp_privileges` | boolean | no | When 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_server` | string | no | The 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.<br/><br/>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_timeout` | integer | no | The number of seconds that the mysqld server waits for a connect packet before responding with Bad handshake<br/><br/>Min: `2`. Max: `3600`. |
| `default_time_zone` | string | no | Default 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.<br/><br/>Min length: `2`. Max length: `100`. |
| `div_precision_increment` | integer | no | Number of digits by which to increase the scale of the result of division operations performed with the / operator. Default is 4.<br/><br/>Min: `0`. Max: `30`. |
| `end_markers_in_json` | boolean | no | Whether 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_limit` | integer | no | The 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.<br/><br/>Min: `0`. Max: `4.294967295e+09`. |
| `event_scheduler` | string | no | Whether 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.<br/><br/>Allowed values: `ON`, `OFF`. |
| `group_concat_max_len` | integer | no | The maximum permitted result length in bytes for the GROUP_CONCAT() function.<br/><br/>Min: `4`. Max: `1.8446744073709552e+19`. |
| `information_schema_stats_expiry` | integer | no | The time, in seconds, before cached statistics expire<br/><br/>Min: `900`. Max: `3.1536e+07`. |
| `innodb_adaptive_hash_index` | boolean | no | Whether 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_size` | integer | no | Maximum size for the InnoDB change buffer, as a percentage of the total size of the buffer pool. Default is 25<br/><br/>Min: `0`. Max: `50`. |
| `innodb_flush_neighbors` | integer | no | Specifies 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<br/><br/>Min: `0`. Max: `2`. |
| `innodb_ft_cache_size` | integer | no | The 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.<br/><br/>Min: `1.6e+06`. Max: `8e+07`. |
| `innodb_ft_enable_stopword` | boolean | no | Whether stopword processing is applied when creating or rebuilding an InnoDB FULLTEXT index. Enabled by default. |
| `innodb_ft_max_token_size` | integer | no | Maximum length of words that are stored in an InnoDB FULLTEXT index. Changing this parameter will lead to a restart of the MySQL service.<br/><br/>Min: `10`. Max: `84`. |
| `innodb_ft_min_token_size` | integer | no | Minimum length of words that are stored in an InnoDB FULLTEXT index. Changing this parameter will lead to a restart of the MySQL service.<br/><br/>Min: `0`. Max: `16`. |
| `innodb_ft_num_word_optimize` | integer | no | Number of words processed during each OPTIMIZE TABLE operation on an InnoDB FULLTEXT index. Default is 2000.<br/><br/>Min: `1000`. Max: `10000`. |
| `innodb_ft_result_cache_limit` | integer | no | Maximum 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.<br/><br/>Min: `1e+06`. Max: `4.294967295e+09`. |
| `innodb_ft_server_stopword_table` | string | no | This option is used to specify your own InnoDB FULLTEXT index stopword list for all InnoDB tables.<br/><br/>Max length: `1024`. |
| `innodb_ft_sort_pll_degree` | integer | no | The 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.<br/><br/>Min: `1`. Max: `32`. |
| `innodb_ft_total_cache_size` | integer | no | The 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.<br/><br/>Min: `3.2e+07`. Max: `1.6e+09`. |
| `innodb_ft_user_stopword_table` | string | no | This option is used to specify your own InnoDB FULLTEXT index stopword list for specific InnoDB tables.<br/><br/>Max length: `1024`. |
| `innodb_io_capacity` | integer | no | The 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.<br/><br/>Min: `100`. Max: `4.294967295e+09`. |
| `innodb_io_capacity_max` | integer | no | The 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.<br/><br/>Min: `100`. Max: `4.294967295e+09`. |
| `innodb_lock_wait_timeout` | integer | no | The length of time in seconds an InnoDB transaction waits for a row lock before giving up. Default is 120.<br/><br/>Min: `1`. Max: `3600`. |
| `innodb_log_buffer_size` | integer | no | The size in bytes of the buffer that InnoDB uses to write to the log files on disk.<br/><br/>Min: `1.048576e+06`. Max: `4.294967295e+09`. |
| `innodb_max_dirty_pages_pct` | number | no | Percentage 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.<br/><br/>Min: `5`. Max: `99`. |
| `innodb_max_dirty_pages_pct_lwm` | number | no | Percentage 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.<br/><br/>Min: `0`. Max: `99`. |
| `innodb_max_purge_lag` | integer | no | Number 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.<br/><br/>Min: `0`. Max: `4.294967295e+09`. |
| `innodb_max_purge_lag_delay` | integer | no | Cap 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.<br/><br/>Min: `0`. Max: `1e+07`. |
| `innodb_online_alter_log_max_size` | integer | no | The upper limit in bytes on the size of the temporary log files used during online DDL operations for InnoDB tables.<br/><br/>Min: `65536`. Max: `1.099511627776e+12`. |
| `innodb_optimize_fulltext_only` | boolean | no | When 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_deadlocks` | boolean | no | When enabled, information about all deadlocks in InnoDB user transactions is recorded in the error log. Disabled by default. |
| `innodb_read_io_threads` | integer | no | The 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.<br/><br/>Min: `1`. Max: `64`. |
| `innodb_rollback_on_timeout` | boolean | no | When 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_size` | integer | no | The 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.<br/><br/>Min: `65536`. Max: `6.7108864e+07`. |
| `innodb_thread_concurrency` | integer | no | Defines the maximum number of threads permitted inside of InnoDB. Default is 0 (infinite concurrency - no limit)<br/><br/>Min: `0`. Max: `1000`. |
| `innodb_write_io_threads` | integer | no | The 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.<br/><br/>Min: `1`. Max: `64`. |
| `interactive_timeout` | integer | no | The number of seconds the server waits for activity on an interactive connection before closing it.<br/><br/>Min: `30`. Max: `604800`. |
| `internal_tmp_mem_storage_engine` | string | no | The storage engine for in-memory internal temporary tables.<br/><br/>Allowed values: `TempTable`, `MEMORY`. |
| `log_output` | string | no | The 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.<br/><br/>Allowed values: `INSIGHTS`, `INSIGHTS,TABLE`, `NONE`, `TABLE`. |
| `long_query_time` | number | no | The slow_query_logs work as SQL statements that take more than long_query_time seconds to execute. Default is 10s<br/><br/>Min: `0`. Max: `3600`. |
| `lower_case_table_names` | integer | no | Sets 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.<br/><br/>Allowed values: `0`, `1`. |
| `max_allowed_packet` | integer | no | Size of the largest message in bytes that can be received by the server. Default is 67108864 (64M)<br/><br/>Min: `102400`. Max: `1.073741824e+09`. |
| `max_connections` | integer | no | The 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.<br/><br/>Min: `30`. Max: `100000`. |
| `max_execution_time` | integer | no | Execution timeout in milliseconds for read-only top-level SELECT statements. 0 (the default) means no timeout.<br/><br/>Min: `0`. Max: `4.294967295e+09`. |
| `max_heap_table_size` | integer | no | Limits the size of internal in-memory tables. Also set tmp_table_size. Default is 16777216 (16M)<br/><br/>Min: `1.048576e+06`. Max: `1.073741824e+09`. |
| `max_seeks_for_key` | integer | no | Limit 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.<br/><br/>Min: `1`. Max: `1.8446744073709552e+19`. |
| `max_user_connections` | integer | no | The 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.<br/><br/>Min: `0`. Max: `99990`. |
| `net_buffer_length` | integer | no | Start sizes of connection buffer and result buffer. Default is 16384 (16K). Changing this parameter will lead to a restart of the MySQL service.<br/><br/>Min: `1024`. Max: `1.048576e+06`. |
| `net_read_timeout` | integer | no | The number of seconds to wait for more data from a connection before aborting the read.<br/><br/>Min: `1`. Max: `3600`. |
| `net_write_timeout` | integer | no | The number of seconds to wait for a block to be written to a connection before aborting the write.<br/><br/>Min: `1`. Max: `3600`. |
| `optimizer_prune_level` | integer | no | Controls 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.<br/><br/>Min: `0`. Max: `1`. |
| `optimizer_search_depth` | integer | no | Maximum 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.<br/><br/>Min: `0`. Max: `62`. |
| `optimizer_switch` | string | no | Comma-separated list of optimizer flag assignments in the form flag=on | off | default, or the single value 'default' to reset all flags. Flags not listed keep their current values. Controls query optimizer behaviors such as index merge, hash join and semijoin strategies. |
| `performance_schema_events_statements_history_size` | integer | no | The number of rows per thread in the events_statements_history table. Changing this parameter will lead to a restart of the MySQL service.<br/><br/>Min: `0`. Max: `1024`. |
| `relay_log_space_limit` | integer | no | The 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.<br/><br/>Min: `1.34217728e+08`. Max: `1.8446744073709552e+19`. |
| `schema_definition_cache` | integer | no | The 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.<br/><br/>Min: `256`. Max: `524288`. |
| `slow_query_log` | boolean | no | Slow 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_size` | integer | no | Sort buffer size in bytes for ORDER BY optimization. Default is 262144 (256K)<br/><br/>Min: `32768`. Max: `1.073741824e+09`. |
| `sql_mode` | string | no | Global 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.<br/><br/>Max length: `1024`. |
| `sql_require_primary_key` | boolean | no | Require 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_cache` | integer | no | The 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.<br/><br/>Min: `256`. Max: `524288`. |
| `tmp_table_size` | integer | no | Limits the size of internal in-memory tables. Also set max_heap_table_size. Default is 16777216 (16M)<br/><br/>Min: `1.048576e+06`. Max: `1.073741824e+09`. |
| `wait_timeout` | integer | no | The number of seconds the server waits for activity on a noninteractive connection before closing it.<br/><br/>Min: `1`. Max: `2.147483e+06`. |

