Server System Variables

Contents

  1. About the Server System Variables
  2. Setting Server System Variables
  3. List of Server System Variables
    1. alter_algorithm
    2. analyze_sample_percentage
    3. aria_block_size
    4. aria_checkpoint_interval
    5. aria_checkpoint_log_activity
    6. aria_encrypt_tables
    7. aria_force_start_after_recovery_failures
    8. aria_group_commit
    9. aria_group_commit_interval
    10. aria_log_file_size
    11. aria_log_purge_type
    12. aria_max_sort_file_size
    13. aria_page_checksum
    14. aria_pagecache_age_threshold
    15. aria_pagecache_buffer_size
    16. aria_pagecache_division_limit
    17. aria_pagecache_file_hash_size
    18. aria_recover
    19. aria_repair_threads
    20. aria_sort_buffer_size
    21. aria_stats_method
    22. aria_sync_log_dir
    23. aria_used_for_temp_tables
    24. auto_increment_increment
    25. auto_increment_offset
    26. autocommit
    27. automatic_sp_privileges
    28. aws_key_management_key_spec
    29. aws_key_management_log_level
    30. aws_key_management_master_key_id
    31. aws_key_management_mock
    32. aws_key_management_region
    33. aws_key_management_request_timeout
    34. aws_key_management_rotate_key
    35. back_log
    36. basedir
    37. big_tables
    38. bind_address
    39. binlog_annotate_row_events
    40. binlog_cache_size
    41. binlog_checksum
    42. binlog_commit_wait_count
    43. binlog_commit_wait_usec
    44. binlog_direct_non_transactional_updates
    45. binlog_file_cache_size
    46. binlog_format
    47. binlog_optimize_thread_scheduling
    48. binlog_row_image
    49. binlog_stmt_cache_size
    50. bulk_insert_buffer_size
    51. cassandra_default_thrift_host
    52. cassandra_failure_retries
    53. cassandra_insert_batch_size
    54. cassandra_multiget_batch_size
    55. cassandra_read_consistency
    56. cassandra_rnd_batch_size
    57. cassandra_write_consistency
    58. character_set_client
    59. character_set_connection
    60. character_set_database
    61. character_set_filesystem
    62. character_set_results
    63. character_set_server
    64. character_set_system
    65. character_sets_dir
    66. check_constraint_checks
    67. collation_connection
    68. collation_database
    69. collation_server
    70. column_compression_threshold
    71. column_compression_zlib_level
    72. column_compression_zlib_strategy
    73. column_compression_zlib_wrap
    74. completion_type
    75. concurrent_insert
    76. connect_class_path
    77. connect_cond_push
    78. connect_conv_size
    79. connect_enable_mongo
    80. connect_exact_info
    81. connect_indx_map
    82. connect_java_wrapper
    83. connect_json_grp_size
    84. connect_json_null
    85. connect_jvm_path
    86. connect_timeout
    87. connect_type_conv
    88. connect_use_tempfile
    89. connect_work_size
    90. connect_xtrace
    91. core_file
    92. cracklib_password_check
    93. cracklib_password_check_dictionary
    94. datadir
    95. date_format
    96. datetime_format
    97. deadlock_search_depth_long
    98. deadlock_search_depth_short
    99. deadlock_timeout_long
    100. deadlock_timeout_short
    101. debug
    102. debug_no_thread_alarm
    103. debug_sync
    104. default_master_connection
    105. default_password_lifetime
    106. default_regex_flags
    107. default_storage_engine
    108. default_table_type
    109. default_tmp_storage_engine
    110. default_week_format
    111. delay_key_write
    112. delayed_insert_limit
    113. delayed_insert_timeout
    114. delayed_queue_size
    115. disconnect_on_expired_password
    116. div_precision_increment
    117. encrypt_binlog
    118. encrypt_tmp_disk_tables
    119. encrypt_tmp_files
    120. encryption_algorithm
    121. enforce_storage_engine
    122. engine_condition_pushdown
    123. eq_range_index_dive_limit
    124. error_count
    125. event_scheduler
    126. expensive_subquery_limit
    127. expire_logs_days
    128. explicit_defaults_for_timestamp
    129. external_user
    130. extra_max_connections
    131. extra_port
    132. feedback
    133. feedback_http_proxy
    134. feedback_send_retry_wait
    135. feedback_send_timeout
    136. feedback_server_uid
    137. feedback_url
    138. feedback_user_info
    139. file_key_management_encryption_algorithm
    140. file_key_management_filekey
    141. file_key_management_filename
    142. flush
    143. flush_time
    144. foreign_key_checks
    145. ft_boolean_syntax
    146. ft_max_word_len
    147. ft_min_word_len
    148. ft_query_expansion_limit
    149. ft_stopword_file
    150. general_log
    151. general_log_file
    152. group_concat_max_len
    153. gssapi_keytab_path
    154. gssapi_principal_name
    155. gssapi_mech_name
    156. gtid_binlog_pos
    157. gtid_binlog_state
    158. gtid_cleanup_batch_size
    159. gtid_current_pos
    160. gtid_domain_id
    161. gtid_ignore_duplicates
    162. gtid_seq_no
    163. gtid_slave_pos
    164. gtid_strict_mode
    165. gtid_pos_auto_engines
    166. handlersocket_accept_balance
    167. handlersocket_address
    168. handlersocket_backlog
    169. handlersocket_epoll
    170. handlersocket_port
    171. handlersocket_port_wr
    172. handlersocket_sndbuf
    173. handlersocket_rcvbuf
    174. handlersocket_readsize
    175. handlersocket_threads
    176. handlersocket_threads_wr
    177. handlersocket_timeout
    178. handlersocket_verbose
    179. handlersocket_wrlock_timeout
    180. have_compress
    181. have_crypt
    182. have_csv
    183. have_dynamic_loading
    184. have_geometry
    185. have_innodb
    186. have_ndbcluster
    187. have_openssl
    188. have_partitioning
    189. have_profiling
    190. have_query_cache
    191. have_rtree_keys
    192. have_ssl
    193. have_symlink
    194. histogram_size
    195. histogram_type
    196. host_cache_size
    197. hostname
    198. identity
    199. ignore_builtin_innodb
    200. idle_readonly_transaction_timeout
    201. idle_transaction_timeout
    202. idle_write_transaction_timeout
    203. ignore_db_dirs
    204. in_transaction
    205. init_connect
    206. init_file
    207. init_slave
    208. innodb_adaptive_checkpoint
    209. innodb_adaptive_flushing
    210. innodb_adaptive_flushing_lwm
    211. innodb_adaptive_flushing_method
    212. innodb_adaptive_hash_index
    213. innodb_adaptive_hash_index_partitions
    214. innodb_adaptive_hash_index_parts
    215. innodb_adaptive_max_sleep_delay
    216. innodb_additional_mem_pool_size
    217. innodb_api_bk_commit_interval
    218. innodb_api_disable_rowlock
    219. innodb_api_enable_binlog
    220. innodb_api_enable_mdl
    221. innodb_api_trx_level
    222. innodb_auto_lru_dump
    223. innodb_autoextend_increment
    224. innodb_autoinc_lock_mode
    225. innodb_background_scrub_data_check_interval
    226. innodb_background_scrub_data-compressed
    227. innodb_background_scrub_data_interval
    228. innodb_background_scrub_data-uncompressed
    229. innodb_blocking_buffer_pool_restore
    230. innodb_buf_dump_status_frequency
    231. innodb_buffer_pool_chunk_size
    232. innodb_buffer_pool_dump_at_shutdown
    233. innodb_buffer_pool_dump_now
    234. innodb_buffer_pool_evict
    235. innodb_buffer_pool_filename
    236. innodb_buffer_pool_instances
    237. innodb_buffer_pool_load_abort
    238. innodb_buffer_pool_load_at_startup
    239. innodb_buffer_pool_load_now
    240. innodb_buffer_pool_populate
    241. innodb_buffer_pool_restore_at_startup
    242. innodb_buffer_pool_shm_checksum
    243. innodb_buffer_pool_shm_key
    244. innodb_buffer_pool_size
    245. innodb_change_buffer_max_size
    246. innodb_change_buffering
    247. innodb_change_buffering_debug
    248. innodb_checkpoint_age_target
    249. innodb_checksum_algorithm
    250. innodb_checksums
    251. innodb_cleaner_lsn_age_factor
    252. innodb_cmp_per_index_enabled
    253. innodb_commit_concurrency
    254. innodb_compression_algorithm
    255. innodb_compression_default
    256. innodb_compression_failure_threshold_pct
    257. innodb_compression_level
    258. innodb_compression_pad_pct_max
    259. innodb_concurrency_tickets
    260. innodb_corrupt_table_action
    261. innodb_data_file_path
    262. innodb_data_home_dir
    263. innodb_deadlock_detect
    264. innodb_default_encryption_key_id
    265. innodb_default_page_encryption_key
    266. innodb_default_row_format
    267. innodb_defragment
    268. innodb_defragment_fill_factor
    269. innodb_defragment_fill_factor_n_recs
    270. innodb_defragment_frequency
    271. innodb_defragment_n_pages
    272. innodb_defragment_stats_accuracy
    273. innodb_dict_size_limit
    274. innodb_disable_sort_file_cache
    275. innodb_disallow_writes
    276. innodb_doublewrite
    277. innodb_doublewrite_file
    278. innodb_empty_free_list_algorithm
    279. innodb_enable_unsafe_group_commit
    280. innodb_encrypt_log
    281. innodb_encrypt_tables
    282. innodb_encryption_rotate_key_age
    283. innodb_encryption_rotation_iops
    284. innodb_encryption_threads
    285. innodb_extra_rsegments
    286. innodb_extra_undoslots
    287. innodb_fake_changes
    288. innodb_fast_checksum
    289. innodb_fast_shutdown
    290. innodb_fatal_semaphore_wait_threshold
    291. innodb_file_format
    292. innodb_file_format_check
    293. innodb_file_format_max
    294. innodb_file_per_table
    295. innodb_fill_factor
    296. innodb_flush_log_at_timeout
    297. innodb_flush_log_at_trx_commit
    298. innodb_flush_method
    299. innodb_flush_neighbor_pages
    300. innodb_flush_neighbors
    301. innodb_flush_sync
    302. innodb_flushing_avg_loops
    303. innodb_force_load_corrupted
    304. innodb_force_primary_key
    305. innodb_force_recovery
    306. innodb_foreground_preflush
    307. innodb_ft_aux_table
    308. innodb_ft_cache_size
    309. innodb_ft_enable_diag_print
    310. innodb_ft_enable_stopword
    311. innodb_ft_max_token_size
    312. innodb_ft_min_token_size
    313. innodb_ft_num_word_optimize
    314. innodb_ft_result_cache_limit
    315. innodb_ft_server_stopword_table
    316. innodb_ft_sort_pll_degree
    317. innodb_ft_total_cache_size
    318. innodb_ft_user_stopword_table
    319. innodb_ibuf_accel_rate
    320. innodb_ibuf_active_contract
    321. innodb_ibuf_max_size
    322. innodb_idle_flush_pct
    323. innodb_immediate_scrub_data-uncompressed
    324. innodb_import_table_from_xtrabackup
    325. innodb_instrument_semaphores
    326. innodb_io_capacity
    327. innodb_io_capacity_max
    328. innodb_kill_idle_transaction
    329. innodb_large_prefix
    330. innodb_lazy_drop_table
    331. innodb_lock_schedule_algorithm
    332. innodb_lock_wait_timeout
    333. innodb_locking_fake_changes
    334. innodb_locks_unsafe_for_binlog
    335. innodb_log_arch_dir
    336. innodb_log_arch_expire_sec
    337. innodb_log_archive
    338. innodb_log_block_size
    339. innodb_log_buffer_size
    340. innodb_log_checksum_algorithm
    341. innodb_log_checksums
    342. innodb_log_compressed_pages
    343. innodb_log_file_size
    344. innodb_log_files_in_group
    345. innodb_log_group_home_dir
    346. innodb_log_optimize_ddl
    347. innodb_log_write_ahead_size
    348. innodb_lru_scan_depth
    349. innodb_max_bitmap_file_size
    350. innodb_max_changed_pages
    351. innodb_max_dirty_pages_pct
    352. innodb_max_dirty_pages_pct_lwm
    353. innodb_max_purge_lag
    354. innodb_max_purge_lag_delay
    355. innodb_max_undo_log_size
    356. innodb_merge_sort_block_size
    357. innodb_mirrored_log_groups
    358. innodb_monitor_disable
    359. innodb_monitor_enable
    360. innodb_monitor_reset
    361. innodb_monitor_reset_all
    362. innodb_mtflush_threads
    363. innodb_numa_interleave
    364. innodb_old_blocks_pct
    365. innodb_old_blocks_time
    366. innodb_online_alter_log_max_size
    367. innodb_open_files
    368. innodb_optimize_fulltext_only
    369. innodb_page_cleaners
    370. innodb_page_size
    371. innodb_prefix_index_cluster_optimization
    372. innodb_print_all_deadlocks
    373. innodb_purge_batch_size
    374. innodb_purge_rseg_truncate_frequency
    375. innodb_purge_threads
    376. innodb_random_read_ahead
    377. innodb_read_ahead
    378. innodb_read_ahead_threshold
    379. innodb_read_io_threads
    380. innodb_read_only
    381. innodb_recovery_stats
    382. innodb_recovery_update_relay_log
    383. innodb_replication_delay
    384. innodb_rollback_on_timeout
    385. innodb_rollback_segments
    386. innodb_safe_truncate
    387. innodb_sched_priority_cleaner
    388. innodb_scrub_log
    389. innodb_scrub_log_interval
    390. innodb_scrub_log_speed
    391. innodb_show_locks_held
    392. innodb_show_verbose_locks
    393. innodb_simulate_comp_failures
    394. innodb_sort_buffer_size
    395. innodb_spin_wait_delay
    396. innodb_stats_auto_recalc
    397. innodb_stats_auto_update
    398. innodb_stats_include_delete_marked
    399. innodb_stats_method
    400. innodb_stats_modified_counter
    401. innodb_stats_on_metadata
    402. innodb_stats_persistent
    403. innodb_stats_persistent_sample_pages
    404. innodb_stats_sample_pages
    405. innodb_stats_traditional
    406. innodb_stats_transient_sample_pages
    407. innodb_stats_update_need_lock
    408. innodb_status_output
    409. innodb_status_output_locks
    410. innodb_strict_mode
    411. innodb_support_xa
    412. innodb_sync_array_size
    413. innodb_sync_spin_loops
    414. innodb_table_locks
    415. innodb_temp_data_file_path
    416. innodb_thread_concurrency
    417. innodb_thread_concurrency_timer_based
    418. innodb_thread_sleep_delay
    419. innodb_tmpdir
    420. innodb_track_changed_pages
    421. innodb_track_redo_log_now
    422. innodb_undo_directory
    423. innodb_undo_log_truncate
    424. innodb_undo_logs
    425. innodb_use_atomic_writes
    426. innodb_use_fallocate
    427. innodb_use_global_flush_log_at_trx_commit
    428. innodb_use_native_aio
    429. innodb_use_purge_thread
    430. innodb_use_stacktrace
    431. innodb_use_sys_malloc
    432. innodb_use_sys_stats_table
    433. innodb_version
    434. innodb_write_io_threads
    435. insert_id
    436. interactive_timeout
    437. join_buffer_size
    438. join_buffer_space_limit
    439. join_cache_level
    440. keep_files_on_create
    441. key_buffer_size
    442. key_cache_age_threshold
    443. key_cache_block_size
    444. key_cache_division_limit
    445. key_cache_file_hash_size
    446. key_cache_segments
    447. language
    448. large_files_support
    449. large_page_size
    450. large_pages
    451. last_gtid
    452. last_insert_id
    453. lc_messages
    454. lc_messages_dir
    455. lc_time_names
    456. license
    457. local_infile
    458. lock_wait_timeout
    459. locked_in_memory
    460. log
    461. log_bin
    462. log_bin_basename
    463. log_bin_compress
    464. log_bin_compress_min_len
    465. log_bin_index
    466. log_bin_trust_function_creators
    467. log_disabled_statements
    468. log_error
    469. log_output
    470. log_queries_not_using_indexes
    471. log_slave_updates
    472. log_slow_admin_statements
    473. log_slow_disabled_statements
    474. log_slow_filter
    475. log_slow_queries
    476. log_slow_rate_limit
    477. log_slow_slave_statements
    478. log_slow_verbosity
    479. log_tc_size
    480. log_warnings
    481. long_query_time
    482. low_priority_updates
    483. lower_case_file_system
    484. lower_case_table_names
    485. master_verify_checksum
    486. max_allowed_packet
    487. max_binlog_cache_size
    488. max_binlog_size
    489. max_binlog_stmt_cache_size
    490. max_connect_errors
    491. max_connections
    492. max_delayed_threads
    493. max_digest_length
    494. max_error_count
    495. max_heap_table_size
    496. max_insert_delayed_threads
    497. max_join_size
    498. max_length_for_sort_data
    499. max_long_data_size
    500. max_password_errors
    501. max_prepared_stmt_count
    502. max_recursive_iterations
    503. max_relay_log_size
    504. max_rowid_filter_size
    505. max_seeks_for_key
    506. max_session_mem_used
    507. max_sort_length
    508. max_sp_recursion_depth
    509. max_statement_time
    510. max_tmp_tables
    511. max_user_connections
    512. max_write_lock_count
    513. metadata_locks_cache_size
    514. metadata_locks_hash_instances
    515. min_examined_row_limit
    516. mroonga_action_on_fulltext_query_error
    517. mroonga_boolean_mode_syntax_flags
    518. mroonga_database_path_prefix
    519. mroonga_default_parser
    520. mroonga_default_tokenizer
    521. mroonga_default_wrapper_engine
    522. mroonga_dry_write
    523. mroonga_enable_operations_recording
    524. mroonga_enable_optimization
    525. mroonga_libgroonga_embedded
    526. mroonga_libgroonga_support_zlib
    527. mroonga_libgroonga_support_zstd
    528. mroonga_libgroonga_version
    529. mroonga_log_file
    530. mroonga_log_level
    531. mroonga_match_escalation_threshold
    532. mroonga_max_n_records_for_estimate
    533. mroonga_query_log_file
    534. mroonga_vector_column_delimiter
    535. mroonga_version
    536. mrr_buffer_size
    537. multi_range_count
    538. myisam_block_size
    539. myisam_data_pointer_size
    540. myisam_max_sort_file_size
    541. myisam_mmap_size
    542. myisam_recover_options
    543. myisam_repair_threads
    544. myisam_sort_buffer_size
    545. myisam_stats_method
    546. myisam_use_mmap
    547. mysql56_temporal_format
    548. named_pipe
    549. net_buffer_length
    550. net_read_timeout
    551. net_retry_count
    552. net_write_timeout
    553. old
    554. old_alter_table
    555. old_mode
    556. old_passwords
    557. open_files_limit
    558. optimizer_prune_level
    559. optimizer_search_depth
    560. optimizer_selectivity_sampling_limit
    561. optimizer_switch
    562. optimizer_use_condition_selectivity
    563. optimizer_trace
    564. optimizer_trace_max_mem_size
    565. oqgraph_allow_create_integer_latch
    566. pam_debug
    567. pam_use_cleartext_plugin
    568. performance_schema
    569. performance_schema_accounts_size
    570. performance_schema_digests_size
    571. performance_schema_events_stages_history_long_size
    572. performance_schema_events_stages_history_size
    573. performance_schema_events_statements_history_long_size
    574. performance_schema_events_statements_history_size
    575. performance_schema_events_waits_history_long_size
    576. performance_schema_events_waits_history_size
    577. performance_schema_hosts_size
    578. performance_schema_max_cond_classes
    579. performance_schema_max_cond_instances
    580. performance_schema_max_digest_length
    581. performance_schema_max_file_classes
    582. performance_schema_max_file_handles
    583. performance_schema_max_file_instances
    584. performance_schema_max_mutex_classes
    585. performance_schema_max_mutex_instances
    586. performance_schema_max_rwlock_classes
    587. performance_schema_max_rwlock_instances
    588. performance_schema_max_socket_classes
    589. performance_schema_max_socket_instances
    590. performance_schema_max_stage_classes
    591. performance_schema_max_statement_classes
    592. performance_schema_max_table_handles
    593. performance_schema_max_table_instances
    594. performance_schema_max_thread_classes
    595. performance_schema_max_thread_instances
    596. performance_schema_session_connect_attrs_size
    597. performance_schema_setup_actors_size
    598. performance_schema_setup_objects_size
    599. performance_schema_users_size
    600. pid_file
    601. plugin_dir
    602. plugin_maturity
    603. port
    604. preload_buffer_size
    605. profiling
    606. profiling_history_size
    607. progress_report_time
    608. protocol_version
    609. proxy_protocol_networks
    610. proxy_user
    611. pseudo_slave_mode
    612. pseudo_thread_id
    613. query_alloc_block_size
    614. query_cache_limit
    615. query_cache_min_res_unit
    616. query_cache_size
    617. query_cache_strip_comments
    618. query_cache_type
    619. query_cache_wlock_invalidate
    620. query_prealloc_size
    621. query_response_time_flush
    622. query_response_time_range_base
    623. query_response_time_range_exec_time_debug
    624. query_response_time_stats
    625. rand_seed1
    626. rand_seed2
    627. range_alloc_block_size
    628. read_binlog_speed_limit
    629. read_buffer_size
    630. read_only
    631. read_rnd_buffer_size
    632. relay_log
    633. relay_log_basename
    634. relay_log_index
    635. relay_log_info_file
    636. relay_log_purge
    637. relay_log_recovery
    638. relay_log_space_limit
    639. replicate_annotate_row_events
    640. replicate_do_db
    641. replicate_do_table
    642. replicate_events_marked_for_skip
    643. replicate_ignore_db
    644. replicate_ignore_table
    645. replicate_wild_do_table
    646. replicate_wild_ignore_table
    647. report_host
    648. report_password
    649. report_port
    650. report_user
    651. rocksdb_access_hint_on_compaction_start
    652. rocksdb_advise_random_on_open
    653. rocksdb_allow_concurrent_memtable_write
    654. rocksdb_allow_mmap_reads
    655. rocksdb_allow_mmap_writes
    656. rocksdb_background_sync
    657. rocksdb_base_background_compactions
    658. rocksdb_blind_delete_primary_key
    659. rocksdb_block_cache_size
    660. rocksdb_block_restart_interval
    661. rocksdb_block_size
    662. rocksdb_block_size_deviation
    663. rocksdb_bulk_load
    664. rocksdb_bulk_load_allow_unsorted
    665. rocksdb_bulk_load_size
    666. rocksdb_bytes_per_sync
    667. rocksdb_cache_index_and_filter_blocks
    668. rocksdb_checksums_pct
    669. rocksdb_collect_sst_properties
    670. rocksdb_commit_in_the_middle
    671. rocksdb_compact_cf
    672. rocksdb_compaction_readahead_size
    673. rocksdb_compaction_sequential_deletes
    674. rocksdb_compaction_sequential_deletes_count_sd
    675. rocksdb_compaction_sequential_deletes_file_size
    676. rocksdb_compaction_sequential_deletes_window
    677. rocksdb_concurrent_prepare
    678. rocksdb_create_checkpoint
    679. rocksdb_create_if_missing
    680. rocksdb_create_missing_column_families
    681. rocksdb_datadir
    682. rocksdb_db_write_buffer_size
    683. rocksdb_deadlock_detect
    684. rocksdb_deadlock_detect_depth
    685. rocksdb_debug_optimizer_no_zero_cardinality
    686. rocksdb_debug_ttl_ignore_pk
    687. rocksdb_debug_ttl_read_filter_ts
    688. rocksdb_debug_ttl_rec_ts
    689. rocksdb_debug_ttl_snapshot_ts
    690. rocksdb_default_cf_options
    691. rocksdb_delayed_write_rate
    692. rocksdb_delete_obsolete_files_period_micros
    693. rocksdb_enable_2pc
    694. rocksdb_enable_bulk_load_api
    695. rocksdb_enable_thread_tracking
    696. rocksdb_enable_ttl
    697. rocksdb_enable_ttl_read_filtering
    698. rocksdb_enable_write_thread_adaptive_yield
    699. rocksdb_error_if_exists
    700. rocksdb_flush_log_at_trx_commit
    701. rocksdb_flush_memtable_on_analyze
    702. rocksdb_force_compute_memtable_stats
    703. rocksdb_force_compute_memtable_stats_cachetime
    704. rocksdb_force_flush_memtable_and_lzero_now
    705. rocksdb_force_flush_memtable_now
    706. rocksdb_force_index_records_in_range
    707. rocksdb_git_hash
    708. rocksdb_hash_index_allow_collision
    709. rocksdb_index_type
    710. rocksdb_info_log_level
    711. rocksdb_io_write_timeout
    712. rocksdb_is_fd_close_on_exec
    713. rocksdb_keep_log_file_num
    714. rocksdb_large_prefix
    715. rocksdb_lock_scanned_rows
    716. rocksdb_lock_wait_timeout
    717. rocksdb_log_file_time_to_roll
    718. rocksdb_manifest_preallocation_size
    719. rocksdb_manual_wal_flush
    720. rocksdb_master_skip_tx_api
    721. rocksdb_max_background_compactions
    722. rocksdb_max_background_flushes
    723. rocksdb_max_background_jobs
    724. rocksdb_max_latest_deadlocks
    725. rocksdb_max_log_file_size
    726. rocksdb_max_manifest_file_size
    727. rocksdb_max_open_files
    728. rocksdb_max_row_locks
    729. rocksdb_max_subcompactions
    730. rocksdb_max_total_wal_size
    731. rocksdb_merge_buf_size
    732. rocksdb_merge_combine_read_size
    733. rocksdb_merge_tmp_file_removal_delay_ms
    734. rocksdb_new_table_reader_for_compaction_inputs
    735. rocksdb_no_block_cache
    736. rocksdb_override_cf_options
    737. rocksdb_paranoid_checks
    738. rocksdb_pause_background_work
    739. rocksdb_perf_context_level
    740. rocksdb_persistent_cache_path
    741. rocksdb_persistent_cache_size_mb
    742. rocksdb_pin_l0_filter_and_index_blocks_in_cache
    743. rocksdb_print_snapshot_conflict_queries
    744. rocksdb_rate_limiter_bytes_per_sec
    745. rocksdb_read_free_rpl_tables
    746. rocksdb_records_in_range
    747. rocksdb_reset_stats
    748. rocksdb_seconds_between_stat_computes
    749. rocksdb_signal_drop_index_thread
    750. rocksdb_sim_cache_size
    751. rocksdb_skip_bloom_filter_on_read
    752. rocksdb_skip_fill_cache
    753. rocksdb_skip_unique_check_tables
    754. rocksdb-sst-mgr-rate-bytes-per-sec
    755. rocksdb_stats_dump_period_sec
    756. rocksdb_store_row_debug_checksums
    757. rocksdb_strict_collation_check
    758. rocksdb_strict_collation_exceptions
    759. rocksdb_supported_compression_types
    760. rocksdb_table_cache_numshardbits
    761. rocksdb_table_stats_sampling_pct
    762. rocksdb_tmpdir
    763. rocksdb_trace_sst_api
    764. rocksdb_unsafe_for_binlog
    765. rocksdb_update_cf_options
    766. rocksdb_use_adaptive_mutex
    767. rocksdb_use_clock_cache
    768. rocksdb_use_direct_io_for_flush_and_compaction
    769. rocksdb_use_direct_reads
    770. rocksdb_use_fsync
    771. rocksdb_validate_tables
    772. rocksdb_verify_row_debug_checksums
    773. rocksdb_wal_bytes_per_sync
    774. rocksdb_wal_dir
    775. rocksdb_wal_recovery_mode
    776. rocksdb_wal_size_limit_mb
    777. rocksdb_wal_ttl_seconds
    778. rocksdb_whole_key_filtering
    779. rocksdb_write_batch_max_bytes
    780. rocksdb_write_disable_wal
    781. rocksdb_write_ignore_missing_column_families
    782. rowid_merge_buff_size
    783. rpl_recovery_rank
    784. rpl_semi_sync_master_enabled
    785. rpl_semi_sync_master_timeout
    786. rpl_semi_sync_master_trace_level
    787. rpl_semi_sync_master_wait_no_slave
    788. rpl_semi_sync_master_wait_point
    789. rpl_semi_sync_slave_delay_master
    790. rpl_semi_sync_slave_enabled
    791. rpl_semi_sync_slave_kill_conn_timeout
    792. rpl_semi_sync_slave_trace_level
    793. safe_show_database
    794. secure_auth
    795. secure_file_priv
    796. secure_timestamp
    797. server_audit_events
    798. server_audit_excl_users
    799. server_audit_file_path
    800. server_audit_file_rotate_now
    801. server_audit_file_rotate_size
    802. server_audit_file_rotations
    803. server_audit_incl_users
    804. server_audit_loc_info
    805. server_audit_logging
    806. server_audit_mode
    807. server_audit_output_type
    808. server_audit_query_limit
    809. server_audit_syslog_facility
    810. server_audit_syslog_ident
    811. server_audit_syslog_info
    812. server_audit_syslog_priority
    813. server_id
    814. session_track_schema
    815. session_track_state_change
    816. session_track_system_variables
    817. session_track_transaction_info
    818. shared_memory
    819. shared_memory_base_name
    820. simple_password_check_digits
    821. simple_password_check_letters_same_case
    822. simple_password_check_minimal_length
    823. simple_password_check_other_characters
    824. skip_external_locking
    825. skip_name_resolve
    826. skip_networking
    827. skip_parallel_replication
    828. skip_replication
    829. skip_show_database
    830. slave_compressed_protocol
    831. slave_ddl_exec_mode
    832. slave_domain_parallel_threads
    833. slave_exec_mode
    834. slave_load_tmpdir
    835. slave_max_allowed_packet
    836. slave_net_timeout
    837. slave_parallel_max_queued
    838. slave_parallel_mode
    839. slave_parallel_threads
    840. slave_run_triggers_for_rbr
    841. slave_skip_errors
    842. slave_sql_verify_checksum
    843. slave_transaction_retries
    844. slave_transaction_retry_errors
    845. slave_transaction_retry_interval
    846. slave_type_conversions
    847. slow_launch_time
    848. slow_query_log
    849. slow_query_log_file
    850. socket
    851. sort_buffer_size
    852. spider_auto_increment_mode
    853. spider_auto_increment_mode
    854. spider_auto_increment_mode
    855. spider_bgs_second_read
    856. spider_bka_engine
    857. spider_bka_mode
    858. spider_block_size
    859. spider_bulk_size
    860. spider_bulk_update_mode
    861. spider_bulk_update_size
    862. spider_casual_read
    863. spider_conn_recycle_mode
    864. spider_conn_recycle_strict
    865. spider_conn_wait_timeout
    866. spider_connect_error_interval
    867. spider_connect_mutex
    868. spider_connect_retry_count
    869. spider_connect_retry_interval
    870. spider_connect_timeout
    871. spider_crd_bg_mode
    872. spider_crd_interval
    873. spider_crd_mode
    874. spider_crd_sync
    875. spider_crd_type
    876. spider_crd_weight
    877. spider_delete_all_rows_type
    878. spider_direct_dup_insert
    879. spider_direct_order_limit
    880. spider_dry_access
    881. spider_error_read_mode
    882. spider_error_write_mode
    883. spider_first_read
    884. spider_force_commit
    885. spider_general_log
    886. spider_index_hint_pushdown
    887. spider_init_sql_alloc_size
    888. spider_internal_limit
    889. spider_internal_offset
    890. spider_internal_optimize
    891. spider_internal_optimize_local
    892. spider_internal_sql_log_off
    893. spider_internal_unlock
    894. spider_internal_xa
    895. spider_internal_xa_id_type
    896. spider_internal_xa_snapshot
    897. spider_load_crd_at_startup
    898. spider_load_sts_at_startup
    899. spider_local_lock_table
    900. spider_lock_exchange
    901. spider_log_result_error_with_sql
    902. spider_log_result_errors
    903. spider_low_mem_read
    904. spider_max_connections
    905. spider_max_order
    906. spider_multi_split_read
    907. spider_net_read_timeout
    908. spider_net_write_timeout
    909. spider_ping_interval_at_trx_start
    910. spider_quick_mode
    911. spider_quick_page_size
    912. spider_read_only_mode
    913. spider_remote_access_charset
    914. spider_remote_autocommit
    915. spider_remote_default_database
    916. spider_remote_sql_log_off
    917. spider_remote_time_zone
    918. spider_remote_trx_isolation
    919. spider_reset_sql_alloc
    920. spider_same_server_link
    921. spider_second_read
    922. spider_select_column_mode
    923. spider_selupd_lock_mode
    924. spider_semi_split_read
    925. spider_semi_split_read_limit
    926. spider_semi_table_lock
    927. spider_semi_table_lock_connection
    928. spider_semi_trx
    929. spider_semi_trx_isolation
    930. spider_skip_default_condition
    931. spider_skip_parallel_search
    932. spider_split_read
    933. spider_store_last_crd
    934. spider_store_last_sts
    935. spider_sts_bg_mode
    936. spider_sts_interval
    937. spider_sts_mode
    938. spider_sts_sync
    939. spider_support_xa
    940. spider_sync_autocommit
    941. spider_sync_time_zone
    942. spider_sync_trx_isolation
    943. spider_table_crd_thread_count
    944. spider_table_init_error_interval
    945. spider_table_sts_thread_count
    946. spider_udf_ct_bulk_insert_interval
    947. spider_udf_ct_bulk_insert_rows
    948. spider_udf_ds_bulk_insert_rows
    949. spider_udf_ds_table_loop_mode
    950. spider_udf_ds_use_real_table
    951. spider_udf_table_lock_mutex_count
    952. spider_udf_table_mon_mutex_count
    953. spider_use_all_conns_snapshot
    954. spider_use_consistent_snapshot
    955. spider_use_default_database
    956. spider_use_flash_logs
    957. spider_use_handler
    958. spider_use_pushdown_udf
    959. spider_use_table_charset
    960. spider_version
    961. spider_xa_register_mode
    962. sql_auto_is_null
    963. sql_big_selects
    964. sql_big_tables
    965. sql_buffer_result
    966. sql_error_log_filename
    967. sql_error_log_rate
    968. sql_error_log_rotate
    969. sql_error_log_rotations
    970. sql_error_log_size_limit
    971. sql_log_bin
    972. sql_log_off
    973. sql_log_update
    974. sql_low_priority_updates
    975. sql_max_join_size
    976. sql_mode
    977. sql_notes
    978. sql_quote_show_create
    979. sql_safe_updates
    980. sql_select_limit
    981. sql_slave_skip_counter
    982. sql_warnings
    983. ssl_ca
    984. ssl_capath
    985. ssl_cert
    986. ssl_cipher
    987. ssl_crl
    988. ssl_crlpath
    989. ssl_key
    990. storage_engine
    991. standard_compliant_cte
    992. stored_program_cache
    993. strict_password_validation
    994. symbolic_links
    995. sync_binlog
    996. sync_frm
    997. sync_master_info
    998. sync_relay_log
    999. sync_relay_log_info
    1000. system_time_zone
    1001. system_versioning_alter_history
    1002. system_versioning_asof
    1003. system_versioning_innodb_algorithm_simple
    1004. table_definition_cache
    1005. table_lock_wait_timeout
    1006. table_open_cache
    1007. table_open_cache_instances
    1008. table_type
    1009. tcp_keepalive_interval
    1010. tcp_keepalive_probes
    1011. tcp_keepalive_time
    1012. tcp_nodelay
    1013. thread_cache_size
    1014. thread_concurrency
    1015. thread_handling
    1016. thread_pool_idle_timeout
    1017. thread_pool_max_threads
    1018. thread_pool_min_threads
    1019. thread_pool_oversubscribe
    1020. thread_pool_prio_kickup_timer
    1021. thread_pool_priority
    1022. thread_pool_size
    1023. thread_pool_stall_limit
    1024. thread_stack
    1025. time_format
    1026. time_zone
    1027. timed_mutexes
    1028. timestamp
    1029. tmp_disk_table_size
    1030. tmp_memory_table_size
    1031. tmp_table_size
    1032. tmpdir
    1033. tokudb_alter_print_error
    1034. tokudb_analyze_time
    1035. tokudb_block_size
    1036. tokudb_bulk_fetch
    1037. tokudb_cache_size
    1038. tokudb_check_jemalloc
    1039. tokudb_checkpoint_lock
    1040. tokudb_checkpoint_on_flush_logs
    1041. tokudb_checkpointing_period
    1042. tokudb_cleaner_iterations
    1043. tokudb_cleaner_period
    1044. tokudb_commit_sync
    1045. tokudb_create_index_online
    1046. tokudb_data_dir
    1047. tokudb_debug
    1048. tokudb_directio
    1049. tokudb_disable_hot_alter
    1050. tokudb_disable_prefetching
    1051. tokudb_disable_slow_alter
    1052. tokudb_empty_scan
    1053. tokudb_fs_reserve_percent
    1054. tokudb_fsync_log_period
    1055. tokudb_hide_default_row_format
    1056. tokudb_killed_time
    1057. tokudb_last_lock_timeout
    1058. tokudb_load_save_space
    1059. tokudb_loader_memory_size
    1060. tokudb_lock_timeout
    1061. tokudb_lock_timeout_debug
    1062. tokudb_log_dir
    1063. tokudb_max_lock_memory
    1064. tokudb_optimize_index_fraction
    1065. tokudb_optimize_index_name
    1066. tokudb_optimize_throttle
    1067. tokudb_pk_insert_mode
    1068. tokudb_prelock_empty
    1069. tokudb_read_block_size
    1070. tokudb_read_buf_size
    1071. tokudb_read_status_frequency
    1072. tokudb_row_format
    1073. tokudb_rpl_check_readonly
    1074. tokudb_rpl_lookup_rows
    1075. tokudb_rpl_lookup_rows_delay
    1076. tokudb_rpl_unique_checks
    1077. tokudb_rpl_unique_checks_delay
    1078. tokudb_support_xa
    1079. tokudb_tmp_dir
    1080. tokudb_version
    1081. tokudb_write_status_frequency
    1082. transaction_alloc_block_size
    1083. transaction_prealloc_size
    1084. tx_isolation
    1085. tx_read_only
    1086. unique_checks
    1087. updatable_views_with_limit
    1088. use_stat_tables
    1089. userstat
    1090. version
    1091. version_comment
    1092. version_compile_machine
    1093. version_compile_os
    1094. version_malloc_library
    1095. version_source_revision
    1096. version_ssl_library
    1097. wait_timeout
    1098. warning_count
    1099. wsrep_auto_increment_control
    1100. wsrep_causal_reads
    1101. wsrep_certification_rules
    1102. wsrep_certify_nonPK
    1103. wsrep_cluster_address
    1104. wsrep_cluster_name
    1105. wsrep_convert_LOCK_to_trx
    1106. wsrep_data_home_dir
    1107. wsrep_dbug_option
    1108. wsrep_debug
    1109. wsrep_desync
    1110. wsrep_dirty_reads
    1111. wsrep_drupal_282555_workaround
    1112. wsrep_forced_binlog_format
    1113. wsrep_gtid_domain_id
    1114. wsrep_gtid_mode
    1115. wsrep_ignore_apply_errors
    1116. wsrep_load_data_splitting
    1117. wsrep_log_conflicts
    1118. wsrep_max_ws_rows
    1119. wsrep_max_ws_size
    1120. wsrep_mysql_replication_bundle
    1121. wsrep_node_address
    1122. wsrep_node_incoming_address
    1123. wsrep_node_name
    1124. wsrep_notify_cmd
    1125. wsrep_on
    1126. wsrep_OSU_method
    1127. wsrep_provider
    1128. wsrep_provider_options
    1129. wsrep_recover
    1130. wsrep_reject_queries
    1131. wsrep_replicate_myisam
    1132. wsrep_restart_slave
    1133. wsrep_retry_autocommit
    1134. wsrep_slave_FK_checks
    1135. wsrep_slave_threads
    1136. wsrep_slave_UK_checks
    1137. wsrep_sr_store
    1138. wsrep_sst_auth
    1139. wsrep_sst_donor
    1140. wsrep_sst_donor_rejects_queries
    1141. wsrep_sst_method
    1142. wsrep_sst_receive_address
    1143. wsrep_start_position
    1144. wsrep_sync_wait
    1145. wsrep_trx_fragment_size
    1146. wsrep_trx_fragment_unit

About the Server System Variables

MariaDB has many system variables that can be changed to suit your needs.

The full list of server variables are listed in the contents on this page, and most are described on this page, but some are described elsewhere:

See also the Full list of MariaDB options, system and status variables.

Most of these can be set with command line options and many of them can be changed at runtime.

There are a few ways to see the full list of server system variables:

  • While in the mysql client, run:
SHOW VARIABLES;
  • From your shell, run mysqld like so:
mysqld --verbose --help

Setting Server System Variables

There are several ways to set server system variables:

  • Specify them on the command line:
shell> ./mysqld_safe --aria_group_commit="hard"
aria_group_commit = "hard"
  • Set them from the mysql client using the SET command. Only variables that are dynamic can be set at runtime in this way. Note that variables set in this way will not persist after a restart.
SET GLOBAL aria_group_commit="hard";

By convention, server variables have usually been specified with an underscore in the configuration files, and a dash on the command line. You can however specify underscores as dashes - they are interchangeable.

Variables that take a numeric size can either be specified in full, or with a suffix for easier readability. Valid suffixes are:

SuffixDescriptionValue
Kkilobytes1024
Mmegabytes10242
Ggigabytes10243
Tterabytes10244 (from MariaDB 10.3.3)
Ppetabytes10245 (from MariaDB 10.3.3)
Eexabytes10246 (from MariaDB 10.3.3)

The suffix can be upper or lower-case.

List of Server System Variables

alter_algorithm

  • Description: The implied ALGORITHM for ALTER TABLE if no ALGORITHM clause is specified. The deprecated variable old_alter_table is an alias for this.
    • COPY corresponds to the pre-MySQL 5.1 approach of creating an intermediate table, copying data one row at a time, and renaming and dropping tables.
    • INPLACE requests that the operation be refused if it cannot be done natively inside a the storage engine.
    • DEFAULT (the default) chooses INPLACE if available, and falls back to COPY.
    • NOCOPY refuses to copy a table.
    • INSTANT refuses an operation that would involve any other than metadata changes.
  • Commandline: --alter-algorithm=default
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: enumerated
  • Default Value: DEFAULT
  • Valid Values: DEFAULT, COPY, INPLACE, NOCOPY, INSTANT
  • Introduced: MariaDB 10.3.7

analyze_sample_percentage

  • Description: Percentage of rows from the table ANALYZE TABLE will sample to collect table statistics. Set to 0 to let MariaDB decide what percentage of rows to sample.
  • Commandline: --analyze-sample-percentage=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 100.000000
  • Range: 0 to 100
  • Introduced: MariaDB 10.4.3

autocommit

  • Description: If set to 1, the default, all queries are committed immediately. The LOCK IN SHARE MODE and FOR UPDATE clauses therefore have no effect. If set to 0, they are only committed upon a COMMIT statement, or rolled back with a ROLLBACK statement. If autocommit is set to 0, and then changed to 1, all open transactions are immediately committed.
  • Commandline: --autocommit[=#]
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: 1

automatic_sp_privileges

  • Description: When set to 1, the default, when a stored routine is created, the creator is automatically granted permission to ALTER (which includes dropping) and to EXECUTE the routine. If set to 0, the creator is not automatically granted these privileges.
  • Commandline: --automatic-sp-privileges, --skip-automatic-sp-privileges
  • Scope: Global
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: 1

back_log

  • Description: Connections take a small amount of time to start, and this setting determines the number of outstanding connection requests MariaDB can have, or the size of the listen queue for incoming TCP/IP requests. Requests beyond this will be refused. Increase if you expect short bursts of connections. Cannot be set higher than the operating system limit (see the Unix listen() man page). If not set, set to 0, or the --autoset-back-log option is used, will be autoset to the lower of 900 and (50 + max_connections/5) (>= MariaDB 10.1.7).
  • Commandline: --back-log=#
  • Scope: Global
  • Dynamic: No
  • Type: number
  • Default Value:

basedir

  • Description: Path to the MariaDB installation directory. Other paths are usually resolved relative to this base directory.
  • Commandline: --basedir=path or -b path
  • Scope: Global
  • Dynamic: No
  • Type: directory name

big_tables

  • Description: Old variable, which if set to 1, allows large result sets by saving all temporary sets to disk, avoiding 'table full' errors. No longer needed, as the server now handles this automatically. sql_big_tables is a synonym.
  • Commandline: --big-tables
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: 0

bind_address

  • Description: By default, the MariaDB server listens for TCP/IP connections on a network socket bound to a single address, 0.0.0.0. You can specify an alternative when the server starts using this option; either a host name, an IPv4 or an IPv6 address. In Debian and Ubuntu, the default bind_address is 127.0.0.1, which binds the server to listen on localhost only. Has always been available as a mysqld option, from MariaDB 10.3.3 also available as a system variable.
  • Commandline: --bind-address=addr
  • Scope: Global
  • Dynamic: No
  • Data Type: string
  • Valid Values: Host name, IPv4, IPv6 (>= MariaDB 5.5)
  • Introduced: MariaDB 10.3.3 (as a system variable)

bulk_insert_buffer_size

  • Description: Size in bytes of the per-thread cache tree used to speed up bulk inserts into MyISAM and Aria tables. A value of 0 disables the cache tree.
  • Commandline: --bulk-insert-buffer-size=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 8388608
  • Range - 32 bit: 0 to 4294967295
  • Range - 64 bit: 0 to 18446744073709547520

character_set_client

  • Description: Determines the character set for queries arriving from the client. It can be set per session by the client, although the server can be configured to ignore client requests with the --skip-character-set-client-handshake option. If the client does not request a character set, or requests a character set that the server does not support, the global value will be used. utf16, utf32 and ucs2 cannot be used as client character sets.
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: string
  • Default Value: utf8 (>= MariaDB 5.5)

character_set_connection

  • Description: Character set used for number to string conversion, as well as for literals that don't have a character set introducer.
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: string
  • Default Value: utf8 (>= MariaDB 5.5)

character_set_database

  • Description: Character set used by the default database, and set by the server whenever the default database is changed. If there's no default database, character_set_database contains the same value as character_set_server. This variable is dynamic, but should not be set manually, only by the server.
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: string
  • Default Value: latin1

character_set_filesystem

  • Description: The character set for the filesystem. Used for converting file names specified as a string literal from character_set_client to character_set_filesystem before opening the file. By default set to binary, so no conversion takes place. This could be useful for statements such as LOAD_FILE() or LOAD DATA INFILE on system where multi-byte file names are use.
  • Commandline: --character-set-filesystem=name
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: string
  • Default Value: binary

character_set_results

  • Description: Character set used for results and error messages returned to the client.
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: string
  • Default Value: utf8

character_set_server

  • Description: Default character set used by the server. See character_set_database for character sets used by the default database. Defaults may be different on some systems, see for example Differences in MariaDB in Debian.
  • Commandline: --character-set-server
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: string
  • Default Value: latin1

character_set_system

  • Description: Character set used by the server to store identifiers, always set to utf8.
  • Scope: Global
  • Dynamic: No
  • Data Type: string
  • Default Value: utf8

character_sets_dir

  • Description: Directory where the character sets are installed.
  • Commandline: --character-sets-dir=path
  • Scope: Global
  • Dynamic: No
  • Type: directory name

check_constraint_checks

  • Description: If set to 0, will disable constraint checks, for example when loading a table that violates some constraints that you plan to fix later.
  • Commandline: --check-constraint-checks=[0|1]
  • Scope: Global, Session
  • Dynamic: Yes
  • Type: boolean
  • Default: ON
  • Introduced: MariaDB 10.2.1

collation_connection

  • Description: Collation used for the connection character set.
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: string

collation_database

  • Description: Collation used for the default database. Set by the server if the default database changes, if there is no default database the value from the collation_server variable is used. This variable is dynamic, but should not be set manually, only by the server.
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: string

collation_server

  • Description: Default collation used by the server. This is set to the default collation for a given character set automatically when character_set_server is changed, but it can also be set manually. Defaults may be different on some systems, see for example Differences in MariaDB in Debian.
  • Commandline: --collation-server=name
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: string
  • Default Value: latin1_swedish_ci

completion_type

  • Description: The transaction completion type. If set to NO_CHAIN or 0 (the default), there is no effect on commits and rollbacks. If set to CHAIN or 1, a COMMIT statement is equivalent to COMMIT AND CHAIN, while a ROLLBACK is equivalent to ROLLBACK AND CHAIN, so a new transaction starts straight away with the same isolation level as transaction that's just finished. If set to RELEASE or 2, a COMMIT statement is equivalent to COMMIT RELEASE, while a ROLLBACK is equivalent to ROLLBACK RELEASE, so the server will disconnect after the transaction completes. Note that the transaction completion type only applies to explicit commits, not implicit commits.
  • Commandline: --completion-type=name
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: enumerated (>=MariaDB/MySQL 5.5.3), numeric (<= MariaDB/MySQL 5.5.2)
  • Default Value: NO_CHAIN (>=MariaDB/MySQL 5.5.3), 0 (<= MariaDB/MySQL 5.5.2)
  • Valid Values: 0, 1, 2 (All versions), NO_CHAIN, CHAIN, RELEASE (>=MariaDB/MySQL 5.5.3)

concurrent_insert

  • Description: If set to AUTO or 1, the default, MariaDB allows concurrent INSERTs and SELECTs for MyISAM tables with no free blocks in the data. If set to NEVER or 0, concurrent inserts are disabled. If set to ALWAYS or 2, concurrent inserts are permitted for all MyISAM tables, even those with holes, in which case new rows are added at the end of a table if the table is being used by another thread. If the --skip-new option is used when starting the server, concurrent_insert is set to NEVER.
  • Commandline: --concurrent-insert[=name]
  • Scope: Global
  • Dynamic: Yes
  • Data Type: enumerated (>=MariaDB/MySQL 5.5.3), numeric (<= MariaDB/MySQL 5.5.2)
  • Default Value: AUTO (>=MariaDB/MySQL 5.5.3), 1 (<= MariaDB/MySQL 5.5.2)
  • Valid Values: 0, 1, 2 (All versions), AUTO, NEVER, ALWAYS (>=MariaDB/MySQL 5.5.3)
  • Documentation: concurrent-inserts
  • Notes: Changing the variable only affects new opened tables. Use FLUSH TABLES If you want it to affect also cached tables.

connect_timeout

  • Description: Time in seconds that the server waits for a connect packet before returning a 'Bad handshake'. Increasing may help if clients regularly encounter 'Lost connection to MySQL server at 'X', system error: error_number' type-errors.
  • Commandline: --connect-timeout=#
  • Scope: Global
  • Dynamic: Yes
  • Type: numeric
  • Default Value: 10

core_file


datadir

  • Description: Directory where the data is stored.
  • Commandline: --datadir=path or -h path
  • Scope: Global
  • Dynamic: No
  • Type: directory name

date_format

  • Description: Unused.

datetime_format

  • Description: Unused.

debug

  • Description: Available in debug builds only (built with -SWITH_DEBUG=1). Used in debugging through the DBUG library to write to a trace file. Just using --debug will write a trace of what mysqld is doing to /tmp/mysqld.trace.
  • Commandline: -#, --debug[=debug_options]
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: string
  • Default Value: d:t:i:o,/tmp/mysqld.trace (Unix) or d:t:i:O,\mysqld.trace (Windows)

debug_no_thread_alarm

  • Description: Disable system thread alarm calls. Disabling it may be useful in debugging or testing, never do it in production.
  • Commandline: --debug-no-thead-alarm=#
  • Scope: Global
  • Dynamic: No
  • Data Type: boolean
  • Default Value: OFF
  • Introduced: MariaDB

debug_sync

  • Description: Used in debugging to show the interface to the Debug Sync facility. MariaDB needs to be configured with -DENABLE_DEBUG_SYNC=1 for this variable to be available.
  • Scope: Session
  • Dynamic: Yes
  • Data Type: string
  • Default Value: OFF or ON - current signal signal name

default_password_lifetime

  • Description: This defines the global password expiration policy. 0 means automatic password expiration is disabled. If the value is a positive integer N, the passwords must be changed every N days. This behavior can be overridden using the password expiration options in ALTER USER.
  • Commandline: --default-password-lifetime=#
  • Scope: Global
  • Dynamic: Yes
  • Type: numeric
  • Default Value: 0
  • Range: 0 to 4294967295
  • Introduced: MariaDB 10.4.3

default_regex_flags

  • Description: Introduced to address remaining incompatibilities between PCRE and the old regex library. Accepts a comma-separated list of zero or more of the following values:
ValuePattern equivalentMeaning
DOTALL(?s). matches anything including NL
DUPNAMES(?J)Allow duplicate names for subpatterns
EXTENDED(?x)Ignore white space and # comments
EXTRA(?X)extra features (e.g. error on unknown escape character)
MULTILINE(?m)^ and $ match newlines within data
UNGREEDY(?U)Invert greediness of quantifiers
  • Commandline: --default-regex-flags=value
  • Scope: Global, Session
  • Dynamic: Yes
  • Type: enumeration
  • Default Value: empty
  • Valid Values: DOTALL, DUPNAMES, EXTENDED, EXTRA, MULTILINE, UNGREEDY
  • Introduced: MariaDB 10.0.11

default_storage_engine

  • Description: The default storage engine. The default storage engine must be enabled at server startup or the server won't start.
  • Commandline: --default-storage-engine=name
  • Scope: Global, Session
  • Dynamic: Yes
  • Type: enumeration
  • Default Value: InnoDB (>= MariaDB 5.5), MyISAM (<MariaDB 5.3)
  • Introduced: MariaDB 5.5 (previously storage_engine)

default_table_type

  • Description: A synonym for default_storage_engine. Removed in MariaDB 5.5.
  • Commandline: --default-table-type=name
  • Scope: Global, Session
  • Dynamic: Yes
  • Removed: MariaDB/MySQL 5.5

default_tmp_storage_engine

  • Description: Default storage engine that will be used for tables created with CREATE TEMPORARY TABLE where no engine is specified. For internal temporary tables see aria_used_for_temp_tables). The storage engine used must be active or the server will not start. See default_storage_engine for the default for non-temporary tables. Defaults to NULL, in which case the value from default_storage_engine is used.
  • Commandline: --default-tmp-storage-engine=name
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: enumeration
  • Default Value: NULL
  • Introduced: MariaDB 10.1.0

default_week_format

  • Description: Default mode for the WEEK() function. See that page for details on the different modes
  • Commandline: --default-week-format=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 0
  • Range: 0 to 7

delay_key_write

  • Description: Specifies how MyISAM tables handles CREATE TABLE DELAY_KEY_WRITE. If set to ON, the default, any DELAY KEY WRITEs are honored. The key buffer is then flushed only when the table closes, speeding up writes. MyISAM tables should be automatically checked upon startup in this case, and --external locking should not be used, as it can lead to index corruption. If set to OFF, DELAY KEY WRITEs are ignored, while if set to ALL, all new opened tables are treated as if created with DELAY KEY WRITEs enabled.
  • Commandline: --delay-key-write[=name]
  • Scope: Global
  • Dynamic: Yes
  • Data Type: enumeration
  • Default Value: ON
  • Valid Values: ON, OFF, ALL

delayed_insert_limit

  • Description: After this many rows have been inserted with INSERT DELAYED, the handler will check for and execute any waiting SELECT statements.
  • Commandline: --delayed-insert-limit=#
  • Scope: Global
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 100
  • Range: 1 to 4294967295

delayed_insert_timeout

  • Description: Time in seconds that the INSERT DELAYED handler will wait for INSERTs before terminating.
  • Commandline: --delayed-insert-timeout=#
  • Scope: Global
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 300

delayed_queue_size

  • Description: Number of rows, per table, that can be queued when performing INSERT DELAYED statements. If the queue becomes full, clients attempting to perform INSERT DELAYED's will wait until the queue has room available again.
  • Commandline: --delayed-queue-size=#
  • Scope: Global
  • Dynamic: Yes
  • Type: numeric
  • Default Value: 1000
  • Range: 1 to 4294967295

disconnect_on_expired_password

  • Description: When a user password has expired (see User Password Expiry), this variable controls how the server handles clients that are not aware of the sandbox mode. If enabled, the server disconnects the client, otherwise the server puts the client in a sandbox mode.
  • Commandline: --disconnect-on-expired-password[={0|1}]
  • Scope: Global
  • Dynamic: Yes
  • Type: boolean
  • Default Value: OFF
  • Introduced: MariaDB 10.4.3

div_precision_increment

  • Description: Number of digits to be returned after the decimal point in division operations. By default 4, so SELECT 2/15 would return 0.1333. After setting div_precision_increment to 6, for example, the same operation would return 0.133333.
  • Commandline: --div-precision-increment=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 4
  • Range: 0 to 30

encrypt_tmp_disk_tables


encrypt_tmp_files

  • Description: Enables automatic encryption of temporary files, such as those created for filesort operations, binary log file caches, etc. See Data at Rest Encryption.
  • Commandline: --encrypt-tmp-files[={0|1}]
  • Scope: Global
  • Dynamic: No
  • Data Type: boolean
  • Default Value: OFF (>= MariaDB 10.1.7), ON (<= MariaDB 10.1.6)
  • Introduced: MariaDB 10.1.5

encryption_algorithm

  • Description: Which encryption algorithm to use for table encryption. aes_cbc is the recommended one. See Table and Tablespace Encryption.
  • Commandline: --encryption-algorithm=value
  • Scope: Global
  • Dynamic: No
  • Data Type: enum
  • Default Value: none
  • Valid Values: none, aes_ecb, aes_cbc, aes_ctr
  • Introduced: MariaDB 10.1.3
  • Removed: MariaDB 10.1.4

enforce_storage_engine

  • Description: Force the use of a particular storage engine for new tables. Used to avoid unwanted creation of tables using another engine. For example, setting to InnoDB will prevent any MyISAM tables from being created. If another engine is specified in a CREATE TABLE statement, the outcome depends on whether the NO_ENGINE_SUBSTITUTION SQL_MODE has been set or not. If set (the default from MariaDB 10.1.7), the query will fail, while if not set, a warning will be returned and the table created according to the engine specified by this variable. The variable has a session scope, but is only modifiable by a user with the SUPER privilege.
  • Commandline: None
  • Scope: Session
  • Dynamic: Yes
  • Data Type: string
  • Default Value: none
  • Introduced: MariaDB 10.1.4

engine_condition_pushdown

  • Description: Deprecated in MariaDB 5.5 and removed and replaced by the optimizer_switch engine_condition_pushdown={on|off} flag in MariaDB 10.0.. Specifies whether the engine condition pushdown optimization is enabled. Since MariaDB 10.1.1, engine condition pushdown is enabled for all engines that support it.
  • Commandline: --engine-condition-pushdown
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value:
  • Deprecated: MariaDB 5.5
  • Removed: MariaDB 10.0

eq_range_index_dive_limit

  • Description: Limit used for speeding up queries listed by long nested INs. The optimizer will use existing index statistics instead of doing index dives for equality ranges if the number of equality ranges for the index is larger than or equal to this number. If set to 0 (unlimited, the default), index dives are always used.
  • Commandline: --eq-range-index-dive-limit=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 200 (>= MariaDB 10.4.3), 0 (<= MariaDB 10.4.2)
  • Range: 0 to 4294967295
  • Introduced: MariaDB 10.3.10, MariaDB 10.2.18

error_count

  • Description: Read-only variable denoting the number of errors from the most recent statement in the current session that generated errors. See SHOW_ERRORS().
  • Scope: Session
  • Dynamic: Yes
  • Data Type: numeric

event_scheduler

  • Description: Status of the Event Scheduler. Can be set to ON or OFF, while DISABLED means it cannot be set at runtime. Setting the variable will cause a load of events if they were not loaded at startup.
  • Commandline: --event-scheduler[=value]
  • Scope: Global
  • Dynamic: Yes
  • Data Type: enumeration
  • Default Value: OFF
  • Valid Values: ON (or 1), OFF (or 0), DISABLED

expensive_subquery_limit

  • Description: Number of rows to be examined for a query to be considered expensive, that is, maximum number of rows a subquery may examine in order to be executed during optimization and used for constant optimization.
  • Commandline: --expensive-subquery-limit=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 100
  • Range: 0 upwards
  • Introduced: MariaDB 5.5.25

explicit_defaults_for_timestamp

  • Description: This option causes CREATE TABLE to create all TIMESTAMP columns as NULL with the DEFAULT NULL attribute, Without this option, TIMESTAMP columns are NOT NULL and have implicit DEFAULT clauses. The old behavior is deprecated.
  • Commandline: --explicit-defaults-for-timestamp=[={0|1}]
  • Scope: Global
  • Dynamic: No
  • Data Type: bolean
  • Default Value: OFF
  • Introduced: MariaDB 10.1.8

external_user

  • Description: External user name set by the plugin used to authenticate the client. NULL if native MariaDB authentication is used.
  • Scope: Session
  • Dynamic: No
  • Data Type: string
  • Default Value: NULL
  • Introduced: MariaDB 5.5

flush

  • Description: Usually, MariaDB writes changes to disk after each SQL statement, and the operating system handles synchronizing (flushing) it to disk. If set to ON, the server will synchronize all changes to disk after each statement.
  • Commandline: --flush
  • Scope: Global
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: OFF

flush_time

  • Description: Interval in seconds that tables are closed to synchronize (flush) data to disk and free up resources. If set to 0, the default, there is no automatic synchronizing tables and closing of tables. This option should not be necessary on systems with sufficient resources.
  • Commandline: --flush_time=#
  • Scope: Global
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 0

foreign_key_checks

  • Description: If set to 1 (the default) foreign key constraints (including ON UPDATE and ON DELETE behavior) InnoDB tables are checked, while if set to 0, they are not checked. 0 is not recommended for normal use, though it can be useful in situations where you know the data is consistent, but want to reload data in a different order from that that specified by parent/child relationships. Setting this variable to 1 does not retrospectively check for inconsistencies introduced while set to 0.
  • Commandline: None
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: 1

ft_boolean_syntax

  • Description: List of operators supported by an IN BOOLEAN MODE full-text search. If you wish to change, note that each character must be ASCII and non-alphanumeric, the full string must be 14 characters and the first or second character must be a space. Positions 10, 13 and 14 are reserved for future extensions. Also, no duplicates are permitted except for the phrase quoting characters in positions 11 and 12, which may be the same.
  • Commandline: --ft-boolean-syntax=name
  • Scope: Global
  • Dynamic: Yes
  • Data Type: string
  • Default Value: + -><()*:""&|

ft_max_word_len

  • Description: Maximum length for a word to be included in the MyISAM full-text index. If this variable is changed, the full-text index must be rebuilt. The quickest way to do this is by issuing a REPAIR TABLE table_name QUICK statement. See innodb_ft_max_token_size for the InnoDB equivalent.
  • Commandline: --ft-max-word-len=#
  • Scope: Global
  • Dynamic: No
  • Data Type: numeric
  • Default Value: 84
  • Minimum Value: 10

ft_min_word_len

  • Description: Minimum length for a word to be included in the MyISAM full-text index. If this variable is changed, the full-text index must be rebuilt. The quickest way to do this is by issuing a REPAIR TABLE table_name QUICK statement. See innodb_ft_min_token_size for the InnoDB equivalent.
  • Commandline: --ft-min-word-len=#
  • Scope: Global
  • Dynamic: No
  • Data Type: numeric
  • Default Value: 4
  • Minimum Value: 1

ft_query_expansion_limit

  • Description: For full-text searches, denotes the numer of top matches when using WITH QUERY EXPANSION.
  • Commandline: --ft-query-expansion-limit=#
  • Scope: Global
  • Dynamic: No
  • Data Type: numeric
  • Default Value: 20
  • Range: 0 to 1000

ft_stopword_file

  • Description: File containing a list of stopwords for use in MyISAM full-text searches. Unless an absolute path is specified the file will be looked for in the data directory. The file is not parsed for comments, so all words found become stopwords. By default, a built-in list of words (built from storage/myisam/ft_static.c file) is used. Stopwords can be disabled by setting this variable to '' (an empty string). If this variable is changed, the full-text index must be rebuilt. The quickest way to do this is by issuing a REPAIR TABLE table_name QUICK statement. See innodb_ft_server_stopword_table for the InnoDB equivalent.
  • Commandline: --ft-stopword-file=file_name
  • Scope: Global
  • Dynamic: No
  • Data Type: file name
  • Default Value: (built-in)

general_log

  • Description: If set to 0, the default unless the --general-log option is used, the general query log is disabled, while if set to 1, the general query log is enabled. See log_output for how log files are written. If that variable is set to NONE, no logs will be written even if general_query_log is set to 1.
  • Commandline: --general-log
  • Scope: Global
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: 0

general_log_file

  • Description: Name of the general query log file. If this is not specified, the name is taken from the log-basename setting or from your system hostname with .log as a suffix.
  • Commandline: --general-log-file=file_name
  • Scope: Global
  • Dynamic: Yes
  • Data Type: file name
  • Default Value: host_name.log

group_concat_max_len

  • Description: Maximum length in bytes of the returned result for a GROUP_CONCAT() function.
  • Commandline: --group-concat-max-len=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value:
  • Range - 32-bit: 4 to 4294967295
  • Range - 64-bit: 4 to 18446744073709547520

.

have_compress

  • Description: If the zlib compression library is accessible to the server, this will be set to YES, otherwise it will be NO. The COMPRESS() and UNCOMPRESS() functions will only be available if set to YES.
  • Scope: Global
  • Dynamic: No

have_crypt

  • Description: If the crypt() system call is available this variable will be set to YES, otherwise it will be set to NO. If set to NO, the ENCRYPT() function cannot be used.
  • Scope: Global
  • Dynamic: No

have_csv


have_dynamic_loading

  • Description: If the server supports dynamic loading of plugins, will be set to YES, otherwise will be set to NO.
  • Scope: Global
  • Dynamic: No

have_geometry

  • Description: If the server supports spatial data types, will be set to YES, otherwise will be set to NO.
  • Scope: Global
  • Dynamic: No

have_ndbcluster


have_partitioning

  • Description: If the server supports partitioning, will be set to YES, unless the --skip-partition option is used, in which case will be set to DISABLED. Will be set to NO otherwise. Removed in MariaDB 10.0 - SHOW PLUGINS should be used instead.
  • Scope: Global
  • Dynamic: No
  • Removed: MariaDB 10.0

have_profiling

  • Description: If statement profiling is available, will be set to YES, otherwise will be set to NO. See SHOW PROFILES() and SHOW PROFILE().
  • Scope: Global
  • Dynamic: No

have_query_cache

  • Description: If the server supports the query cache, will be set to YES, otherwise will be set to NO.
  • Scope: Global
  • Dynamic: No

have_rtree_keys

  • Description: If RTREE indexes (used for spatial indexes) are available, will be set to YES, otherwise will be set to NO.
  • Scope: Global
  • Dynamic: No

  • Description: If symbolic link support is enabled, will be set to YES, otherwise will be set to NO. Required for the INDEX DIRECTORY and DATA DIRECTORY table options (see CREATE TABLE) and Windows symlink support. Will be set to DISABLED if the server is started with the --skip-symbolic-links option.
  • Scope: Global
  • Dynamic: No

histogram_size

  • Description: Number of bytes used for a histogram. If set to 0, no histograms are created by ANALYZE.
  • Commandline: --histogram-size=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 254 (>= MariaDB 10.4.3), 0 (<= MariaDB 10.4.2)
  • Range: 0 to 255
  • Introduced: MariaDB 10.0.2

histogram_type

  • Description: Specifies the type of histograms created by ANALYZE.
    • SINGLE_PREC_HB - single precision height-balanced.
    • DOUBLE_PREC_HB - double precision height-balanced.
  • Commandline: --histogram-type=value
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: enumeration
  • Default Value: DOUBLE_PREC_HB (>= MariaDB 10.4.3), SINGLE_PREC_HB(<= MariaDB 10.4.2)
  • Valid Values: SINGLE_PREC_HB, DOUBLE_PREC_HB
  • Introduced: MariaDB 10.0.2

host_cache_size

  • Description: Number of host names that will be cached to avoid resolving. Setting to 0 disables the cache. Changing the value while the server is running causes an implicit FLUSH HOSTS, clearing the host cache and truncating the performance_schema.host_cache table. If you are connecting from a lot of different machines you should consider increasing.
  • Commandline: --host-cache-size=#.
  • Scope: Global
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 128
  • Range: 0 to 65536
  • Introduced: MariaDB 10.0

hostname

  • Description: When the server starts, this variable is set to the server host name.
  • Scope: Global
  • Dynamic: No
  • Data Type: string

identity


idle_readonly_transaction_timeout


idle_transaction_timeout


idle_write_transaction_timeout


ignore_db_dirs

  • Description: Tells the server that this directory can never be a database. That means two things - firstly it is ignored by the SHOW DATABASES command and INFORMATION_SCHEMA tables. And secondly, USE, CREATE DATABASE and SELECT statements will return an error if the database from the ignored list specified. Use this option several times if you need to ignore more than one directory. To make the list empty set the void value to the option as --ignore-db-dir=. If the option or configuration is specified multiple times, viewing this value will list the ignore directories separated by a period.
  • Commandline: --ignore-db-dirs=dir.
  • Scope: Global
  • Dynamic: No
  • Data Type: string
  • Introduced: MariaDB 5.3.9

in_transaction

  • Description: Session-only and read-only variable that is set to 1 if a transaction is in progress, 0 if not.
  • Commandline: No
  • Scope: Session
  • Dynamic: No
  • Data Type: boolean
  • Default Value: 0
  • Introduced: MariaDB 5.3

init_connect

  • Description: String containing one or more SQL statements, separated by semicolons, that will be executed by the server for each client connecting. If there's a syntax error in the one of the statements, the client will fail to connect. For this reason, the statements are not executed for users with the SUPER privilege, who can then still connect and correct the error. See also init_file.
  • Commandline: --init-connect=name
  • Scope: Global
  • Dynamic: Yes
  • Data Type: string

init_file

  • Description: Name of a file containing SQL statements that will be executed by the server on startup. Each statement should be on a new line, and end with a semicolon. See also init_connect.
  • Commandline: init-file=file_name
  • Scope: Global
  • Dynamic: No
  • Data Type: file name

insert_id

  • Description: Value to be used for the next statement inserting a new AUTO_INCREMENT value.
  • Scope: Session
  • Dynamic: Yes
  • Data Type: numeric

interactive_timeout

  • Description: Time in seconds that the server waits for an interactive connection (one that connects with the mysql_real_connect() CLIENT_INTERACTIVE option) to become active before closing it. See also wait_timeout.
  • Commandline: --interactive-timeout=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 28800
  • Range: (Windows): 1 to 2147483
  • Range: (Other): 1 to 31536000

join_buffer_size

  • Description: Minimum size in bytes of the buffer used for queries that cannot use an index, and instead perform a full table scan. Increase to get faster full joins when adding indexes is not possible, although be aware of memory issues, since joins will always allocate the minimum size. Best left low globally and set high in sessions that require large full joins. In 64-bit platforms, Windows truncates values above 4GB to 4GB with a warning. See also Block-Based Join Algorithms - Size of Join Buffers.
  • Commandline: --join-buffer-size=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 262144 (256kB) (>=MariaDB 10.1.7), 131072 (128kB) (<=MariaDB 10.1.6)
  • Range (>=MariaDB/MySQL 5.5): 128 to 18446744073709547520
  • Range (<=MariaDB/MySQL 5.3, Windows): 8228 to 18446744073709547520

join_buffer_space_limit

  • Description: Maximum size in bytes of the query buffer, By default 1024*128*10. See Block-based join algorithms.
  • Commandline: --join-buffer-space-limit=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 2097152
  • Range: 2048 to 99999999997952
  • Introduced: MariaDB 5.3

join_cache_level

  • Description: Controls which of the eight block-based algorithms can be used for join operations. See Block-based join algorithms for more information.
    • 1 – flat (Block Nested Loop) BNL
    • 2 – incremental BNL
    • 3 – flat Block Nested Loop Hash (BNLH)
    • 4 – incremental BNLH
    • 5 – flat Batch Key Access (BKA)
    • 6 – incremental BKA
    • 7 – flat Batch Key Access Hash (BKAH)
    • 8 – incremental BKAH
  • Commandline: --join-cache-level=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 2
  • Range: 0 to 8
  • Introduced: MariaDB 5.3

keep_files_on_create

  • Description: If a MyISAM table is created with no DATA DIRECTORY option, the .MYD file is stored in the database directory. When set to 0, the default, if MariaDB finds another .MYD file in the database directory it will overwrite it. Setting this variable to 1 means that MariaDB will return an error instead, just as it usually does in the same situation outside of the database directory. The same applies for .MYI files and no INDEX DIRECTORY option.
  • Commandline: --keep-files-on-create=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: OFF

language

  • Description: Language to use for the server error messages. Either just the language name, or the directory where the error messages are stored. An alternative is to use lc_messages_dir and lc_messages instead. See Setting the language for error messages.
  • Commandline: --language=name, -L
  • Scope: Global
  • Dynamic: No
  • Data Type: directory name
  • Default Value: /usr/local/mysql/share/mysql/english/

large_files_support

  • Description: ON if the server if was compiled with large file support or not, else OFF
  • Scope: Global
  • Dynamic: No
  • Introduced: MySQL 3.23.28

large_page_size

  • Description: Indicates the size of memory page if large page support (Linux only) is enabled. The page size is determined from the Hugepagesize setting in /proc/meminfo. See large_pages.
  • Scope: Global
  • Dynamic: No
  • Data Type: numeric
  • Default Value: Autosized (see description)

large_pages

  • Description: Indicates whether large page support (Linux only - called huge pages) is used. This is set with --large-pages or disabled with --skip-large-pages. Large pages are used for the innodb buffer pool and for online DDL (of size 3* innodb_sort_buffer_size (or 6 when encryption is used)). To use large pages, the Linux sysctl variable kernel.shmmax must be large than the llocation. Also the sysctl variable vm.nr_hugepages multipled by large-page) must be larger than the usage. The ulimit for locked memory must be sufficient to cover the amount used (ulimit -l and equalivent in /etc/security/limits.conf / or in systemd LimitMEMLOCK). If these operating system controls or insufficient free huge pages are available, the allocation of large pages will fall back to conventional memory allocation and a warning will appear in the logs. Only allocations of the default Hugepagesize currently occur (see /proc/meminfo).
  • Commandline: --large-pages, --skip-large-pages
  • Scope: Global
  • Dynamic: No
  • Data Type: boolean
  • Default Value: OFF

last_insert_id

  • Description: Contains the same value as that returned by LAST_INSERT_ID(). Note that setting this variable doen't update the value returned by the underlying function.
  • Scope: Session
  • Dynamic: Yes
  • Data Type: numeric

lc_messages

  • Description: Locale to use for error messages. This will be converted to a language name and along with lc_messages_dir will produce the location for the error message file. See locales for a list of available locales and their related languages.
  • Commandline: --lc-messages=name
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: string
  • Default Value: en_us
  • Introduced: MariaDB 5.5

lc_messages_dir

  • Description: Directory where the error messages are located. Together with lc_messages will produce the location for the error message file.
  • Commandline: --lc-messages-dir=path
  • Scope: Global
  • Dynamic: No
  • Data Type: directory name
  • Introduced: MariaDB 5.5

lc_time_names

  • Description: The locale that determines the language used for the date and time functions DAYNAME(), MONTHNAME() and DATE_FORMAT(). Locale names are language and region subtags, for example 'en_ZA' (English - South Africa) or 'es_US: Spanish - United States'. The default is always 'en-US' regardless of the system's locale setting. See server locale for a full list of supported locales.
  • Commandline: --lc-time-names=name
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: string
  • Default Value: en_US

license

  • Description: Server license, for example GPL.
  • Scope: Global
  • Dynamic: No
  • Data Type: string

local_infile

  • Description: If set to 1, LOCAL is supported for LOAD DATA INFILE statements. If set to 0, usually for security reasons, attempts to perform a LOAD DATA LOCAL will fail with an error message.
  • Commandline: --local-infile=#
  • Scope: Global
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: ON

lock_wait_timeout


locked_in_memory

  • Description: Indicates whether --memlock was used to lock mysqld in memory.
  • Commandline: --memlock
  • Scope: Global
  • Dynamic: No
  • Data Type: boolean
  • Default Value: OFF

log

  • Description: Deprecated and removed in MariaDB 10.0, use general_log instead.
  • Commandline: -l [filename] or --log[=filename]
  • Scope: Global
  • Dynamic: Yes
  • Data Type: string
  • Default Value: OFF
  • Deprecated: MySQL 5.1.29 and replaced by general_log
  • Removed: MariaDB 10.0

log_disabled_statements

  • Description: If set, the specified type of statements (slave or stored procedure statements) will not be logged to the general log.
  • Commandline: --log-disabled_statements=value
  • Scope: Global, Session
  • Dynamic: No
  • Data Type: set
  • Default Value: (empty string)
  • Valid Vales: slave and/or sp
  • Introduced: MariaDB 10.3.1

log_error

  • Description: Specifies the name of the error log. If --console is specified later in the configuration (Windows only) or this option isn't specified, errors will be logged to stderr. If no name is provided, errors will still be logged to hostname.err. If a configuration file sets --log-error, one can reset it with --skip-log-error (useful to override a system wide configuration file).
  • Commandline: --log-error[=name], --skip-log-error
  • Scope: Global
  • Dynamic: No
  • Data Type: file name
  • Default Value: (empty string)

log_output

  • Description: How the output for the general query log and the slow query log is stored. By default written to file (FILE), it can also be stored in the general_log and slow_log tables in the mysql database (TABLE), or not stored at all (NONE). More than one option can be chosen at the same time, with NONE taking precedence if present. Logs will not be written if logging is not enabled. See Writing logs into tables, and the slow_query_log and general_log server system variables.
  • Commandline: --log-output=name
  • Scope: Global
  • Dynamic: Yes
  • Data Type: set
  • Default Value: FILE
  • Valid Values: TABLE, FILE or NONE

log_queries_not_using_indexes

  • Description: Queries that don't use an index, or that perform a full index scan where the index doesn't limit the number of rows, will be logged to the slow query log (regardless of time taken). The slow query log needs to be enabled for this to have an effect.
  • Commandline: --log-queries-not-using-indexes
  • Scope: Global
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: OFF

log_slow_admin_statements


log_slow_disabled_statements


log_slow_filter

  • Description: Comma-delimited string containing one or more settings for filtering what is logged to the slow query log. If a query matches one of the types listed in the filter, and takes longer than long_query_time, it will be logged. Sets log-slow-admin-statements to ON. See also log_slow_disabled_statements.
    • admin log administrative queries (create, optimize, drop etc...)
    • filesort logs queries that use a filesort.
    • filesort_on_disk logs queries that perform a a filesort on disk.
    • filesort_priority_queue (from MariaDB 10.3.2)
    • full_join logs queries that perform a join without indexes.
    • full_scan logs queries that perform full table scans.
    • query_cache log queries that are resolved by the query cache .
    • query_cache_miss logs queries that are not found in the query cache.
    • tmp_table logs queries that create an implicit temporary table.
    • tmp_table_on_disk logs queries that create a temporary table on disk.
  • Commandline: log-slow-filter=value1[,value2...]
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: enumeration
  • Default Value:
    • admin, filesort, filesort_on_disk, full_join, full_scan, query_cache, query_cache_miss, tmp_table, tmp_table_on_disk (<= MariaDB 10.3.0)
    • admin, filesort, filesort_on_disk, filesort_priority_queue, full_join, full_scan, query_cache, query_cache_miss, tmp_table, tmp_table_on_disk (>= MariaDB 10.3.1)
  • Valid Values: admin, filesort, filesort_on_disk, filesort_priority_queue, full_join, full_scan, query_cache, query_cache_miss, tmp_table, tmp_table_on_disk

log_slow_queries

  • Description: Deprecated and removed in MariaDB 10.0, use slow_query_log instead.
  • Commandline: --log-slow-queries[=name]
  • Scope: Global
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: OFF
  • Deprecated: MySQL 5.1.29
  • Removed: MariaDB 10.0/MySQL 5.6.1

log_slow_rate_limit

  • Description: The slow query log will log every this many queries. The default is 1, or every query, while setting it to 20 would log every 20 queries, or five percent. Aims to reduce I/O usage and excessively large slow query logs. See also Slow Query Log Extended Statistics.
  • Commandline: log-slow-rate-limit=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 1
  • Range: 1 upwards
  • Introduced: MariaDB 5.1

log_slow_verbosity

  • Description: Controls information to be added to the slow query log. Options are added in a comma-delimited string. See also Slow Query Log Extended Statistics. log_slow_verbosity is not supported when log_output='TABLE'.
  • Commandline: log-slow-verbosity=value1[,value2...]
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: enumeration
  • Default Value: (Empty)
  • Valid Values: (Empty), query_plan, innodb, explain (from MariaDB 10.0.5)
  • Introduced: MariaDB 5.1

log_tc_size

  • Description: Defines the size in bytes of the memory-mapped file-based transaction coordinator log, which is only used if the binary log is disabled. If you have two or more XA-capable storage engines enabled, then a transaction coordinator log must be available. This size is defined in multiples of 4096. This size could always be set as a commandline option, but it was made into a system variable in MariaDB 10.1.3. See Transaction Coordinator Log for more information. Also see the --log-tc server option and the --tc-heuristic-recover option.
  • Commandline: log-tc-size=#
  • Scope: Global
  • Dynamic: No
  • Data Type: numeric
  • Default Value: 24576
  • Range: 12288 to 18446744073709551615
  • Introduced: MariaDB 10.1.3 (variable)

log_warnings

  • Description: If set to 1, the default, all critical warnings are logged to the error log. Slave servers also log status information, including the binary log and relay log co-ordinates where they start replicating from, reconnects after a disconnect and when the slave switches to a new relay-log. If set to 0, warnings are not logged. If set to a number greater than 1, aborted connections and access-denied errors are also logged. Specifically, the following are logged:
    • log_warnings >= 1
      • Events_scheduler info and warnings
      • Access denied errors
      • Connections that were forced to be closed or aborted
      • System signals
      • Wrong usage of --user
      • Failed setrlimit() and mlockall()
      • Changed limits
      • Wrong values of lower_case_table_names and stack_size
      • Wrong values for command line options
      • Start log position and some master information when starting slaves
      • Slave reconnects
      • Killed slaves
      • Error reading relay logs
      • Before MariaDB 10.0.14: Statements that were unsafe to log as statement-based (when BINLOG_FLAG_UNSAFE_STMT_PRINTED is also set)
      • Disabled plugins that one tried to enable or use
      • UDF files that didn't include the required init functions.
    • log_warnings >= 2
      • Table handler errors
      • Starting from MariaDB 10.0.14: Statements that were unsafe to log as statement-based (when BINLOG_FLAG_UNSAFE_STMT_PRINTED is also set)
    • log_warnings >= 3
      • All errors and warnings during MyISAM repair and auto recover.
    • log_warnings >=4
      • Too many connections errors.
  • Commandline: -W [level] or --log-warnings[=level]
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value:
  • Range: 0 to 4294967295

long_query_time

  • Description: If a query takes longer than this many seconds to execute (microseconds can be specified too), the Slow_queries status variable is incremented and, if enabled, the query is logged to the slow query log.
  • Commandline: --long-query-time=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 10.000000 >= MariaDB 10.1.13, 10 <= MariaDB 10.1.12
  • Range: 0 upwards

low_priority_updates

  • Description: If set to 1 (0 is the default), for storage engines that use only table-level locking (Aria, MyISAM, MEMORY and MERGE), all INSERTs, UPDATEs, DELETEs and LOCK TABLE WRITEs will wait until there are no more SELECTs or LOCK TABLE READs pending on the relevant tables. Set this to 1 if reads are prioritized over writes. Previously named sql_low_priority_updates, which is still a synonym.
  • Commandline: --low-priority-updates
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: 0

lower_case_file_system

  • Description: Read-only variable describing whether the file system is case-sensitive. If set to OFF, file names are case-sensitive. If set to ON, they are not case-sensitive.
  • Scope: Global
  • Dynamic: No
  • Data Type: boolean
  • Default Value: ##

lower_case_table_names

  • Description: If set to 0 (the default on Unix-based systems), table names and aliases and database names are compared in a case-sensitive manner. If set to 1 (the default on Windows), names are stored in lowercase and not compared in a case-sensitive manner. If set to 2 (the default on Mac OS X), names are stored as declared, but compared in lowercase.
  • Commandline: --lower-case-table-names[=#]
  • Scope: Global
  • Dynamic: No
  • Data Type: numeric
  • Default Value: 0 (Unix), 1 (Windows), 2 (Mac OS X)
  • Range: 0 to 2

max_allowed_packet

  • Description: Maximum size in bytes of a packet or a generated/intermediate string. The packet message buffer is initialized with the value from net_buffer_length, but can grow up to max_allowed_packet bytes. Set as large as the largest BLOB, in multiples of 1024. If this value is changed, it should be changed on the client side as well. See slave_max_allowed_packet for a specific limit for replication purposes.
  • Commandline: --max-allowed-packet=#
  • Scope: Global, Session
  • Dynamic: Yes (Global), No (Session)
  • Data Type: numeric
  • Default Value:
  • Range: 1024 to 1073741824

max_connect_errors

  • Description: Limit to the number of successive failed connects from a host before the host is blocked from making further connections. The count for a host is reset to zero if they successfully connect. To unblock, flush the host cache with a FLUSH HOSTS statement or mysqladmin flush-hosts.
  • Commandline: --max-connect-errors=#
  • Scope: Global
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 100 (from MariaDB 10.0), 10 (before MariaDB 10.0)

max_connections


max_delayed_threads

  • Description: Limits to the number of INSERT DELAYED threads. Once this limit is reached, the insert is handled as if there was no DELAYED attribute. If set to 0, DELAYED is ignored entirely. The session value can only be set to 0 or to the same as the global value.
  • Commandline: --max-delayed-threads=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 20
  • Range: 0 to 16384

max_digest_length

  • Description: Maximum length considered for computing a statement digest, such as used by the Performance Schema and query rewrite plugins. Statements that differ after this many bytes produce the same digest, and are aggregated for statistics purposes. The variable is allocated per session. Increasing will allow longer statements to be distinguished from each other, but increase memory use, while decreasing will reduce memory use, but more statements may become indistinguishable.
  • Commandline: --max-digest-length=#
  • Scope: Global,
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 1024
  • Range: 0 to 1048576
  • Introduced: MariaDB 10.1.5

max_error_count

  • Description: Specifies the maximum number of messages stored for display by SHOW ERRORS and SHOW WARNINGS statements.
  • Commandline: --max-error-count=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 64
  • Range: 0 to 65535

max_heap_table_size

  • Description: Maximum size in bytes for user-created MEMORY tables. Setting the variable while the server is active has no effect on existing tables unless they are recreated or altered. The smaller of max_heap_table_size and tmp_table_size also limits internal in-memory tables. When the maximum size is reached, any further attempts to insert data will receive a "table ... is full" error. Temporary tables created with CREATE TEMPORARY will not be converted to Aria, as occurs with internal temporary tables, but will also receive a table full error.
  • Commandline: --max-heap-table-size=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 16777216
  • Range : 16384 to 4294966272

max_insert_delayed_threads


max_join_size

  • Description: Statements will not be performed if they are likely to need to examine more than this number of rows, row combinations or do more disk seeks. Can prevent poorly-formatted queries from taking server resources. Changing this value to anything other the default will reset sql_big_selects to 0. If sql_big_selects is set again, max_join_size will be ignored. This limit is also ignored if the query result is sitting in the query cache. Previously named sql_max_join_size, which is still a synonym.
  • Commandline: --max-join-size=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 18446744073709551615 (>= MariaDB/MySQL 5.5.0), 4294967295 (< MariaDB/MySQL 5.5.0)
  • Range: 1 to 18446744073709551615 (>= MariaDB/MySQL 5.5.0), 1 to 4294967295 (< MariaDB/MySQL 5.5.0)

max_length_for_sort_data

  • Description: Used to decide which algorithm to choose when sorting rows. If the total size of the column data, not including columns that are part of the sort, is less than max_length_for_sort_data, then we add these to the sort key. This can speed up the sort as we don't have to re-read the same row again later. Setting the value too high can slow things down as there will be a higher disk activity for doing the sort.
  • Commandline: --max-length-for-sort-data=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 1024
  • Range: 4 to 8388608

max_long_data_size


max_password_errors

  • Description: The maximum permitted number of failed connection attempts due to an invalid password before a user is blocked from further connections. FLUSH_PRIVILEGES will permit the user to connect again.
  • Commandline: --max-password-errors=#
  • Scope: Global
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 4294967295
  • Range: 1 to 4294967295
  • Introduced: MariaDB 10.4.2

max_prepared_stmt_count

  • Description: Maximum number of prepared statements on the server. Can help prevent certain forms of denial-of-service attacks. If set to 0, no prepared statements are permitted on the server.
  • Commandline: --max-prepared-stmt-count=#
  • Scope: Global
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 16382
  • Range: 0 to 4294967295 (>= MariaDB 10.3.6), 0 to 1048576 (<= MariaDB 10.3.5)

max_recursive_iterations

  • Description: Maximum number of iterations when executing recursive queries.
  • Commandline: --max-recursive-iterations=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 4294967295
  • Range: 0 to 4294967295
  • Introduced: MariaDB 10.2.2

max_rowid_filter_size

  • Description: The maximum size of the container of a rowid filter.
  • Commandline: --max-rowid-filter-size=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 131072
  • Range: 1024 to 18446744073709551615
  • Introduced: MariaDB 10.4.3

max_seeks_for_key

  • Description: The optimizer assumes that the number specified here is the most key seeks required when searching with an index, regardless of the actual index cardinality. If this value is set lower than its default and maximum, indexes will tend to be preferred over table scans.
  • Commandline: --max-seeks-for-key=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 4294967295
  • Range: 1 to 4294967295

max_session_mem_used

  • Description: Amount of memory a single user session is allowed to allocate. This limits the value of the session variable MEM_USED.
  • Commandline: --max-session-mem-used=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 9223372036854775807 (8192 PB)
  • Range: 8192 to 18446744073709551615
  • Introduced: MariaDB 10.1.21

max_sort_length

  • Description: Maximum size in bytes used for sorting data values - anything exceeding this is ignored.
  • Commandline: --max-sort-length=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 1024
  • Range: 4 to 8388608

max_sp_recursion_depth

  • Description: Permitted number of recursive calls for a stored procedure. 0, the default, no recursion is permitted. Increasing this value increases the thread stack requirements, so you may need to increase thread_stack as well. This limit doesn't apply to stored functions.
  • Commandline: --max-sp-recursion-depth[=#]
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 0
  • Range: 0 to 255

max_statement_time


max_tmp_tables

  • Description: Unused.

max_user_connections

  • Description: Maximum simultaneous connections permitted for each user account. When set to 0, there is no per user limit. From MariaDB 5.3, setting it to -1 stops users without the SUPER privilege from connecting to the server. The session variable is always read-only and only privileged users can modify user limits. The session variable defaults to the global max_user_connections variable, unless the user's specific MAX_USER_CONNECTIONS resource option is non-zero. When both global variable and the user resource option are set, the user's MAX_USER_CONNECTIONS is used. Note: This variable does not affect users with the SUPER privilege.
  • Commandline: --max-user-connections=#
  • Scope: Global, Session
  • Dynamic: Yes, (except when globally set to 0 or -1)
  • Data Type: numeric
  • Default Value: 0
  • Range: -1 to 4294967295

max_write_lock_count

  • Description: Read lock requests will be permitted for processing after this many write locks. Applies only to storage engines that use table level locks (thr_lock), so no effect with InnoDB/XtraDB or Archive.
  • Commandline: --max-write-lock-count=#
  • Scope: Global
  • Dynamic: No
  • Data Type: numeric
  • Default Value: 4294967295
  • Range: 0-4294967295

metadata_locks_cache_size

  • Description: Size of the metadata locks cache, used for reducing the need to create and destroy synchronization objects. It is particularly helpful on systems where this process is inefficient, such as Windows XP.
  • Commandline: --metadata-locks-cache-size=#
  • Scope: Global
  • Dynamic: No
  • Data Type: numeric
  • Default Value: 1024
  • Range: 1 to 1048576
  • Introduced: MariaDB 5.5

metadata_locks_hash_instances

  • Description: Number of hashes used by the set of metadata locks. The metadata locks are partitioned into separate hashes in order to reduce contention.
  • Commandline: --metadata-locks-hash-instances=#
  • Scope: Global
  • Dynamic: No
  • Data Type: numeric
  • Default Value: 8
  • Range: 1 to 1024
  • Introduced: MariaDB 10.0

min_examined_row_limit

  • Description: If a query examines more than this number of rows, it is logged to the slow-query-log. If set to 0, the default, no row limit is used.
  • Commandline: --min-examined-row-limit=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 0
  • Range: 0-4294967295

mrr_buffer_size

  • Description: Size of buffer to use when using multi-range read with range access. See Multi Range Read optimization for more information.
  • Commandline: --mrr-buffer-size=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 262144
  • Range 8192 to 2147483648
  • Introduced: MariaDB 5.3

multi_range_count


mysql56_temporal_format

  • Description: If set (the default), MariaDB uses the MySQL 5.6 low level formats for TIME, DATETIME and TIMESTAMP instead of the MariaDB 5.3 version. The version MySQL introduced in 5.6 requires more storage, but potentially allows negative dates and has some advantages in replication. There should be no reason to revert to the old MariaDB 5.3 microsecond format. See also MDEV-10723.
  • Commandline: --mysql56-temporal-format
  • Scope: Global
  • Dynamic: No
  • Data Type: boolean
  • Default Value: ON
  • Introduced: MariaDB 10.1.2

named_pipe

  • Description: On Windows systems, determines whether connections over named pipes are permitted.
  • Commandline: --enable-named-pipe
  • Scope: Global
  • Dynamic: No
  • Data Type: boolean
  • Default Value: OFF

net_buffer_length

  • Description: The starting size, in bytes, for the connection and thread buffers for each client thread. The size can grow to max_allowed_packet. This variable's session value is read-only. Can be set to the expected length of client statements if memory is a limitation.
  • Commandline: --net-buffer-length=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 16384
  • Range: 1024 to 1048576

net_read_timeout

  • Description: Time in seconds the server will wait for a client connection to send more data before aborting the read. See also net_write_timeout and slave_net_timeout
  • Commandline: --net-read-timeout=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 30
  • Range: 1 upwards

net_retry_count

  • Description: Permit this many retries before aborting when attempting to read or write on a communication port. On FreeBSD systems should be set higher as threads are sent internal interrupts..
  • Commandline: --net-retry-count=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 10
  • Range: 1 to 4294967295

net_write_timeout

  • Description: Time in seconds to wait on writing a block to a connection before aborting the write. See also net_read_timeout and slave_net_timeout.
  • Commandline: --net-write-timeout=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 60
  • Range: 1 upwards

old

  • Description: Disabled by default, enabling it reverts index hints to those used before MySQL 5.1.17. Enabling may lead to replication errors. Being replaced by old_mode. Before MariaDB 5.5, the variable was read-only and global in scope only.
  • Commandline: --old
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: OFF

old_alter_table


old_mode

  • Description: Used for getting MariaDB to emulate behavior from an old version of MySQL or MariaDB. See OLD Mode. Will be used to replace the old variable over time.
  • Commandline: --old-mode
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: string
  • Default Value: (empty string)
  • Introduced: MariaDB 5.5.35
  • Valid Values: See OLD Mode for the full list.

old_passwords

  • Description: If set to 1 (0 is default), MariaDB reverts to the pre-MySQL 4.1 form of password hashing.
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: OFF

open_files_limit


optimizer_prune_level

  • Description: If set to 1, the default, the optimizer will use heuristics to prune less-promising partial plans from the optimizer search space. If set to 0, heuristics are disabled and an exhaustive search is performed.
  • Commandline: --optimizer-prune-level[=#]
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: 1

optimizer_search_depth

  • Description: Maximum search depth by the query optimizer. Smaller values lead to less time spent on execution plans, but potentially less optimal results. If set to 0, MariaDB will automatically choose a reasonable value. Since the better results from more optimal planning usually offset the longer time spent on planning, this is set as high as possible by default. 63 is a valid value, but its effects (switching to the original find_best search) are deprecated.
  • Commandline: --optimizer-search-depth[=#]
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 62
  • Range: 0 to 63

optimizer_selectivity_sampling_limit

  • Description: Controls number of record samples to check condition selectivity
  • Commandline: optimizer-selectivity-sampling-limit[=#]
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 100
  • Range: 10 upwards
  • Introduced: MariaDB 10.0

optimizer_switch


optimizer_use_condition_selectivity

  • Description: Controls which statistics can be used by the optimizer when looking for the best query execution plan.
    • 1 Use selectivity of predicates as in MariaDB 5.5.
    • 2 Use selectivity of all range predicates supported by indexes.
    • 3 Use selectivity of all range predicates estimated without histogram.
    • 4 Use selectivity of all range predicates estimated with histogram.
    • 5 Additionally use selectivity of certain non-range predicates calculated on record sample.
  • Commandline: --optimizer-use-condition-selectivity=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 4 (>= MariaDB 10.4.1), 1 (<= MariaDB 10.4.0)
  • Range: 1 to 5
  • Introduced: MariaDB 10.0

optimizer_trace

  • Description: Controls tracing of the optimizer: optimizer_trace=option=val[,option=val...], where option is one of {enabled} and val is one of {on, off, default}
  • Commandline: --optimizer-trace=value
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: enum
  • Default Value: enabled=off
  • Valid Values: enabled={on|off|default}
  • Introduced: MariaDB 10.4.3

optimizer_trace_max_mem_size

  • Description: Limits the memory used while tracing a query by specifying the maximum allowed cumulated size, in bytes, of stored optimizer traces.
  • Commandline: --optimizer-trace-max-mem-size=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 1048576
  • Range: 1 to 18446744073709551615
  • Introduced: MariaDB 10.4.3

pid_file

  • Description: Full path of the process ID file.
  • Commandline: --pid-file=file_name
  • Scope: Global
  • Dynamic: No
  • Data Type: file name

plugin_dir

  • Description: Path to the plugin directory. For security reasons, either make sure this directory can only be read by the server, or set secure_file_priv.
  • Commandline: --plugin-dir=path
  • Scope: Global
  • Dynamic: No
  • Data Type: directory name
  • Default Value: BASEDIR/lib/plugin
  • Introduced: MariaDB 5.5

plugin_maturity

  • Description: The lowest acceptable plugin maturity. MariaDB will not load plugins less mature than the specified level.
  • Commandline: --plugin-maturity=level
  • Scope: Global
  • Dynamic: No
  • Type: enum
  • Default Value: One less than the server maturity (>= MariaDB 10.3.3), unknown (<= MariaDB 10.3.2)
  • Valid Values: unknown, experimental, alpha, beta, gamma, stable
  • Introduced: MariaDB 5.2.1

port

  • Description: Port to listen for TCP/IP connections. If set to 0, will default to, in order of preference, my.cnf, the MYSQL_TCP_PORT environment variable, /etc/services, built-in default (3306).
  • Commandline: --port=#, -P
  • Scope: Global
  • Dynamic: No
  • Data Type: numeric
  • Default Value: 3306
  • Range: 0 to 65535

preload_buffer_size

  • Description: Size in bytes of the buffer allocated when indexes are preloaded.
  • Commandline: --preload-buffer-size=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 32768
  • Range: 1024 to 1073741824

profiling

  • Description: If set to 1 (0 is default), statement profiling will be enabled. See SHOW PROFILES() and SHOW PROFILE().
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: OFF

profiling_history_size

  • Description: Number of statements about which profiling information is maintained. If set to 0, no profiles are stored. See SHOW PROFILES.
  • Commandline: --profiling-history-size=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 15
  • Range: 0 to 100

progress_report_time


protocol_version

  • Description: The version of the client/server protocol used by the MariaDB server.
  • Commandline: None
  • Scope: Global
  • Dynamic: No
  • Data Type: numeric
  • Default Value: 10
  • Range: 0 to 4294967295

proxy_protocol_networks

  • Description: Enable proxy protocol for these source networks. The syntax is a comma separated list of IPv4 and IPv6 networks. If the network doesn't contain a mask, it is considered to be a single host. "*" represents all networks and must be the only directive on the line. String "localhost" represents non-TCP local connections (Unix domain socket, Windows named pipe or shared memory). See Proxy Protocol Support.
  • Commandline: --proxy-protocol-networks=value
  • Scope: Global
  • Dynamic: Yes (>= MariaDB 10.3.6), No (<= MariaDB 10.3.5)
  • Data Type: string
  • Default Value: (empty)
  • Introduced: MariaDB 10.3.1

proxy_user

  • Description: Set to the proxy user account name if the current client is a proxy, else NULL.
  • Scope: Session
  • Dynamic: No
  • Data Type: string
  • Introduced: MariaDB 5.5.20

pseudo_slave_mode

  • Description: For internal use by the server.
  • Scope: Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: OFF
  • Introduced: MariaDB/MySQL 5.5.30

pseudo_thread_id

  • Description: For internal use only.
  • Scope: Session
  • Dynamic: Yes
  • Data Type: numeric

query_alloc_block_size

  • Description: Size in bytes of the extra blocks allocated during query parsing and execution (after query_prealloc_size is used up).
  • Commandline: --query-alloc-block-size=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 16384 (from MariaDB 10.1.2), 8192 (before MariaDB 10.1.2)
  • Range: 1024 to 4294967295

query_cache_limit

  • Description: Size in bytes for which results larger than this are not stored in the query cache.
  • Commandline: --query-cache-limit=#
  • Scope: Global
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 1048576 (1MB)
  • Range: 0 to 4294967295

query_cache_min_res_unit

  • Description: Minimum size in bytes of the blocks allocated for query cache results.
  • Commandline: --query-cache-min-res-unit=#
  • Scope: Global
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 4096 (4KB)
  • Range: 0 to 4294967295

query_cache_size

  • Description: Size in bytes available to the query cache. About 40KB is needed for query cache structures, so setting a size lower than this will result in a warning. 0, the default before MariaDB 10.1.7, effectively disables the query cache. Starting from MariaDB 10.1.7, query_cache_type is automatically set to ON if the server is started with the query_cache_size set to a non-zero (and non-default) value.
  • Commandline: --query-cache-size=#
  • Scope: Global
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 1M (>= MariaDB 10.1.7), 0 (<= MariaDB 10.1.6) (although frequently given a default value in some setups)
  • Valid Values: 0 upwards in units of 1024.

query_cache_strip_comments

  • Description: If set to 1 (0 is default), the server will strip any comments from the query before searching to see if it exists in the query cache. Multiple space, line feeds, tab and other white space characters will also be removed.
  • Commandline: query-cache-strip-comments
  • Scope: Session (from MariaDB 5.5.20), Global
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: OFF

query_cache_type

  • Description: If set to 0, the query cache is disabled (although a buffer of query_cache_size bytes is still allocated). If set to 1 all SELECT queries will be cached unless SQL_NO_CACHE is specified. If set to 2 (or DEMAND), only queries with the SQL CACHE clause will be cached. Note that if the server is started with the query cache disabled, it cannot be enabled at runtime. Starting from MariaDB 10.1.7, query_cache_type is automatically set to ON if the server is started with the query_cache_size set to a non-zero (and non-default) value.
  • Commandline: --query-cache-type=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: enumeration
  • Default Value: OFF (>= MariaDB 10.1.7), ON (<= MariaDB 10.1.6)
  • Valid Values: 0 or OFF, 1 or ON, 2 or DEMAND

query_cache_wlock_invalidate

  • Description: If set to 0, the default, results present in the query cache will be returned even if there's a write lock on the table. If set to 1, the client will first have to wait for the lock to be released.
  • Commandline: --query-cache-wlock-invalidate
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: OFF

query_prealloc_size

  • Description: Size in bytes of the persistent buffer for query parsing and execution, allocated on connect and freed on disconnect. Increasing may be useful if complex queries are being run, as this will reduce the need for more memory allocations during query operation. See also query_alloc_block_size.
  • Commandline: --query-prealloc-size=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 24576 (from MariaDB 10.1.2) 8192 (before MariaDB 10.1.2)
  • Range: 1024 to 4294967295 (from MariaDB 10.1.2), 8192 to 4294967295 (before MariaDB 10.1.2)

rand_seed1

  • Description: rand_seed1 and rand_seed2 facilitate replication of the RAND() function. The master passes the value of these to the slaves so that the random number generator is seeded in the same way, and generates the same value, on the slave as on the master. Until MariaDB 10.1.4, the variable value could not be viewed, with the SHOW VARIABLES output always displaying zero.
  • Commandline: None
  • Scope: Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: Varies
  • Range: 0 to 18446744073709551615

rand_seed2


range_alloc_block_size

  • Description: Size in bytes of blocks allocated during range optimization. The unit size in 1024.
  • Commandline: --range-alloc-block-size=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 4096
  • Range - 32 bit: 4096 to 4294967295

read_buffer_size

  • Description: Each thread performing a sequential scan (for MyISAM, Aria and MERGE tables) allocates a buffer of this size in bytes for each table scanned. Increase if you perform many sequential scans. If not in a multiple of 4KB, will be rounded down to the nearest multiple. Also used in ORDER BY's for caching indexes in a temporary file (not temporary table), for caching results of nested queries, for bulk inserts into partitions, and to determine the memory block size of MEMORY tables.
  • Commandline: --read-buffer-size=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 131072
  • Range: 8200 to 2147479552

read_only

  • Description: When set to 1 (0 is default), no updates are permitted except from users with the SUPER privilege or slave servers updating from a master. The read_only variable is useful for slave servers to ensure no updates are accidentally made outside of what are performed on the master. Inserting rows to log tables, updates to temporary tables and OPTIMIZE or ANALYZE TABLE statements are excluded from this limitation. From MariaDB 5.5, if read_only is set to 1, SET PASSWORD is limited only to users with the SUPER privilege. Attempting to set this variable to 1 will fail if the current session has table locks or transactions pending, while if other sessions hold table locks, the statement will wait until these locks are released before completing. While the attempt to set read_only is waiting, other requests for table locks or transactions will also wait until read_only has been set.
  • Commandline: --read-only
  • Scope: Global
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: OFF

read_rnd_buffer_size

  • Description: Size in bytes of the buffer used when reading rows from a MyISAM table in sorted order after a key sort. Larger values improve ORDER BY performance, although rather increase the size by SESSION where the need arises to avoid excessive memory use.
  • Commandline: --read-rnd-buffer-size=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 262144
  • Range: 8200 to 2147483647

-

-

rowid_merge_buff_size

  • Description: The maximum size in bytes of the memory available to the Rowid-merge strategy. See Non-semi-join subquery optimizations for more information.
  • Commandline: --rowid-merge-buff-size=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 8388608
  • Range: 0 to 2147483647
  • Introduced: MariaDB 5.3.0

rpl_recovery_rank


safe_show_database

  • Description: This variable was removed in MariaDB 5.5, and has been replaced by the more flexible SHOW DATABASES privilege.
  • Commandline: --safe-show-database (until MySQL 4.1.1)
  • Scope: Global
  • Dynamic: Yes
  • Data Type: boolean
  • Removed: MariaDB 5.5

secure_auth

  • Description: Connections will be blocked unless clients use the current password format. Prior to MySQL 4.1 passwords used an old, less secure format.. For the mysql client, the --secure-auth option blocks connections to servers requiring the old format. The server will also fail to start if the privilege tables are in the old, pre-MySQL 4.1 format.
  • Commandline: --secure-auth
  • Scope: Global
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: ON (>= MariaDB 10.1.7), OFF (<= MariaDB 10.1.6)

secure_file_priv

  • Description: LOAD DATA, SELECT ... INTO and LOAD FILE() will only work with files in the specified path. If not set, the default, the statements will work with any files that can be accessed.
  • Commandline: --secure-file-priv=path
  • Scope: Global
  • Dynamic: No
  • Data Type: path name
  • Default Value: None

secure_timestamp

  • Description: Restricts direct setting of a session timestamp. Possible levels are:
    • YES - timestamp cannot deviate from the system clock
    • REPLICATION - replication thread can adjust timestamp to match the master's
    • SUPER - a user with this privilege and a replication thread can adjust timestamp
    • NO - historical behavior, anyone can modify session timestamp
  • Commandline: --secure-timestamp=value
  • Scope: Global
  • Dynamic: No
  • Data Type: enum
  • Default Value: NO
  • Introduced: MariaDB 10.3.7

session_track_schema

  • Description: Whether to track changes to the default schema within the current session.
  • Commandline: --session-track-schema={0|1}
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: ON
  • Introduced: MariaDB 10.2.2

session_track_state_change

  • Description: Whether to track changes to the session state.
  • Commandline: --session-track-state-change={0|1}
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: OFF
  • Introduced: MariaDB 10.2.2

session_track_system_variables

  • Description: Comma-separated list of session system variables for which to track changes. In MariaDB 10.2, by default no variables are tracked. For compatibility with MySQL defaults, this variable should be set to "autocommit, character_set_client, character_set_connection, character_set_results, time_zone" (the default from MariaDB 10.3.1). The * character tracks all session variables.
  • Commandline: --session-track-system-variables=value
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: string
  • Default Value: autocommit, character_set_client, character_set_connection, character_set_results, time_zone (>= MariaDB 10.3.1), empty string (<= MariaDB 10.3.0)
  • Introduced: MariaDB 10.2.2

session_track_transaction_info

  • Description: Track changes to the transaction attributes. OFF to disable; STATE to track just transaction state (Is there an active transaction? Does it have any data? etc.); CHARACTERISTICS to track transaction state and report all statements needed to start a transaction with the same characteristics (isolation level, read only/read write,snapshot - but not any work done / data modified within the transaction).
  • Commandline: --session-track-transaction-info=value
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: enum
  • Default Value: OFF
  • Valid Values: OFF, STATE, CHARACTERISTICS
  • Introduced: MariaDB 10.2.2

shared_memory

  • Description: Windows only, determines whether the server permits shared memory connections. See also shared_memory_base_name.
  • Scope: Global
  • Dynamic: No

shared_memory_base_name

  • Description: Windows only, specifies the name of the shared memory to use for shared memory connection. Mainly used when running more than one instance on the same physical machine. By default the name is MYSQL and is case sensitive. See also shared_memory.
  • Scope: Global
  • Dynamic: No
  • Data Type: string
  • Default Value: MYSQL

skip_external_locking

  • Description: If set, external locking for MyISAM tables is disabled.
  • Commandline: --skip-external-locking
  • Scope: Global
  • Dynamic: No
  • Data Type: boolean
  • Default Value: 1

skip_name_resolve

  • Description: If set to 1 (0 is the default), only IP addresses are used for connections. Host names are not resolved. All host values in the GRANT tables must be IP addresses (or localhost).
  • Commandline: --skip-name-resolve
  • Scope: Global
  • Dynamic: No
  • Data Type: boolean
  • Default Value: 0

skip_networking

  • Description: If set to 1, (0 is the default), the server does not listen for TCP/IP connections. All interaction with the server by be through socket files (Unix) or named pipes or shared memory (Windows). It's recommended to use this option if only local clients are permitted to connect to the server. Enabling this option also prevents a server from functioning as a replication client.
  • Commandline: --skip-networking
  • Scope: Global
  • Dynamic: No
  • Data Type: boolean
  • Default Value: 0

skip_show_database

  • Description: If set to 1, (0 is the default), only users with the SHOW DATABASES privilege can use the SHOW DATABASES statement to see all database names.
  • Commandline: --skip-show-database
  • Scope: Global
  • Dynamic: No
  • Data Type: boolean
  • Default Value: 0

slow_launch_time

  • Description: Time in seconds. If a thread takes longer than this to launch, the slow_launch_threads server status variable is incremented.
  • Commandline: --slow-launch-time=#
  • Scope: Global
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 2

slow_query_log

  • Description: If set to 0, the default unless the --slow-query-log option is used, the slow query log is disabled, while if set to 1 (both global and session variables), the slow query log is enabled. MariaDB 10.1 added support for session variables.
  • Commandline: --slow-query-log
  • Scope: Global, Session (MariaDB 10.1)
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: 0
  • See also: See log_output to see how log files are written. If that variable is set to NONE, no logs will be written even if slow_query_log is set to 1.

slow_query_log_file

  • Description: Name of the slow query log file.
  • Commandline: --slow-query-log-file=file_name
  • Scope: Global
  • Dynamic: Yes
  • Data Type: file name
  • Default Value: host_name-slow.log

socket

  • Description: On Unix-like systems, this is the name of the socket file used for local client connections, by default /tmp/mysql.sock, often changed by the distribution, for example /var/lib/mysql/mysql.sock. On Windows, this is the name of the named pipe used for local client connections, by default MySQL. On Windows, this is not case-sensitive.
  • Commandline: --socket=name
  • Scope: Global
  • Dynamic: No
  • Data Type: file name
  • Default Value: /tmp/mysql.sock (Unix), MySQL (Windows)

sort_buffer_size

  • Description: Each session performing a sort allocates a buffer with this amount of memory. Not specific to any storage engine. If the status variable sort_merge_passes is too high, you may need to look at improving your query indexes, or increasing this. Consider reducing where there are many small sorts, such as OLTP, and increasing where needed by session. 16k is a suggested minimum.
  • Commandline: --sort-buffer-size=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: number
  • Default Value: 2M (2097152) (some distributions increase the default)

sql_auto_is_null

  • Description: If set to 1, the query SELECT * FROM table_name WHERE auto_increment_column IS NULL will return an auto-increment that has just been successfully inserted, the same as the LAST_INSERT_ID() function. Some ODBC programs make use of this IS NULL comparison.
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: 0 (>= MariaDB/MySQL 5.5.3), 1 (MariaDB/MySQL <= 5.5.2)

sql_big_selects

  • Description: If set to 0, MariaDB will not perform large SELECTs. See max_join_size for details. If max_join_size is set to anything but DEFAULT, sql_big_selects is automatically set to 0. If sql_big_selects is again set, max_join_size will be ignored.
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: 1

sql_big_tables


sql_buffer_result

  • Description: If set to 1 (0 is default), results from SELECT statements are always placed into temporary tables. This can help the server when it takes a long time to send the results to the client by allowing the table locks to be freed early.
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: 0

sql_log_off

  • Description: If set to 1 (0 is the default), no logging to the general query log is done for the client. Only clients with the SUPER privilege can update this variable.
  • Scope: Session
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: 0

sql_log_update

  • Description: Removed. Use sql_log_bin instead.
  • Removed: MariaDB/MySQL 5.5

sql_low_priority_updates


sql_max_join_size


sql_mode

  • Description: Sets the SQL Mode. Multiple modes can be set, separated by a comma.
  • Commandline: --sql-mode=value[,value[,value...]]
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: string
  • Default Value:
  • Valid Values: See SQL Mode for the full list.

sql_notes

  • Description: If set to 1, the default, warning_count is incremented each time a Note warning is encountered. If set to 0, Note warnings are not recorded. mysqldump has outputs to set this variable to 0 so that no unnecessary increments occur when data is reloaded.
  • Commandline: None
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: 1

sql_quote_show_create

  • Description: If set to 1, the default, the server will quote identifiers for SHOW CREATE DATABASE, SHOW CREATE TABLE and SHOW CREATE VIEW statements. Quoting is disabled if set to 0. Enable to ensure replications works when identifiers require quoting.
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: 1

sql_safe_updates

  • Description: If set to 1, UPDATEs and DELETEs need either a key in the WHERE clause, or a LIMIT clause, or else they will aborted. Prevents the common mistake of accidentally deleting or updating every row in a table. Until MariaDB 10.3.11, could not be set as a command-line option or in my.cnf.
  • Commandline: --sql-safe-updates[={0|1}]
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: OFF

sql_select_limit

  • Description: Maximum number of rows that can be returned from a SELECT query. Default is the maximum number of rows permitted per table by the server, usually 232-1 or 264-1. Can be restored to the default value after being changed by assigning it a value of DEFAULT.
  • Commandline: None
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 18446744073709551615

sql_warnings

  • Description: If set to 1, single-row INSERTs will produce a string containing warning information if a warning occurs.
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: OFF (0)

storage_engine


standard_compliant_cte

  • Description: Allow only standard-compliant common table expressions. Prior to version 10.2.4, this variable was named standards_compliant_cte.
  • Commandline: --standard-compliant-cte={0|1}
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: ON
  • Introduced: MariaDB 10.2.2

stored_program_cache

  • Description: Limit to the number of stored routines held in the stored procedures and stored functions caches. Each time a stored routine is executed, this limit is first checked, and if the number held in the cache exceeds this, that cache is flushed and memory freed.
  • Commandline: --stored-program-cache=#
  • Scope: Global
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 256
  • Range: 256 to 524288
  • Introduced: MariaDB/MySQL 5.5.21

strict_password_validation

  • Description: When password validation plugins are enabled, reject passwords that cannot be validated (passwords specified as a hash). This excludes direct updates to the privilege tables.
  • Commandline: --strict-password-validation
  • Scope: Global
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: ON
  • Introduced: MariaDB 10.1.2

  • Description: Enables symbolic link support. When set, the have_symlink system variable shows as YES.
  • Command-line: --symbolic-links
  • Scope: Global
  • Dynamic: No
  • Data Type: boolean

sync_frm

  • Description: If set to 1, the default, each time a non-temporary table is created, its .frm definition file is synced to disk. Fractionally slower, but safer in case of a crash.
  • Commandline: --sync-frm
  • Scope: Global
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: TRUE

system_time_zone

  • Description: The system time zone is determined when the server starts. The system time zone is usually read from the operating system's environment. See Time Zones: System Time Zone for the various ways to change the system time zone. This variable is not the same as the time_zone system variable, which is the variable that actually controls a session's active time zone. The system time zone is used for a session when time_zone is set to the special value SYSTEM.
  • Scope: Global
  • Dynamic: No
  • Data Type: string

table_definition_cache


table_lock_wait_timeout

  • Description: Unused, and removed in MariaDB/MySQL 5.5.3
  • Commandline: --table-lock-wait-timeout=#
  • Scope: Global
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 50
  • Range: 1 to 1073741824
  • Removed: MariaDB/MySQL 5.5.3

table_open_cache


table_open_cache_instances

  • Description: From MariaDB 10.2.2, specifies the maximum number of table cache instances. This is different to the MySQL version which specifies the number of table cache instances. The MariaDB implementation is more efficient, and always starts with 1 instance, increasing the number up to the maximum when there's contention. Whenever an instance is activated a note is written to error log, for example Detected table cache mutex contention at instance 1: 25% waits. Additional table cache instance activated. Number of instances after activation: 2. The number of instances does not decrease again. The current default value (8) is expected to handle up to 100 CPU cores - beyond this, the setting should be increased. Until MariaDB 10.0.7, this was an unused MySQL 5.6 compatibility option, as MariaDB achieved similar results in a different way (see MDEV-4702).
  • Scope: Global
  • Dynamic: No
  • Data Type: numeric
  • Default Value: 8 (>= MariaDB 10.2.2), 1 (<= MariaDB 10.0.6)
  • Range: 1 to 64
  • Introduced: MariaDB 10.2.2 (previously in MariaDB 10.0.4)
  • Removed: MariaDB 10.0.7, reintroduced MariaDB 10.2.2

table_type


tcp_keepalive_interval

  • Description: The interval, in seconds, between when successive keep-alive packets are sent if no acknowledgement is received. If set to 0, the system dependent default is used.
  • Commandline: --tcp-keepalive-interval=#
  • Scope: Global
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 0
  • Range: 0 to 2147483
  • Introduced: MariaDB 10.3.3

tcp_keepalive_probes

  • Description: The number of unacknowledged probes to send before considering the connection dead and notifying the application layer. If set to 0, a system dependent default is used.
  • Commandline: --tcp-keepalive-probes=#
  • Scope: Global
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 0
  • Range: 0 to 2147483
  • Introduced: MariaDB 10.3.3

tcp_keepalive_time

  • Description: Timeout, in milliseconds, with no activity until the first TCP keep-alive packet is sent. If set to 0, a system dependent default is used.
  • Commandline: --tcp-keepalive-time=#
  • Scope: Global
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 0
  • Range: 0 to 2147483
  • Introduced: MariaDB 10.3.3

tcp_nodelay

  • Description: Set the TCP_NODELAY option (disable Nagle's algorithm) on socket.
  • Commandline: --tcp-nodelay={0|1}
  • Scope: Session
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: 1
  • Introduced: MariaDB 10.4.0

thread_cache_size

  • Description: Number of threads server caches for re-use. If this limit hasn't been reached, when a client disconnects, its threads are put into the cache, and re-used where possible. These are freed after 5 minutes of idle time. Normally this setting has little effect, as the other aspects of the thread implementation are more important, but increasing it can help servers with high volumes of connections per second so that most can use a cached, rather than a new, thread. The cache miss rate can be calculated as the server status variables threads_created/connections. If the thread pool is active, thread_cache_size is ignored. From MariaDB 10.2.0, the default is automatically set to the smaller of either 256, or the max_connections size.
  • Commandline: --thread-cache-size=#
  • Scope: Global
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 0 (<= MariaDB 10.1), Auto (from MariaDB 10.2.0)
  • Range: 0 to 16384

thread_concurrency

  • Description: Allows applications to give the system a hint about the desired number of threads. Specific to Solaris only, invokes thr_setconcurrency(). Deprecated and has no effect in MariaDB 5.5.
  • Commandline: --thread-concurrency=#
  • Scope: Global
  • Dynamic: No
  • Data Type: numeric
  • Default Value: 10
  • Range: 1 to 512
  • Deprecated: MariaDB 5.5

thread_stack

  • Description: Stack size for each thread. If set too small, limits recursion depth of stored procedures and complexity of SQL statements the server can handle in memory. Also affects limits in the crash-me test.
  • Commandline: --thread-stack=#
  • Scope: Global
  • Dynamic: No
  • Data Type: numeric
  • Default Value:
  • Range: 131072 to 18446744073709551615

time_format

  • Description: Unused.

time_zone

  • Description: The global value determines the default time zone for sessions that connect. The session value determines the session's active time zone. When it is set to SYSTEM, the session's time zone is determined by the system_time_zone system variable.
  • Commandline: --default-time-zone=string
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: string
  • Default Value: SYSTEM

timed_mutexes

  • Description: Determines whether InnoDB mutexes are timed. OFF, the default, disables mutex timing, while ON enables it. See also SHOW ENGINE for more on mutex statistics. Deprecated in MariaDB 5.5.39, as has no effect anymore.
  • Commandline: --timed-mutexes
  • Scope: Global
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: OFF
  • Deprecated: MariaDB 5.5.39

timestamp

  • Description: Sets the time for the client. This will affect the result returned by the NOW() function, not the SYSDATE() function, unless the server is started with the --sysdate-is-now option, in which case SYSDATE becomes an alias of NOW, and will also be affected. Also used to get the original timestamp when restoring rows from the binary log.
  • Scope: Session
  • Dynamic: Yes
  • Valid Values: timestamp_value (Unix epoch timestamp, not MariaDB timestamp), DEFAULT

tmp_disk_table_size

  • Description: Max size for data for an internal temporary on-disk MyISAM or Aria table. These tables are created as part of complex queries when the result doesn't fit into the memory engine. You can set this variable if you want to limit the size of temporary tables created in your temporary directory tmpdir.
  • Commandline: --tmp-disk-table-size=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 18446744073709551615 (max unsigned integer, no limit)
  • Range: 1024 to 18446744073709551615
  • Introduced: MariaDB 10.2.7

tmp_memory_table_size


tmp_table_size

  • Description: The largest size for temporary tables in memory (not MEMORY tables) although if max_heap_table_size is smaller the lower limit will apply. If a table exceeds the limit, MariaDB converts it to a MyISAM or Aria table. You can see if it's necessary to increase by comparing the status variables Created_tmp_disk_tables and Created_tmp_tables to see how many temporary tables out of the total created needed to be converted to disk. Often complex GROUP BY queries are responsible for exceeding the limit. Defaults may be different on some systems, see for example Differences in MariaDB in Debian. From MariaDB 10.2.7, tmp_memory_table_size is an alias.
  • Commandline: --tmp-table-size=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: numeric
  • Default Value: 16777216 (16MB)
  • Range: 1024 to 4294967295

tmpdir

  • Description: Directory for storing temporary tables and files. Can specify a list (separated by semicolons in Windows, and colons in Unix that will then be used in round-robin fashion. This can be used for load balancing across several disks. Note that if the server is a replication slave, and slave_load_tmpdir, which overrides tmpdir for slave replication, is not set, you should not set tmpdir to a directory that is cleared when the machine restarts, or else replication may fail.
  • Commandline: --tmpdir=path or -t path
  • Scope: Global
  • Dynamic: No
  • Type: directory name/s

transaction_alloc_block_size

  • Description: Size in bytes to increase the memory pool available to each transaction when the available pool is not large enough. See transaction_prealloc_size.
  • Commandline: --transaction-alloc-block-size=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Type: numeric
  • Default Value: 8192
  • Range: 1024 to 4294967295
  • Block Size: 1024

transaction_prealloc_size

  • Description: Initial size of a memory pool available to each transaction for various memory allocations. If the memory pool is not large enough for an allocation, it is increased by transaction_alloc_block_size bytes, and truncated back to transaction_prealloc_size bytes when the transaction is completed. If set large enough to contain all statements in a transaction, extra malloc() calls are avoided.
  • Commandline: --transaction-prealloc-size=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Type: numeric
  • Default Value: 4096
  • Range: 1024 to 4294967295
  • Block Size: 1024

tx_isolation

  • Description: The transaction isolation level. See also SET TRANSACTION ISOLATION LEVEL.
  • Commandline: --transaction-isolation=name
  • Scope: Global, Session
  • Dynamic: Yes
  • Type: enumeration
  • Default Value: REPEATABLE-READ
  • Valid Values: READ-UNCOMMITTED, READ-COMMITTED, REPEATABLE-READ, SERIALIZABLE

tx_read_only

  • Description: Default transaction access mode. If set to OFF, the default, access is read/write. If set to ON, access is read-only. The SET TRANSACTION statement can also change the value of this variable. See SET TRANSACTION and START TRANSACTION.
  • Commandline: --transaction-read-only=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Type: boolean
  • Default Value: OFF-READ
  • Introduced: MariaDB 10.0

unique_checks

  • Description: If set to 1, the default, secondary indexes in InnoDB tables are performed. If set to 0, storage engines can (but are not required to) assume that duplicate keys are not present in input data. Set to 0 to speed up imports of large tables to InnoDB. The storage engine will still issue a duplicate key error if it detects one, even if set to 0.
  • Scope: Global, Session
  • Dynamic: Yes
  • Type: boolean
  • Default Value: 1

updatable_views_with_limit

  • Description: Determines whether view updates can be made with an UPDATE or DELETE statement with a LIMIT clause if the view does not contain all primary or not null unique key columns from the underlying table. 0 prohibits this, while 1 permits it while issuing a warning (the default).
  • Commandline: --updatable-views-with-limit=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Type: boolean
  • Default Value: 1

use_stat_tables

  • Description: Controls the use of engine-independent table statistics.
    • never: The optimizer will not use data from statistics tables.
    • complementary: The optimizer uses data from statistics tables if the same kind of data is not provided by the storage engine.
    • preferably: Prefer the data from statistics tables, if it's not available there, use the data from the storage engine.
    • complementary_for_queries: Same as complementary, but for queries only (to avoid needlessly collecting for ANALYZE TABLE).
    • preferably_for_queries: Same as preferably, but for queries only (to avoid needlessly collecting for ANALYZE TABLE).
  • Commandline: --use-stat-tables=mode
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: enum
  • Default Value: preferably_for_queries (>= MariaDB 10.4.1), never (<= MariaDB 10.4.0)
  • Introduced: MariaDB 10.0.1

version

  • Description: Server version number. It may also include a suffix with configuration or build information. -debug indicates debugging support was enabled on the server, and -log indicates at least one of the binary log, general log or slow query log are enabled, for example 10.0.1-MariaDB-mariadb1precise-log. From MariaDB 10.2.1, this variable can be set at startup in order to fake the server version.
  • Commandline: -V, --version[=name] (>= MariaDB 10.2.1), --version (<= MariaDB 10.2.0)
  • Scope: Global
  • Dynamic: No
  • Type: string

version_comment

  • Description: Value of the COMPILATION_COMMENT option specified by CMake when building MariaDB, for example mariadb.org binary distribution.
  • Scope: Global
  • Dynamic: No
  • Type: string

version_compile_machine

  • Description: The machine type or architecture MariaDB was built on, for example i686.
  • Scope: Global
  • Dynamic: No
  • Type: string

version_compile_os

  • Description: Operating system that MariaDB was built on, for example debian-linux-gnu.
  • Scope: Global
  • Dynamic: No
  • Type: string

version_malloc_library

  • Description: Version of the used malloc library.
  • Commandline: No
  • Scope: Global
  • Dynamic: No
  • Type: string
  • Introduced: MariaDB 10.0.8

version_source_revision

  • Description: Source control revision id for MariaDB source code, enabling one to see exactly which version of the source was used for a build.
  • Commandline: None
  • Scope: Global
  • Dynamic: No
  • Type: string
  • Introduced: MariaDB 10.3.2

wait_timeout

  • Description: Time in seconds that the server waits for a connection to become active before closing it. The session value is initialized when a thread starts up from either the global value, if the connection is non-interactive, or from the interactive_timeout value, if the connection is interactive.
  • Commandline: --wait-timeout=#
  • Scope: Global, Session
  • Dynamic: Yes
  • Type: numeric
  • Default Value: 28800
  • Range: (Windows): 1 to 2147483
  • Range: (Other): 1 to 31536000

warning_count

  • Description: Read-only variable indicating the number of warnings, errors and notes resulting from the most recent statement that generated messages. See SHOW WARNINGS for more. Note warnings will only be recorded if sql_notes is true (the default).
  • Scope: Session
  • Dynamic: No
  • Type: numeric

Comments

Comments loading...