summaryrefslogtreecommitdiff
path: root/scripts/mysqld_multi.sh
diff options
context:
space:
mode:
authorJulius Goryavsky <julius.goryavsky@mariadb.com>2019-10-07 12:34:08 +0200
committerJulius Goryavsky <julius.goryavsky@mariadb.com>2019-10-12 01:40:34 +0200
commit4ca0abe96409857bda9eccfd0dc8d6632c46679a (patch)
tree1dd8520e24272dee512830e1f4a489ef7ba03533 /scripts/mysqld_multi.sh
parent38736928e7980519a5975670fe0f95afff9c667c (diff)
downloadmariadb-git-4ca0abe96409857bda9eccfd0dc8d6632c46679a.tar.gz
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.
Diffstat (limited to 'scripts/mysqld_multi.sh')
-rw-r--r--scripts/mysqld_multi.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mysqld_multi.sh b/scripts/mysqld_multi.sh
index 748925bef0b..2c3578834eb 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;