diff options
author | serg@serg.mylan <> | 2004-06-10 13:56:58 +0200 |
---|---|---|
committer | serg@serg.mylan <> | 2004-06-10 13:56:58 +0200 |
commit | 56478093505dd4af1170a46d159033eb0cb9d359 (patch) | |
tree | 93be7087e5e1f89f390519ac3f41a10a338bd3c0 /scripts/mysqld_safe.sh | |
parent | 7fb04c4f5faacdfa0040f32a100a093af82dd00f (diff) | |
download | mariadb-git-56478093505dd4af1170a46d159033eb0cb9d359.tar.gz |
warn about multiple mysqld --user parameters only if their arguments differ
Diffstat (limited to 'scripts/mysqld_safe.sh')
-rw-r--r-- | scripts/mysqld_safe.sh | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/scripts/mysqld_safe.sh b/scripts/mysqld_safe.sh index 779438e75c3..7b77bf449cd 100644 --- a/scripts/mysqld_safe.sh +++ b/scripts/mysqld_safe.sh @@ -43,13 +43,7 @@ parse_arguments() { --basedir=*) MY_BASEDIR_VERSION=`echo "$arg" | sed -e "s;--basedir=;;"` ;; --datadir=*) DATADIR=`echo "$arg" | sed -e "s;--datadir=;;"` ;; --pid-file=*) pid_file=`echo "$arg" | sed -e "s;--pid-file=;;"` ;; - --user=*) - if test $SET_USER -eq 0 - then - user=`echo "$arg" | sed -e "s;--[^=]*=;;"` - fi - SET_USER=1 - ;; + --user=*) user=`echo "$arg" | sed -e "s;--[^=]*=;;"` ; SET_USER=1 ;; # these two might have been set in a [mysqld_safe] section of my.cnf # they are added to mysqld command line to override settings from my.cnf |