mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
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).
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user