#559162 mysql-server: mysqld_multi ignores !includedir line in my.cnf

Package:
mysql-server
Source:
mysql-8.0
Description:
MySQL database server and system database setup
Submitter:
Mark Sheppard
Date:
2013-07-31 12:36:09 UTC
Severity:
normal
#559162#5
Date:
2009-12-02 11:24:33 UTC
From:
To:
I'm currently setting up MySQL to run with multiple servers using
mysqld_multi.  However when I created additional config files in
/etc/mysql/conf.d for the different servers the mysqld_multi command
doesn't read them, so I have to put all the additional configuration
into the main /etc/mysql/my.conf file.

Please could mysqld_multi be fixed so that it processes the
!includedir line?

#559162#10
Date:
2010-02-10 01:17:00 UTC
From:
To:
The seems to happen with amd64 arch too.
#559162#15
Date:
2012-01-25 16:22:17 UTC
From:
To:
severity 637108 normal
tags 559162 + upstream
forwarded 559162 http://bugs.mysql.com/bug.php?id=29327
tags 637108 + upstream
forwarded 637108 http://bugs.mysql.com/bug.php?id=29327
thanks

Those two bugs (#559162 on MySQL 5.5 and #637108 on MySQL 5.1) are the same.

The upstream (duplicates) bugs are
http://bugs.mysql.com/bug.php?id=49356 and
http://bugs.mysql.com/bug.php?id=29327.

As upstream doesn't seem to move, we should probably include the
simple fix in Debian:
--- /usr/bin/mysqld_multi.orig 2011-08-04 16:14:12.000000000 +0200 +++ /usr/bin/mysqld_multi 2011-08-04 16:15:21.000000000 +0200 @@ -467,7 +467,9 @@ '/usr/etc/my.cnf', ($ENV{MYSQL_HOME} ? "$ENV{MYSQL_HOME}/my.cnf" : undef), $opt{'extra-file'}, - ($ENV{HOME} ? "$ENV{HOME}/.my.cnf" : undef)); + ($ENV{HOME} ? "$ENV{HOME}/.my.cnf" : undef), + </etc/mysql/conf.d/*.cnf> + ); } Regards -- Mathieu Parent
#559162#26
Date:
2013-07-31 12:33:29 UTC
From:
To:
Am 25.01.2012 17:22, schrieb Mathieu Parent:

It is really disappointing that this low hanging fruit wasn't fixed
for wheezy. Having all this config in /etc/mysql/my.cnf, which is
shipped by mysql-common, causes major headache on dist-upgrade.

Jan.