summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrantal <rantal5030@gmail.com>2019-09-16 22:36:19 +0300
committerVicențiu Ciorbaru <vicentiu@mariadb.org>2019-09-21 01:53:40 +0300
commitfd3ad41eed70e201dc6fef4d302d9e748e478358 (patch)
treee8029afcc3b7f7d5dd28a0694afea3a486d70ed5
parent13274032af7480c6b99e9df3502dfb852116080e (diff)
downloadmariadb-git-fd3ad41eed70e201dc6fef4d302d9e748e478358.tar.gz
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
-rw-r--r--scripts/mysqld_safe.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/mysqld_safe.sh b/scripts/mysqld_safe.sh
index 46b37689093..08a6a2b83f0 100644
--- a/scripts/mysqld_safe.sh
+++ b/scripts/mysqld_safe.sh
@@ -21,6 +21,7 @@ mysqld_ld_library_path=
flush_caches=0
numa_interleave=0
unsafe_my_cnf=0
+defaults_group_suffix=
# Initial logging status: error log is not open, and not using syslog
logging=init
@@ -265,6 +266,8 @@ parse_arguments() {
--flush-caches) flush_caches=1 ;;
--numa-interleave) numa_interleave=1 ;;
+ --defaults-group-suffix=*) defaults_group_suffix="$arg" ;;
+
--help) usage ;;
*)
@@ -845,7 +848,7 @@ then
exit 1
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"
do
cmd="$cmd "`shell_quote_string "$i"`