Commit fd3ad41e authored by rantal's avatar rantal Committed by Vicențiu Ciorbaru

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
parent 13274032
...@@ -21,6 +21,7 @@ mysqld_ld_library_path= ...@@ -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() { ...@@ -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 ...@@ -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"`
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment