Commit eabf5230 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-16906 No groups to be reported (check your GNRs) - mysqld_multi does not see instances

make mysqld_multi to use same rules for my.cnf directories
that all other tools are using (see my_default.c).
parent 26e2dd39
......@@ -492,12 +492,19 @@ sub list_defaults_files
return ($opt{file}) if exists $opt{file};
return ('@sysconfdir@/my.cnf',
'@sysconfdir@/mysql/my.cnf',
'@prefix@/my.cnf',
($ENV{MYSQL_HOME} ? "$ENV{MYSQL_HOME}/my.cnf" : undef),
$opt{'extra-file'},
($ENV{HOME} ? "$ENV{HOME}/.my.cnf" : undef));
my @dirs;
# same rule as in mysys/my_default.c
if ('@sysconfdir@') {
push @dirs, '@sysconfdir@/my.cnf';
} else {
push @dirs, '/etc/my.cnf', '/etc/mysql/my.cnf';
}
push @dirs, "$ENV{MYSQL_HOME}/my.cnf" if $ENV{MYSQL_HOME};
push @dirs, $opt{'extra-file'} if $opt{'extra-file'};
push @dirs, "$ENV{HOME}/.my.cnf" if $ENV{HOME};
return @dirs;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment