Skip to content

Commit 4ca0abe

Browse files
committed
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.
1 parent 3873692 commit 4ca0abe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/mysqld_multi.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ sub start_mysqlds()
372372
if (!$suffix_found)
373373
{
374374
$com.= " --defaults-group-suffix=";
375-
$com.= $groups[$i];
375+
$com.= substr($groups[$i],6);
376376
}
377377

378378
$com.= $tmp;

0 commit comments

Comments
 (0)