Skip to content

Commit fd3ad41

Browse files
rantalcvicentiu
authored andcommitted
Update mysqld_safe.sh - introduce defaults-group-suffix handling
"--defaults-group-suffix" must be be given as the first argument on the command-line of mysqld
1 parent 1327403 commit fd3ad41

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/mysqld_safe.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ mysqld_ld_library_path=
2121
flush_caches=0
2222
numa_interleave=0
2323
unsafe_my_cnf=0
24+
defaults_group_suffix=
2425

2526
# Initial logging status: error log is not open, and not using syslog
2627
logging=init
@@ -265,6 +266,8 @@ parse_arguments() {
265266
--flush-caches) flush_caches=1 ;;
266267
--numa-interleave) numa_interleave=1 ;;
267268

269+
--defaults-group-suffix=*) defaults_group_suffix="$arg" ;;
270+
268271
--help) usage ;;
269272

270273
*)
@@ -845,7 +848,7 @@ then
845848
exit 1
846849
fi
847850

848-
for i in "$ledir/$MYSQLD" "$defaults" "--basedir=$MY_BASEDIR_VERSION" \
851+
for i in "$ledir/$MYSQLD" "$defaults_group_suffix" "$defaults" "--basedir=$MY_BASEDIR_VERSION" \
849852
"--datadir=$DATADIR" "--plugin-dir=$plugin_dir" "$USER_OPTION"
850853
do
851854
cmd="$cmd "`shell_quote_string "$i"`

0 commit comments

Comments
 (0)