Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The order in which configuration files are read is specified in this config file on UBUNTU 1504 /etc/mysql/my.cnf

root@ts03695:/home/pssuser# cat /etc/mysql/my.cnf

The MariaDB configuration file


The MariaDB/MySQL tools read configuration files in the following order:

1. "/etc/mysql/mariadb.cnf" (this file) to set global defaults,

2. "/etc/mysql/conf.d/*.cnf" to set global options.

3. "/etc/mysql/mariadb.conf.d/*.cnf" to set MariaDB-only options.

4. "~/.my.cnf" to set user-specific options.


If the same option is defined multiple times, the last one will apply.


One can use all long options that the program supports.

Run program with --help to get a list of available options and with

--print-defaults to see which it would actually understand and use.

Import all .cnf files from configuration directory

!includedir /etc/mysql/conf.d/ !includedir /etc/mysql/mariadb.conf.d/