From MariaDB 10.4.6, mariadbd is a symlink to mysqld.
From MariaDB 10.5.2, mariadbd is the name of the binary, with mysqld a symlink .
This page lists all of the options for mariadbd (called mysqld before MariaDB 10.5), ordered by topic. For a full alphabetical list of all mariadbd options, as well as server and status variables, see Full list of MariaDB options, system and status variables.
In many cases, the entry here is a summary, and links to the full description.
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.
See Configuring MariaDB with Option Files for which files and groups mariadbd reads for it's default options.
--autoset-*--disable-*0). Same as --skip. --enable-*1). --loose-*--maximum-*--skip-*0). Same as --disable. --defaults-extra-file--defaults-extra-file=name --defaults-file--defaults-file=name --defaults-group-suffix--defaults-group-suffix=name --no-defaults--no-defaults --print-defaults--print-defaults The following options have been added to MariaDB to make it more compliant with other MariaDB and MySQL versions. Options that are also system variables are listed after:
-a, --ansi--new--old-style-user-limits--safe-mode--skip-newOptions that are also system variables are listed after:
--character-set-client-handshake--character-set-client-handshake --default-character-set--default-character-set=name --languagelc_messages and lc_messages_dir system variables instead. Options that are also system variables are listed after:
--console--installmariadbd process as a Windows service. --install-manual option. --install-manualmariadbd process as a Windows service. --install option. --remove--install or --install-manual options. --slow-start-timeout15000. --standaloneThe following options and system variables are related to using MariaDB on Windows:
The following options are related to replication and the binary log. Options that are also system variables are listed after:
--abort-slave-event-count--abort-slave-event-count=# --binlog-do-db--binlog-do-db=name --binlog-ignore-db--binlog-ignore-db=name --binlog-row-event-max-size--binlog-row-event-max-size=# 8192 --disconnect-slave-event-count--disconnect-slave-event-count=# --flashback--flashback binlog_format=ROW. --init-rpl-role--init-rpl-role=name --log-basename--log-basename=name --log-slow-query-log-file, --log-error-file, and pid-file. --log-bin-trust-routine-creators--log-bin-trust-routine-creators --master-host--master-host=name --master-info-file--master-info-file=name MASTER_LOG_FILE and MASTER_LOG_POS options (i.e. the binary log position on the primary) and most other CHANGE MASTER options are written. The replica's I/O thread keeps this binary log position updated as it downloads events. --master-password--master-password=name --master-port--master-port=# --master-retry-count--master-retry-count=# 86400 0 to 4294967295 0 to 18446744073709551615 --master-ssl--master-ssl --master-ssl-ca--master-ssl-ca[=name] --master-ssl-capath--master-ssl-capath[=name] --master-ssl-cert--master-ssl-cert[=name] --master-ssl-cipher--master-ssl-cipher[=name] --master-ssl-key--master-ssl-key[=name] --master-user--master-user=name --max-binlog-dump-events--max-binlog-dump-events=# --replicate-same-server-id--replicate-same-server-id --sporadic-binlog-dump-fail--sporadic-binlog-dump-fail --sysdate-is-now--sysdate-is-now The following options and system variables are related to replication and the binary log:
The options and system variables related to Semisynchronous Replication are described here.
Options that are also system variables are listed after:
--record-buffer--record-buffer=# --table-cache--table-open-cache=# --skip-bdb----skip-bdb --external-locking--external-locking The options related to the MyISAM storage engine are described below. Options that are also system variables are listed after:
--log-isam--log-isam[=file_name] Some options and system variables related to the MyISAM storage engine can be found here. Direct links to many of them can be found below.
The options related to the InnoDB storage engine are described below. Options that are also system variables are listed after:
--innodb--innodb=value, --skip-innodb ON, OFF, FORCE or FORCE_PLUS_PERMANENT (from MariaDB 5.5). If set to OFF (the same as --skip-innodb), since InnoDB is the default storage engine, the server will not start unless another storage engine has been chosen with --default-storage-engine. FORCE means that the storage engine must be successfully loaded, or else the server won't start. FORCE_PLUS_PERMANENT enables the plugin, but if plugin cannot initialize, the server will not start. In addition, the plugin cannot be uninstalled while the server is running. --innodb-cmp--innodb-cmp ON --innodb-cmp-reset--innodb-cmp-reset ON --innodb-cmpmem--innodb-cmpmem ON --innodb-cmpmem-reset--innodb-cmpmem-reset ON --innodb-file-io-threads--innodb-file-io-threads 4 --innodb-index-stats--innodb-index-stats ON --innodb-lock-waits--innodb-lock-waits ON --innodb-locks--innodb-locks ON --innodb-rseg--innodb-rseg ON --innodb-status-file--innodb-status-file FALSE --innodb-sys-indexes--innodb-sys-indexes ON --innodb-sys-stats--innodb-sys-stats ON --innodb-sys-tables--innodb-sys-tables ON --innodb-table-stats--innodb-table-stats ON --innodb-trx--innodb-trx ON Some options and system variables related to the InnoDB storage engine can be found here. Direct links to many of them can be found below.
The options related to the Aria storage engine are described below. Options that are also system variables are listed after:
--aria-log-dir-path--aria-log-dir-path=value SAME AS DATADIR Some options and system variables related to the Aria storage engine can be found here. Direct links to many of them can be found below.
The options and system variables related to the MyRocks storage engine can be found here.
The options and system variables related to the S3 storage engine can be found here.
The options related to the CONNECT storage engine are described below.
Some options and system variables related to the CONNECT storage engine can be found here. Direct links to many of them can be found below.
The options and system variables related to the Spider storage engine can be found here.
The options and system variables related to the Mroonga storage engine can be found here.
The options and system variables related to the TokuDB storage engine can be found here.
The options related to the Performance Schema are described below. Options that are also system variables are listed after:
--performance-schema-consumer-events-stages-current--performance-schema-consumer-events-stages-current OFF --performance-schema-consumer-events-stages-history--performance-schema-consumer-events-stages-history OFF --performance-schema-consumer-events-stages-history-long--performance-schema-consumer-events-stages-history-long OFF --performance-schema-consumer-events-statements-current--performance-schema-consumer-events-statements-current --skip-performance-schema-consumer-events-statements-current to disable. ON --performance-schema-consumer-events-statements-history--performance-schema-consumer-events-statements-history OFF --performance-schema-consumer-events-statements-history-long--performance-schema-consumer-events-statements-history-long OFF --performance-schema-consumer-events-waits-current--performance-schema-consumer-events-waits-current OFF --performance-schema-consumer-events-waits-history--performance-schema-consumer-events-waits-history OFF --performance-schema-consumer-events-waits-history-long--performance-schema-consumer-events-waits-history-long OFF --performance-schema-consumer-global-instrumentation--performance-schema-consumer-global-instrumentation --skip-performance-schema-consumer-global-instrumentation to disable. ON --performance-schema-consumer-statements-digest--performance-schema-consumer-statements-digest --skip-performance-schema-consumer-statements-digest to disable. ON --performance-schema-consumer-thread-instrumentation--performance-schema-consumer-thread-instrumentation --skip-performance-schema-thread-instrumentation to disable. ON Some options and system variables related to the Performance Schema can be found here. Direct links to many of them can be found below.
The options related to Galera Cluster are described below. Options that are also system variables are listed after:
--wsrep-new-cluster--wsrep-new-cluster Some options and system variables related to Galera Cluster can be found here. Direct links to many of them can be found below.
--debug-assert-if-crashed-table--debug-binlog-fsync-sleep--debug-binlog-fsync-sleep=#If not set to zero, sets the number of micro-seconds to sleep after running fsync() on the binary log to flush transactions to disk. This can thus be used to artificially increase the perceived cost of such an fsync(). --debug-crc-break--debug-crc-break=#Call my_debug_put_break_here() if crc matches this number (for debug). --debug-flush--debug-no-syncdebug-no-sync[=#]Disables system sync calls. Only for running tests or debugging! --debug-sync-timeoutdebug-sync-timeout[=#]Enable the debug sync facility and optionally specify a default wait timeout in seconds. A zero value keeps the facility disabled. --gdb--silent-startup--sync-sys--disable-sync-sys) when running tests or debugging! Replaced by debug-no-sync from MariaDB 5.5. --thread-alarm--disable-thread-alarm) when running tests or debugging! Options that are also system variables are listed after:
--allow-suspicious-udfs--allow-suspicious-udfs x() without corresponding x_init() or x_deinit(). That also means that one can load any function from any library, for example exit() from libc.so. Not recommended unless you require old UDF's with one symbol that cannot be recompiled --bootstrap--bootstrap --chroot--chroot=name --des-key-file--des-key-file=name --exit-info--exit-info[=#] --getopt-prefix-matching--getopt-prefix-matching={0|1} --help--help --log-ddl-recovery--log-ddl-recovery=name ddl-recover.log --log-short-format--log-short-format --log-slow-file--log-slow-file=name --log-slow-time--log-slow-time=# --log-tc--log-tc=name log_tc_size system variable and the --tc-heuristic-recover option. tc.log --master-connect-retry--master-connect-retry=# --memlock--memlock --ndb-use-copying-alter-table--ndb-use-copying-alter-table --one-thread--one-thread --plugin-load--plugin-load=name name=library, where name is the plugin name and library is the plugin library. This format installs a single plugin from the given plugin library. library, where library is the plugin library. This format installs all plugins from the given plugin library. --plugin-load option multiple times, or when specifying both the --plugin-load option and the --plugin-load-add option together. The --plugin-load option resets the plugin load list, and this can cause unexpected problems if you are not aware. The --plugin-load-add option does not reset the plugin load list, so it is much safer to use. See Plugin Overview: Specifying Multiple Plugin Load Options for more information. --plugin-load-add--plugin-load-add=name name=library, where name is the plugin name and library is the plugin library. This format installs a single plugin from the given plugin library. library, where library is the plugin library. This format installs all plugins from the given plugin library. --plugin-load option and the --plugin-load-add option together. The --plugin-load option resets the plugin load list, and this can cause unexpected problems if you are not aware. The --plugin-load-add option does not reset the plugin load list, so it is much safer to use. See Plugin Overview: Specifying Multiple Plugin Load Options for more information. --port-open-timeout--port-open-timeout=# --safe-user-create--safe-user-create --safemalloc-mem-limit--safemalloc-mem-limit=# --with-debug=full option. --show-slave-auth-info--show-slave-auth-info --skip-grant-tables--skip-grant-tables Because the Event Scheduler also depends on the grant tables for its functionality, it is automatically disabled when running with --skip-grant-tables.
--skip-host-cache--skip-host-cache --skip-partition--skip-partition, --disable-partition --skip-slave-start--skip-slave-start --skip-ssl--skip-ssl --skip-symlink--skip-symlink skip option prefix instead. --skip-thread-priority--skip-thread-priority --sql-bin-update-same--sql-bin-update-same=# --ssl--ssl --skip-ssl'. --stack-trace--stack-trace, --skip-stack-trace -skip-stack-trace. --symbolic-links--symbolic-links YES. Silently ignored in Windows. Use --skip-symbolic-links to disable. --tc-heuristic-recover--tc-heuristic-recover=name OFF, COMMIT, or ROLLBACK. The default is OFF. See also the --log-tc server option and the log_tc_size system variable. --temp-pool--temp-pool 1 until MariaDB 10.5.6, use --skip-temp-pool to disable. Deprecated and defaults to 0 from MariaDB 10.5.7, as benchmarking shows it causes a heavy mutex contention. --test-expect-abort--test-expect-abort --test-ignore-wrong-options--test-ignore-wrong-options --user--user=name --verbose-v, --verbose ed25519
The options related to the ed25519 authentication plugin can be found here.
gssapi
The system variables related to the gssapi authentication plugin can be found here.
The options related to the gssapi authentication plugin can be found here.
named_pipe
The options related to the named_pipe authentication plugin can be found here.
pam
The system variables related to the pam authentication plugin can be found here.
The options related to the pam authentication plugin can be found here.
unix_socket
The options related to the unix_socket authentication plugin can be found here.
aws_key_management
The system variables related to the aws_key_management encryption plugin can be found here.
The options elated to the aws_key_management encryption plugin can be found here.
file_key_management
The system variables related to the file_key_management encryption plugin can be found here.
The options related to the file_key_management encryption plugin can be found here.
simple_password_check
The system variables related to the simple_password_check password validation plugin can be found here.
The options related to the simple_password_check password validation plugin can be found here.
cracklib_password_check
The system variables related to the cracklib_password_check password validation plugin can be found here.
The options related to the cracklib_password_check password validation plugin can be found here.
server_audit
Options and system variables related to the server_audit audit plugin can be found here.
SQL_ERROR_LOG
The system variables related to the SQL_ERROR_LOG audit plugin can be found here.
The options related to the SQL_ERROR_LOG audit plugin can be found here.
The options related to the QUERY_RESPONSE_TIME_AUDIT audit plugin can be found here.
handlersocket
The options for the HandlerSocket plugin are all described on the HandlerSocket Configuration Option page.
DISKS
The options related to the DISKS information schema plugin can be found here.
feedback
The system variables related to the feedback plugin can be found here.
The options related to the feedback plugin can be found here.
LOCALES
The options related to the LOCALES information schema plugin can be found here.
METADATA_LOCK_INFO
The options related to the METADATA_LOCK_INFO information schema plugin can be found here.
QUERY_CACHE_INFO
The options related to the QUERY_CACHE_INFO information schema plugin can be found here.
QUERY_RESPONSE_TIME
The system variables related to the QUERY_RESPONSE_TIME information schema plugin can be found here.
The options related to the QUERY_RESPONSE_TIME information schema plugin can be found here.
user_variables
The options related to the user_variables information schema plugin can be found here.
WSREP_MEMBERSHIP
The options related to the WSREP_MEMBERSHIP information schema plugin can be found here.
WSREP_STATUS
The options related to the WSREP_STATUS information schema plugin can be found here.
rpl_semi_sync_master
The system variables related to the rpl_semi_sync_master replication plugin can be found here.
The options related to the rpl_semi_sync_master replication plugin can be found here.
rpl_semi_sync_slave
The system variables related to the rpl_semi_sync_slave replication plugin can be found here.
The options related to the rpl_semi_sync_slave replication plugin can be found here.
You can verify the default values for an option by doing:
mariadbd --no-defaults --help --verbose
© 2023 MariaDB
Licensed under the Creative Commons Attribution 3.0 Unported License and the GNU Free Documentation License.
https://mariadb.com/kb/en/mysqld-options/