mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
scripts/mysqld_safe.sh
Only add --defaults-extra-file=$DATADIR/my.cnf if $DATADIR/my.cnf is readable. scripts/mysqld_safe.sh: Only add --defaults-extra-file=$DATADIR/my.cnf if $DATADIR/my.cnf is readable. Without this patch, running mysqld_safe gives: Could not open required defaults file: /opt/home/tim/m/50/m/data/my.cnf Fatal error in defaults handling. Program aborted Could not open required defaults file: /opt/home/tim/m/50/m/data/my.cnf Fatal error in defaults handling. Program aborted These errors are printed by my_print_defaults; mysqld also encounters the same problem and quits.
This commit is contained in:
@ -114,7 +114,7 @@ then
|
||||
MY_BASEDIR_VERSION=$MY_PWD # Where bin, share and data are
|
||||
ledir=$MY_BASEDIR_VERSION/bin # Where mysqld is
|
||||
DATADIR=$MY_BASEDIR_VERSION/data
|
||||
if test -z "$defaults"
|
||||
if test -z "$defaults" -a -r "$DATADIR/my.cnf"
|
||||
then
|
||||
defaults="--defaults-extra-file=$DATADIR/my.cnf"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user