mariadbd Options
A reference list of command-line options available for the `mariadbd` server binary, covering configuration, replication, and service installation.
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.
Previously, the client used to be called mysqld, and can still be accessed under this name, via a symlink in Linux, or an alternate binary in Windows.
Option Prefixes
--autoset-*
Description: Sets the option value automatically. Only supported for certain options.
--disable-*
Description: For all boolean options, disables the setting (equivalent to setting it to
0). Same as--skip.
--enable-*
Description: For all boolean options, enables the setting (equivalent to setting it to
1).
--loose-*
Description: Don't produce an error if the option doesn't exist.
--maximum-*
Description: Sets the maximum value for the option.
--skip-*
Description: For all boolean options, disables the setting (equivalent to setting it to
0). Same as--disable.
Option File Options
--defaults-extra-file
Command line:
--defaults-extra-file=nameDescription: Read this extra option file after all other option files are read.
--defaults-file
Command line:
--defaults-file=nameDescription: Only read options from the given option file.
--defaults-group-suffix
Command line:
--defaults-group-suffix=nameDescription: In addition to the default option groups, also read option groups with the given suffix.
--no-defaults
Command line:
--no-defaultsDescription: Don't read options from any option file.
--print-defaults
Command line:
--print-defaultsDescription: Read options from option files, print all option values, and then exit the program.
Compatibility Options
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
Description: Use ANSI SQL syntax instead of MariaDB syntax. This mode will also set transaction isolation level serializable.
--new
Description: Use new functionality that will exist in next version of MariaDB. This function exists to make it easier to prepare for an upgrade.
--old-style-user-limits
Description: Enable old-style user limits (before MySQL 5.0.3, user resources were counted per each user+host vs. per account).
--safe-mode
Description: Disable some potential unsafe optimizations. For 5.2, INSERT DELAYED is disabled, myisam_recover_options is set to DEFAULT (automatically recover crashed MyISAM files) and the query cache is disabled. For Aria tables, disable bulk insert optimization to enable one to use aria_read_log to recover tables even if tables are deleted (good for testing recovery).
--skip-new
Description: Disables --new.
Compatibility Options and System Variables
Locale Options
Options that are also system variables are listed after:
--character-set-client-handshake
Command line:
--character-set-client-handshakeDescription: Don't ignore client side character set value sent during handshake.
--skip-character-set-client-handshakewill ignore the client value and use the default server value.
--default-character-set
Command line:
--default-character-set=nameDescription: Still available as an option for setting the default character set for clients and their connections, it was deprecated and removed in MariaDB 10.2 as a server option. Use character-set-server instead.
--language
Description: This option can be used to set the server's language for error messages. This option can be specified either as a language name or as the path to the directory storing the language's error message file. See Server Locales for a list of supported locales and their associated languages.
This option is deprecated. Use the lc_messages and lc_messages_dir system variables instead.
See Setting the Language for Error Messages for more information.
Locale Options and System Variables
Windows Options
Options that are also system variables are listed after:
--console
Description: Windows-only option that keeps the console window open and for writing log messages to stderr and stdout. If specified together with --log-error, the last option will take precedence.
--install
Description: Windows-only option that installs the
mariadbdprocess as a Windows service.The Windows service created with this option auto-starts. If you want a service that is started on demand, then use the --install-manual option.
This option takes a service name as an argument. If this option is provided without a service name, then the service name defaults to "MARIADB".
This option is deprecated and may be removed in a future version. See MDEV-19358 for more information.
--install-manual
Description: Windows-only option that installs the
mariadbdprocess as a Windows service.The Windows service created with this option is started on demand. If you want a service that auto-starts, use the --install option.
This option takes a service name as an argument. If this option is provided without a service name, then the service name defaults to "MARIADB".
This option is deprecated and may be removed in a future version. See MDEV-19358 for more information.
--remove
Description: Windows-only option that removes the Windows service created by the --install or --install-manual options.
This option takes a service name as an argument. If this option is provided without a service name, then the service name defaults to "MARIADB".
This option is deprecated and may be removed in a future version. See MDEV-19358 for more information.
--slow-start-timeout
Description: Windows-only option that defines the maximum number of milliseconds that the service control manager should wait before trying to kill the Windows service during startup. Defaults to
15000.
--standalone
Description: Windows-only option that has no effect. Kept for compatibility reasons.
Windows Options and System Variables
The following options and system variables are related to using MariaDB on Windows:
Replication and Binary Logging Options
The following options are related to replication and the binary log. Options that are also system variables are listed after:
--abort-slave-event-count
Command line:
--abort-slave-event-count=#Description: Option used by mysql-test for debugging and testing of replication.
--binlog-do-db
Command line:
--binlog-do-db=nameDescription: This option allows you to configure a replication master to write statements and transactions affecting databases that match a specified name into its binary log. Since the filtered statements or transactions will not be present in the binary log, its replicas will not be able to replicate them.
This option will not work with cross-database updates with statement-based logging. See the Statement-Based Logging section for more information.
This option can not be set dynamically. Available as a system variable from MariaDB 11.2.0.
When setting it on the command-line or in a server option group in an option file, the option does not accept a comma-separated list. If you would like to specify multiple filters, then you need to specify the option multiple times.
See Replication Filters for more information.
--binlog-ignore-db
Command line:
--binlog-ignore-db=nameDescription: This option allows you to configure a replication master to not write statements and transactions affecting databases that match a specified name into its binary log. Since the filtered statements or transactions will not be present in the binary log, its replicas will not be able to replicate them.
This option will not work with cross-database updates with statement-based logging. See the Statement-Based Logging section for more information.
This option can not be set dynamically. Available as a system variable from MariaDB 11.2.0.
When setting it on the command-line or in a server option group in an option file, the option does not accept a comma-separated list. If you would like to specify multiple filters, then you need to specify the option multiple times.
See Replication Filters for more information.
--binlog-row-event-max-size
Command line:
--binlog-row-event-max-size=#Description: The maximum size of a row-based binary log event in bytes. Rows will be grouped into events smaller than this size if possible. The value has to be a multiple of 256. Available as a system variable from MariaDB 11.2.0.
Default value
8192
--disconnect-slave-event-count
Command line:
--disconnect-slave-event-count=#Description: Option used by mysql-test for debugging and testing of replication.
--flashback
Command line:
--flashbackDescription: Setup the server to use flashback. This enables the binary log and sets
binlog_format=ROW.
--log-basename
Command line:
--log-basename=nameDescription: Basename for all log files and the .pid file. This sets all log file names at once (in 'datadir') and is normally the only option you need for specifying log files. This is especially recommended to be set if you are using replication as it ensures that your log file names are not dependent on your host name. Sets names for the binary log, relay log, general query log, slow query log and error log. Note that if you explicitly set log file names with any of these other options; log-bin-index, relay-log, relay-log-index, general-log-file, log_slow_query_file (slow_query_log_file), log_error, and pid-file, these should be placed after
--log-basenamein the config files. Later settings override earlier settings, solog-basenamewill override any earlier log file name settings.
--log-bin-trust-routine-creators
Command line:
--log-bin-trust-routine-creatorsDescription: Deprecated, use log-bin-trust-function-creators.
--master-host
Command line:
--master-host=nameDescription: Primary hostname or IP address for replication. If not set, the replica thread will not be started. Note that the setting of master-host will be ignored if there exists a valid master.info file.
--master-info-file
Command line:
--master-info-file=nameDescription: Name and location of the file on the replica where the
MASTER_LOG_FILEandMASTER_LOG_POSoptions (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.See CHANGE MASTER TO: Option Persistence for more information.
--master-password
Command line:
--master-password=nameDescription: The password the replica thread will authenticate with when connecting to the primary. If not set, an empty password is assumed. The value in master.info will take precedence if it can be read.
--master-port
Command line:
--master-port=#Description: The port the master is listening on. If not set, the compiled setting of MYSQL_PORT is assumed. If you have not tinkered with configure options, this should be 3306. The value in master.info will take precedence if it can be read.
--master-retry-count
Command line:
--master-retry-count=#Description: Number of times a replica will attempt to connect to a primary before giving up. The retry interval is determined by the MASTER_CONNECT_RETRY option for the CHANGE MASTER statement. A value of 0 means the replica will not stop attempting to reconnect. Reconnects are triggered when a replica has timed out. See slave_net_timeout.
Default Value:
86400through 10.5,100000as of 10.6Range - 32 bit:
0 to 4294967295Range - 64 bit:
0 to 18446744073709551615
--master-ssl
Command line:
--master-sslDescription: Enable the replica to connect to the master using TLS.
--master-ssl-ca
Command line:
--master-ssl-ca[=name]Description: Master TLS CA file. Only applies if you have enabled master-ssl.
--master-ssl-capath
Command line:
--master-ssl-capath[=name]Description: Master TLS CA path. Only applies if you have enabled master-ssl.
--master-ssl-cert
Command line:
--master-ssl-cert[=name]Description: Master TLS certificate file name. Only applies if you have enabled master-ssl.
--master-ssl-cipher
Command line:
--master-ssl-cipher[=name]Description: Master TLS cipher. Only applies if you have enabled master-ssl.
--master-ssl-key
Command line:
--master-ssl-key[=name]Description: Master TLS keyfile name. Only applies if you have enabled master-ssl.
--master-user
Command line:
--master-user=nameDescription: The username the replica thread will use for authentication when connecting to the primary. The user must have FILE privilege. If the primary user is not set, user test is assumed. The value in master.info will take precedence if it can be read.
--max-binlog-dump-events
Command line:
--max-binlog-dump-events=#Description: Option used by mysql-test for debugging and testing of replication.
--replicate-same-server-id
Command line:
--replicate-same-server-idDescription: In replication, if set to 1, do not skip events having our server id. Default value is 0 (to break infinite loops in circular replication). Can't be set to 1 if log-slave-updates is used. Added as a system variable in MariaDB 12.0.
--sporadic-binlog-dump-fail
Command line:
--sporadic-binlog-dump-failDescription: Option used by mysql-test for debugging and testing of replication.
--sysdate-is-now
Command line:
--sysdate-is-nowDescription: Non-default option to alias SYSDATE() to NOW() to make it safe for replication. Since 5.0, SYSDATE() has returned a `dynamic' value different for different invocations, even within the same statement.
Replication and Binary Logging Options and System Variables
The options and system variables related to Replication and Binary Logging are described on Replication and Binary Logging System Variables.
Semisynchronous Replication Options and System Variables
The options and system variables related to Semisynchronous Replication are described here.
Optimizer Options
Options that are also system variables are listed after:
--record-buffer
Command line:
--record-buffer=#Description: Old alias for read_buffer_size.
Removed: MariaDB 5.5
--table-cache
Command line:
--table-open-cache=#Description: Removed; use --table-open-cache instead.
Removed: MariaDB 5.3.1
Optimizer Options and System Variables
Storage Engine Options
--skip-bdb
Command line:
----skip-bdbDescription: Deprecated option; Exists only for compatibility with very old my.cnf files.
Removed: MariaDB 10.5.1
--external-locking
Command line:
--external-lockingDescription: Use system (external) locking (disabled by default). With this option enabled you can run myisamchk to test (not repair) tables while the server is running. Disable with --skip-external-locking. From MariaDB 10.2.40, MariaDB 10.3.31, MariaDB 10.4.21, MariaDB 10.5.12, MariaDB 10.6.4 and all later version, this effects InnoDB and can be used to prevent multiple instances running on the same data.
MyISAM Storage Engine Options
The options related to the MyISAM storage engine are described below. Options that are also system variables are listed after:
--log-isam
Command line:
--log-isam[=file_name]Description: Enable the MyISAM log, which logs all MyISAM changes to file. If no filename is provided, the default, myisam.log is used.
MyISAM Storage Engine Options and System Variables
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.
InnoDB Storage Engine Options
The options related to the InnoDB storage engine are described below. Options that are also system variables are listed after:
--innodb
Command line:
--innodb=value,--skip-innodbDescription: This variable controls whether or not to load the InnoDB storage engine. Possible values are
ON,OFF,FORCEorFORCE_PLUS_PERMANENT(from MariaDB 5.5). If set toOFF(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.FORCEmeans that the storage engine must be successfully loaded, or else the server won't start.FORCE_PLUS_PERMANENTenables 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
Command line:
--innodb-cmpDescription:
Default:
ON
--innodb-cmp-reset
Command line:
--innodb-cmp-resetDescription:
Default:
ON
--innodb-cmpmem
Command line:
--innodb-cmpmemDescription:
Default:
ON
--innodb-cmpmem-reset
Command line:
--innodb-cmpmem-resetDescription:
Default:
ON
--innodb-file-io-threads
Command line:
--innodb-file-io-threadsDescription:
Default:
4Removed: MariaDB 10.3.0
--innodb-index-stats
Command line:
--innodb-index-statsDescription:
Default:
ONRemoved: MariaDB 10.0.0
--innodb-lock-waits
Command line:
--innodb-lock-waitsDescription:
Default:
ON
--innodb-locks
Command line:
--innodb-locksDescription:
Default:
ON
--innodb-rseg
Command line:
--innodb-rsegDescription:
Default:
ONRemoved: MariaDB 10.0.0
--innodb-status-file
Command line:
--innodb-status-fileDescription:
Default:
FALSE
--innodb-sys-indexes
Command line:
--innodb-sys-indexesDescription:
Default:
ON
--innodb-sys-stats
Command line:
--innodb-sys-statsDescription:
Default:
ONRemoved: MariaDB 10.0.0
--innodb-sys-tables
Command line:
--innodb-sys-tablesDescription:
Default:
ON
--innodb-table-stats
Command line:
--innodb-table-statsDescription:
Default:
ONRemoved: MariaDB 10.0.0
--innodb-trx
Command line:
--innodb-trxDescription:
Default:
ON
InnoDB Storage Engine Options and System Variables
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.
skip-innodb
Aria Storage Engine Options
Options related to the Aria storage engine are listed below:
Aria Storage Engine Options and System Variables
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.
MyRocks Storage Engine Options
The options and system variables related to the MyRocks storage engine can be found here.
S3 Storage Engine Options
The options and system variables related to the S3 storage engine can be found here.
CONNECT Storage Engine Options
The options related to the CONNECT storage engine are described below.
CONNECT Storage Engine Options and System Variables
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.
Spider Storage Engine Options
The options and system variables related to the Spider storage engine can be found here.
Mroonga Storage Engine Options
The options and system variables related to the Mroonga storage engine can be found here.
TokuDB Storage Engine Options
The options and system variables related to the TokuDB storage engine can be found here.
Vector Options
The options and system variables related to Vectors storage engine (beginning with mhnsw) can be found here.
Performance Schema Options
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
Command line:
--performance-schema-consumer-events-stages-currentDescription: Enable the events-stages-current consumer.
Default:
OFF
--performance-schema-consumer-events-stages-history
Command line:
--performance-schema-consumer-events-stages-historyDescription: Enable the events-stages-history consumer.
Default:
OFF
--performance-schema-consumer-events-stages-history-long
Command line:
--performance-schema-consumer-events-stages-history-longDescription: Enable the events-stages-history-long consumer.
Default:
OFF
--performance-schema-consumer-events-statements-current
Command line:
--performance-schema-consumer-events-statements-currentDescription: Enable the events-statements-current consumer. Use
--skip-performance-schema-consumer-events-statements-currentto disable.Default:
ON
--performance-schema-consumer-events-statements-history
Command line:
--performance-schema-consumer-events-statements-historyDescription: Enable the events-statements-history consumer.
Default:
OFF
--performance-schema-consumer-events-statements-history-long
Command line:
--performance-schema-consumer-events-statements-history-longDescription: Enable the events-statements-history-long consumer.
Default:
OFF
--performance-schema-consumer-events-waits-current
Command line:
--performance-schema-consumer-events-waits-currentDescription: Enable the events-waits-current consumer.
Default:
OFF
--performance-schema-consumer-events-waits-history
Command line:
--performance-schema-consumer-events-waits-historyDescription: Enable the events-waits-history consumer.
Default:
OFF
--performance-schema-consumer-events-waits-history-long
Command line:
--performance-schema-consumer-events-waits-history-longDescription: Enable the events-waits-history-long consumer.
Default:
OFF
--performance-schema-consumer-global-instrumentation
Command line:
--performance-schema-consumer-global-instrumentationDescription: Enable the global-instrumentation consumer. Use
--skip-performance-schema-consumer-global-instrumentationto disable.Default:
ON
--performance-schema-consumer-statements-digest
Command line:
--performance-schema-consumer-statements-digestDescription: Enable the statements-digest consumer. Use
--skip-performance-schema-consumer-statements-digestto disable.Default:
ON
--performance-schema-consumer-thread-instrumentation
Command line:
--performance-schema-consumer-thread-instrumentationDescription: Enable the statements-thread-instrumentation. Use
--skip-performance-schema-thread-instrumentationto disable.Default:
ON
Performance Schema Options and System Variables
Some options and system variables related to the Performance Schema can be found here. Direct links to many of them can be found below.
Galera Cluster Options
The options related to Galera Cluster are described below. Options that are also system variables are listed after:
--wsrep-new-cluster
Command line:
--wsrep-new-clusterDescription: Bootstrap a cluster. It works by overriding the current value of wsrep_cluster_address. It is recommended not to add this option to the config file as this will trigger bootstrap on every server start.
Galera Cluster Options and System Variables
Some options and system variables related to Galera Cluster can be found here. Direct links to many of them can be found below.
Options When Debugging mariadbd
--debug-assert-if-crashed-table
Description: Do an assert in handler::print_error() if we get a crashed table.
--debug-binlog-fsync-sleep
Description:
--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
Description:
--debug-crc-break=#Call my_debug_put_break_here() if crc matches this number (for debug).
--debug-flush
Description: Default debug log with flush after write.
--debug-no-sync
Description:
debug-no-sync[=#]Disables system sync calls. Only for running tests or debugging!
--debug-sync-timeout
Description:
debug-sync-timeout[=#]Enable the debug sync facility and optionally specify a default wait timeout in seconds. A zero value keeps the facility disabled.
--gdb
Description: Set up signals usable for debugging.
--silent-startup
Description: Don't print Notes to the error log during startup.
--sync-sys
Description: Enable/disable system sync calls. Syncs should only be turned off (
--disable-sync-sys) when running tests or debugging! Replaced by debug-no-sync from MariaDB 5.5.Removed: MariaDB 5.5
--thread-alarm
Description: Enable/disable system thread alarm calls. Should only be turned off (
--disable-thread-alarm) when running tests or debugging!
Debugging Options and System Variables
Other Options
Options that are also system variables are listed after:
--allow-suspicious-udfs
Command line:
--allow-suspicious-udfsDescription: Allows use of user-defined functions consisting of only one symbol
x()without correspondingx_init()orx_deinit(). That also means that one can load any function from any library, for exampleexit()fromlibc.so. Not recommended unless you require old UDFs with one symbol that cannot be recompiled. From MariaDB 10.10, available as a system variable as well.
--bootstrap
Command line:
--bootstrapDescription: Used by mariadb installation scripts, such as mariadb-install-db to execute SQL scripts before any privilege or system tables exist. Do no use while an existing MariaDB instance is running.
--chroot
Command line:
--chroot=nameDescription: Chroot mariadbd daemon during startup.
--des-key-file
Command line:
--des-key-file=nameDescription: Load keys for des_encrypt() and des_decrypt() from the given file.
Removed: MariaDB 13.0, together with the
DES_ENCRYPT()/DES_DECRYPT()functions and theFLUSH DES_KEY_FILEstatement.
--exit-info
Command line:
--exit-info[=#]Description: Used for debugging. Use at your own risk.
--getopt-prefix-matching
Command line:
--getopt-prefix-matching={0|1}Description: Makes it possible to disable historical "unambiguous prefix" matching in the command-line option parsing.
Default: TRUE
Introduced: MariaDB 10.1.3
--help
Command line:
--helpDescription: Displays help with many commandline options described, and exits. From MariaDB 11.5, includes deprecation information.
--log-ddl-recovery
Command line:
--log-ddl-recovery=nameDescription: Path to file used for recovery of DDL statements after a crash.
Default Value:
ddl-recover.logIntroduced: MariaDB 10.6.1
--log-short-format
Command line:
--log-short-formatDescription: Don't log extra information to update and slow-query logs.
--log-slow-file
Command line:
--log-slow-file=nameDescription: Log slow queries to given log file. Defaults logging to hostname-slow.log
--log-slow-time
Command line:
--log-slow-time=#Description: Log all queries that have taken more than long-query-time seconds to execute to the slow query log, if active. The argument will be treated as a decimal value with microsecond precision.
--log-tc
Command line:
--log-tc=nameDescription: Defines the path to 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. See Transaction Coordinator Log for more information. Also see the log_tc_size system variable and the --tc-heuristic-recover option.
Default Value:
tc.log
--master-connect-retry
Command line:
--master-connect-retry=#Description: Deprecated in 5.1.17 and removed in 5.5. The number of seconds the replica thread will sleep before retrying to connect to the master, in case the master goes down or the connection is lost.
--memlock
Command line:
--memlockDescription: Lock mariadbd in memory.
--ndb-use-copying-alter-table
Command line:
--ndb-use-copying-alter-tableDescription: Force ndbcluster to always copy tables at alter table (should only be used if on-line alter table fails).
--one-thread
Command line:
--one-threadDescription: (Deprecated): Only use one thread (for debugging under Linux). Use thread-handling=no-threads instead.
Removed: MariaDB 10.0.4
--plugin-load
Command line:
--plugin-load=nameDescription: This option can be used to configure the server to load specific plugins. This option uses the following format:
Plugins can be specified in the format
name=library, wherenameis the plugin name andlibraryis the plugin library. This format installs a single plugin from the given plugin library.Plugins can also be specified in the format
library, wherelibraryis the plugin library. This format installs all plugins from the given plugin library.Multiple plugins can be specified by separating them with semicolons.
Special care must be taken when specifying the --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.
See Plugin Overview: Installing a Plugin with Plugin Load Options for more information.
--plugin-load-add
Command line:
--plugin-load-add=nameDescription: This option can be used to configure the server to load specific plugins. This option uses the following format:
Plugins can be specified in the format
name=library, wherenameis the plugin name andlibraryis the plugin library. This format installs a single plugin from the given plugin library.Plugins can also be specified in the format
library, wherelibraryis the plugin library. This format installs all plugins from the given plugin library.Multiple plugins can be specified by separating them with semicolons.
Special care must be taken 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.
See Plugin Overview: Installing a Plugin with Plugin Load Options for more information.
--port-open-timeout
Command line:
--port-open-timeout=#Description: Maximum time in seconds to wait for the port to become free. (Default: No wait).
--safe-user-create
Command line:
--safe-user-createDescription: Don't allow new user creation by the user who has no write privileges to the mysql.user table.
--safemalloc-mem-limit
Command line:
--safemalloc-mem-limit=#Description: Simulate memory shortage when compiled with the
--with-debug=fulloption.
--show-slave-auth-info
Command line:
--show-slave-auth-infoDescription: Show user and password in SHOW REPLICA HOSTS (SHOW SLAVE HOSTS) on this primary. Also added as a system variable in MariaDB 12.0.
--skip-grant-tables
Command line:
--skip-grant-tablesDescription: Start without grant tables. This gives all users FULL ACCESS to all tables, which is useful in case of a lost root password. Use mariadb-admin flush-privileges, mariadb-admin reload or FLUSH PRIVILEGES to resume using the grant tables. From MariaDB 10.10, available as a system variable as well.
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
Command line:
--skip-host-cacheDescription: Don't cache host names.
--skip-partition
Command line:
--skip-partition,--disable-partitionDescription: Disables user-defined partitioning. Previously partitioned tables cannot be accessed or modified. Tables can still be seen with SHOW TABLES or by viewing the INFORMATION_SCHEMA.TABLES table. Tables can be dropped with DROP TABLE, but this only removes .frm files, not the associated .par files, which will need to be removed manually.
--skip-slave-start
Command line:
--skip-slave-startDescription: If set, replica is not autostarted. From MariaDB 12.0, server will display in the log if this option is set.
--skip-ssl
Command line:
--skip-sslDescription: Disable TLS connections.
--skip-symlink
Command line:
--skip-symlinkDescription: Don't allow symlinking of tables. Deprecated and removed in MariaDB 5.5. Use symbolic-links with the
skipoption prefix instead.Removed: MariaDB 5.5
--skip-thread-priority
Command line:
--skip-thread-priorityDescription: Don't give threads different priorities. Deprecated and removed in MariaDB 10.0.
Removed: MariaDB 10.0
--sql-bin-update-same
Command line:
--sql-bin-update-same=#Description: The update log was deprecated in version 5.0 and replaced by the binary log, so this option did nothing since then. Deprecated and removed in MariaDB 5.5.
Removed: MariaDB 5.5
--ssl
Command line:
--sslDescription: Enable TLS for connection (automatically enabled with other flags). Disable with '
--skip-ssl'.
--stack-trace
Command line:
--stack-trace,--skip-stack-traceDescription: Print a stack trace on failure. Enabled by default, disable with
-skip-stack-trace.
--symbolic-links
Command line:
--symbolic-linksDescription: Enables symbolic link support. When set, the have_symlink system variable shows as
YES. Silently ignored in Windows. Use--skip-symbolic-linksto disable.
--tc-heuristic-recover
Command line:
--tc-heuristic-recover=nameDescription: If manual heuristic recovery is needed, this option defines the decision to use in the heuristic recovery process. Manual heuristic recovery may be needed if the transaction coordination log is missing or if it doesn't contain all prepared transactions. This option can be set to
OFF,COMMIT, orROLLBACK. The default isOFF. See also the --log-tc server option and the log_tc_size system variable.
--temp-pool
Command line:
--temp-poolDescription: Using this option will cause most temporary files created to use a small set of names, rather than a unique name for each new file. This behavior works around a bug in old Linux kernels where the kernel appeared to "leak" memory. In a Docker environment it might look like an unbounded working-set memory growth. Defaults to
1until MariaDB 10.5.6, use--skip-temp-poolto disable. Defaults to0from MariaDB 10.5.7, as benchmarking shows it causes a heavy mutex contention.
--test-expect-abort
Command line:
--test-expect-abortDescription: Expect that server aborts with 'abort'; Don't write out server variables on 'abort'. Useful only for test scripts.
--test-ignore-wrong-options
Command line:
--test-ignore-wrong-optionsDescription: Ignore wrong enums values in command line arguments. Useful only for test scripts.
--user
Command line:
--user=nameDescription: Run mariadbd daemon as user.
--verbose
Command line:
-v,--verboseDescription: Used with help option for detailed help.
Other Options and System Variables
Authentication Plugins - Options and System Variables
Authentication Plugin - ed25519
The options related to the ed25519 authentication plugin can be found here.
Authentication Plugin - 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.
Authentication Plugin - named_pipe
The options related to the named_pipe authentication plugin can be found here.
Authentication Plugin - 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.
Authentication Plugin - unix_socket
The options related to the unix_socket authentication plugin can be found here.
Encryption Plugins - Options and System Variables
Encryption Plugin - 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.
Encryption Plugin - 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.
Password Validation Plugins - Options and System Variables
Password Validation Plugin - simple_password_check
The system variables related to the c password validation plugin can be found here.
The options related to the simple_password_check password validation plugin can be found here.
Password Validation Plugin - 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.
Audit Plugins - Options and System Variables
Audit Plugin - server_audit
Options and system variables related to the server_audit audit plugin can be found here.
Audit Plugin - SQL_ERROR_LOG
The options and system variables related to the SQL_ERROR_LOG audit plugin can be found here.
Audit Plugin - QUERY_RESPONSE_TIME_AUDIT
The options related to the QUERY_RESPONSE_TIME_AUDIT audit plugin can be found here.
Daemon Plugins - Options and System Variables
Daemon Plugin - handlersocket
The options for the HandlerSocket plugin are all described on the HandlerSocket Configuration Option page.
Information Schema Plugins - Options and System Variables
Information Schema Plugin - DISKS
The options related to the DISKS information schema plugin can be found here.
Information Schema Plugin - feedback
The system variables related to the feedback plugin can be found here.
The options related to the feedback plugin can be found here.
Information Schema Plugin - LOCALES
The options related to the LOCALES information schema plugin can be found here.
Information Schema Plugin - METADATA_LOCK_INFO
The options related to the METADATA_LOCK_INFO information schema plugin can be found here.
Information Schema Plugin - QUERY_CACHE_INFO
The options related to the QUERY_CACHE_INFO information schema plugin can be found here.
Information Schema Plugin - 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.
Information Schema Plugin - user_variables
The options related to the user_variables information schema plugin can be found here.
Information Schema Plugin - WSREP_MEMBERSHIP
The options related to the WSREP_MEMBERSHIP information schema plugin can be found here.
Information Schema Plugin - WSREP_STATUS
The options related to the WSREP_STATUS information schema plugin can be found here.
Replication Plugins - Options and System Variables
Replication Plugin - 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.
Replication Plugin - 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.
Default Values
You can verify the default values for an option by doing:
This page is licensed: GPLv2
Last updated
Was this helpful?

