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
This commit is contained in:
rantal 2019-09-16 22:36:19 +03:00 committed by Vicențiu Ciorbaru
parent 13274032af
commit fd3ad41eed

View File

@ -21,6 +21,7 @@ mysqld_ld_library_path=
flush_caches=0 flush_caches=0
numa_interleave=0 numa_interleave=0
unsafe_my_cnf=0 unsafe_my_cnf=0
defaults_group_suffix=
# Initial logging status: error log is not open, and not using syslog # Initial logging status: error log is not open, and not using syslog
logging=init logging=init
@ -265,6 +266,8 @@ parse_arguments() {
--flush-caches) flush_caches=1 ;; --flush-caches) flush_caches=1 ;;
--numa-interleave) numa_interleave=1 ;; --numa-interleave) numa_interleave=1 ;;
--defaults-group-suffix=*) defaults_group_suffix="$arg" ;;
--help) usage ;; --help) usage ;;
*) *)
@ -845,7 +848,7 @@ then
exit 1 exit 1
fi fi
for i in "$ledir/$MYSQLD" "$defaults" "--basedir=$MY_BASEDIR_VERSION" \ for i in "$ledir/$MYSQLD" "$defaults_group_suffix" "$defaults" "--basedir=$MY_BASEDIR_VERSION" \
"--datadir=$DATADIR" "--plugin-dir=$plugin_dir" "$USER_OPTION" "--datadir=$DATADIR" "--plugin-dir=$plugin_dir" "$USER_OPTION"
do do
cmd="$cmd "`shell_quote_string "$i"` cmd="$cmd "`shell_quote_string "$i"`