From 2ae02c295adf9cbfd9dd29ed6872b2e6295eee55 Mon Sep 17 00:00:00 2001 From: Julius Goryavsky Date: Mon, 7 Oct 2019 12:34:08 +0200 Subject: [PATCH] MDEV-20728: /usr/sbin/mysqld: unknown variable 'defaults-group-suffix=mysqld1 When the mysqld_multi script passes the --defaults-group-suffix option to mysqld, it must remove the initial substring with the group name ("mysqld") from option value, because otherwise substring "mysqld" will be added to the group name and then the group name will contain the word "mysqld" twice, which is wrong, because mysqld itself adds the suffix received to the group name. --- scripts/mysqld_multi.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mysqld_multi.sh b/scripts/mysqld_multi.sh index 7cf22bdaf3c..5f359551f0d 100644 --- a/scripts/mysqld_multi.sh +++ b/scripts/mysqld_multi.sh @@ -372,7 +372,7 @@ sub start_mysqlds() if (!$suffix_found) { $com.= " --defaults-group-suffix="; - $com.= $groups[$i]; + $com.= substr($groups[$i],6); } $com.= $tmp;