Commit 8a77c6f7 authored by tim@siva.hindu.god's avatar tim@siva.hindu.god

scripts/mysqld_safe.sh

    Only add --defaults-extra-file=$DATADIR/my.cnf if $DATADIR/my.cnf is readable.
parent f8cb0064
...@@ -114,7 +114,7 @@ then ...@@ -114,7 +114,7 @@ then
MY_BASEDIR_VERSION=$MY_PWD # Where bin, share and data are MY_BASEDIR_VERSION=$MY_PWD # Where bin, share and data are
ledir=$MY_BASEDIR_VERSION/bin # Where mysqld is ledir=$MY_BASEDIR_VERSION/bin # Where mysqld is
DATADIR=$MY_BASEDIR_VERSION/data DATADIR=$MY_BASEDIR_VERSION/data
if test -z "$defaults" if test -z "$defaults" -a -r "$DATADIR/my.cnf"
then then
defaults="--defaults-extra-file=$DATADIR/my.cnf" defaults="--defaults-extra-file=$DATADIR/my.cnf"
fi fi
......
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