[debian-mysql] Bug#864662: 50-client.cnf: "socket" option missing in [client] section

Klaus Keppler klaus.keppler at gmail.com
Mon Jun 12 15:24:20 UTC 2017


Package: mariadb-client-10.1
Version: 10.1.23-9+deb9u1
Severity: important
Tags: patch

Dear Maintainer,

in the file /etc/mysql/mariadb.conf.d/50-client.cnf, the "socket" option is missing.
(in 50-server.cnf it is present - but this is not read by client applications)

The effect is, that a normal MySQL/MariaDB client application will use
/tmp/mysql.sock as socket location instead of /var/run/mysqld/mysqld.sock

In previous Debian releases, the correct default socket location was specified in
/etc/mysql/my.cnf, since moving to MariaDB this setting obviously got lost.

I suggest adding the "socket" option to the [client] section to be consistent
with the setting in the [server] section.

-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-1-amd64 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968), LANGUAGE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages mariadb-client-10.1 depends on:
ii  debianutils               4.8.1.1
ii  libaio1                   0.3.110-3
ii  libarchive13              3.2.2-2
ii  libc6                     2.24-11
ii  libjemalloc1              3.6.0-9.1
ii  libpcre3                  2:8.39-3
ii  libstdc++6                6.3.0-18
ii  libsystemd0               232-25
ii  mariadb-client-core-10.1  10.1.23-9+deb9u1
ii  perl                      5.24.1-3
ii  zlib1g                    1:1.2.8.dfsg-5

Versions of packages mariadb-client-10.1 recommends:
ii  libdbd-mysql-perl     4.041-2
ii  libdbi-perl           1.636-1+b1
ii  libterm-readkey-perl  2.37-1

mariadb-client-10.1 suggests no packages.

-- no debconf information
-------------- next part --------------
--- /etc/mysql/mariadb.conf.d/50-client.cnf.orig	2017-06-07 21:11:23.000000000 +0200
+++ /etc/mysql/mariadb.conf.d/50-client.cnf	2017-06-12 17:14:25.823702015 +0200
@@ -7,6 +7,9 @@
 # Default is Latin1, if you need UTF-8 set this (also in server section)
 default-character-set = utf8mb4
 
+# socket location
+socket = /var/run/mysqld/mysqld.sock
+
 # Example of client certificate usage
 # ssl-cert=/etc/mysql/client-cert.pem
 # ssl-key=/etc/mysql/client-key.pem


More information about the pkg-mysql-maint mailing list