Skip to content

Commit a9bbb0c

Browse files
committed
Unified config file layout with upstream .cnf layout
Now the packages mariadb-common, mariadb-client and mariadb-server each install their own cnf file. A system will not have extra cnf files around. Also the .cnf files list all possible stanzas that can be used to compartmentalize settings for different binaries. Role model was upstream https://github.com/MariaDB/server/tree/83ba48b7c670f6dba465325cafd808c91f551544/support-files/rpm
1 parent 59c96c7 commit a9bbb0c

File tree

8 files changed

+70
-4
lines changed

8 files changed

+70
-4
lines changed

debian/additions/mariadb.cnf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212
# Run program with --help to get a list of available options and with
1313
# --print-defaults to see which it would actually understand and use.
1414

15+
#
16+
# This group is read both both by the client and the server
17+
# use it for options that affect everything
18+
#
19+
[client-server]
20+
1521
# Import all .cnf files from configuration directory
1622
!includedir /etc/mysql/conf.d/
1723
!includedir /etc/mysql/mariadb.conf.d/
Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
#
2+
# This group is read by the client library
3+
# Use it for options that affect all clients, but not the server
4+
#
5+
16
[client]
27
# Default is Latin1, if you need UTF-8 set this (also in server section)
38
default-character-set = utf8mb4
49

5-
[mysql]
6-
default-character-set = utf8mb4
7-
10+
# This group is *never* read by mysql client library, though this
11+
# /etc/mysql/mariadb.cnf.d/client.cnf file is not read by Oracle MySQL
12+
# client anyway.
13+
# If you use the same .cnf file for MySQL and MariaDB,
14+
# use it for MariaDB-only client options
15+
[client-mariadb]
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#
2+
# These groups are read by MariaDB command-line tools
3+
# Use it for options that affect only one utility
4+
#
5+
6+
[mysql]
7+
# Default is Latin1, if you need UTF-8 set this (also in server section)
8+
default-character-set = utf8mb4
9+
10+
[mysql_upgrade]
11+
12+
[mysqladmin]
13+
14+
[mysqlbinlog]
15+
16+
[mysqlcheck]
17+
18+
[mysqldump]
19+
20+
[mysqlimport]
21+
22+
[mysqlshow]
23+
24+
[mysqlslap]

debian/additions/mariadb.conf.d/mysqld.cnf renamed to debian/additions/mariadb.conf.d/server.cnf

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1+
#
2+
# These groups are read by MariaDB server.
3+
# Use it for options that only the server (but not clients) should see
4+
#
5+
# See the examples of server my.cnf files in /usr/share/mysql/
6+
#
7+
8+
# this is read by the standalone daemon and embedded servers
9+
[server]
10+
11+
# this is only for the mysqld standalone daemon
112
[mysqld]
13+
214
#
315
# * Basic Settings
416
#
@@ -100,3 +112,16 @@ collation-server = utf8mb4_general_ci
100112
# Also available for other users if required.
101113
# See https://mariadb.com/kb/en/unix_socket-authentication-plugin/
102114
plugin-load-add = auth_socket.so
115+
116+
# this is only for embedded server
117+
[embedded]
118+
119+
# This group is only read by MariaDB servers, not by MySQL.
120+
# If you use the same .cnf file for MySQL and MariaDB,
121+
# you can put MariaDB-only options here
122+
[mariadb]
123+
124+
# This group is only read by MariaDB-10.0 servers.
125+
# If you use the same .cnf file for MariaDB of different versions,
126+
# use this group for options that older servers don't understand
127+
[mariadb-10.0]

debian/mariadb-client-10.0.install

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
debian/additions/innotop/innotop usr/bin/
2+
debian/additions/mariadb.conf.d/client.cnf etc/mysql/mariadb.conf.d
23
debian/additions/mysqlreport usr/bin/
34
usr/bin/mysql_find_rows
45
usr/bin/mysql_fix_extensions

debian/mariadb-common.dirs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
etc/mysql/mariadb.conf.d

debian/mariadb-common.install

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
debian/additions/mariadb.cnf etc/mysql/
2-
debian/additions/mariadb.conf.d etc/mysql/

debian/mariadb-server-10.0.install

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
debian/additions/debian-start etc/mysql
22
debian/additions/debian-start.inc.sh usr/share/mysql
33
debian/additions/echo_stderr usr/share/mysql
4+
debian/additions/mariadb.conf.d/server.cnf etc/mysql/mariadb.conf.d
5+
debian/additions/mariadb.conf.d/mysqld_safe.cnf etc/mysql/mariadb.conf.d
46
etc/apparmor.d/usr.sbin.mysqld
57
usr/bin/aria_chk
68
usr/bin/aria_dump_log

0 commit comments

Comments
 (0)