what's `/etc/mysql/mariadb.cnf` used for? (i.e. `my.cnf` vs `mariadb.cnf`)
4
votes
1
answer
1908
views
I'm trying to better understand how MariaDB is configured.
From
mysqld --help --verbose
I can see that my mariadb server daemon uses /etc/mysql/my.cnf
.
But I'm curious about the **/etc/mysql/mariadb.cnf
** file, and what it's intended for? It has almost nothing in it compared to my.cnf.
----------
The package **mysql-common** installs **my.cnf**
The package **mariadb-common** installs **mariadb.cnf**
----------
On my Debian Buster system /etc/mysql/my.cnf
and /etc/mysql/mariadb.cnf
are similar in what they 'include'.
One minor difference is that because /etc/mysql/conf.d/mariadb.cnf
already includes /etc/mysql/mariadb.conf.d
, /etc/mysql/mariadb.cnf
seems to include /etc/mysql/mariadb.conf.d
twice.
my.cnf
is full of options, and
mariadb.cnf
has little to no content, so doesn't appear to be a replacement to my.cnf, at least not yet.
----------
/etc/mysql/my.cnf --!includedir--> conf.d
/etc/mysql/conf.d/mariadb.cnf --!includedir--> mariadb.conf.d
/etc/mysql/mariadb.conf.d/
...
----------
/etc/mysql/mariadb.cnf --!includedir--> conf.d AND mariadb.conf.d
/etc/mysql/conf.d/mariadb.cnf --!includedir--> mariadb.conf.d
/etc/mysql/mariadb.conf.d/
/etc/mysql/mariadb.conf.d/ (duplicate load)
...
----------
Asked by Elliptical view
(153 rep)
Feb 26, 2020, 12:31 AM
Last activity: Feb 9, 2022, 02:55 PM
Last activity: Feb 9, 2022, 02:55 PM