File tree Expand file tree Collapse file tree 1 file changed +3
-17
lines changed Expand file tree Collapse file tree 1 file changed +3
-17
lines changed Original file line number Diff line number Diff line change 550
550
if test -d $MY_BASEDIR_VERSION /data/mysql
551
551
then
552
552
DATADIR=$MY_BASEDIR_VERSION /data
553
- if test -z " $defaults " -a -r " $DATADIR /my.cnf"
554
- then
555
- defaults=" --defaults-extra-file=$DATADIR /my.cnf"
556
- fi
557
553
# Next try where the source installs put it
558
554
elif test -d $MY_BASEDIR_VERSION /var/mysql
559
555
then
565
561
566
562
if test -z " $MYSQL_HOME "
567
563
then
568
- if test -r " $MY_BASEDIR_VERSION /my.cnf" && test -r " $DATADIR /my.cnf"
569
- then
570
- log_error " WARNING: Found two instances of my.cnf -
571
- $MY_BASEDIR_VERSION /my.cnf and
572
- $DATADIR /my.cnf
573
- IGNORING $DATADIR /my.cnf"
574
-
575
- MYSQL_HOME=$MY_BASEDIR_VERSION
576
- elif test -r " $DATADIR /my.cnf"
564
+ if test -r " $DATADIR /my.cnf"
577
565
then
578
566
log_error " WARNING: Found $DATADIR /my.cnf
579
- The data directory is a deprecated location for my.cnf, please move it to
567
+ The data directory is not a valid location for my.cnf, please move it to
580
568
$MY_BASEDIR_VERSION /my.cnf"
581
- MYSQL_HOME=$DATADIR
582
- else
583
- MYSQL_HOME=$MY_BASEDIR_VERSION
584
569
fi
570
+ MYSQL_HOME=$MY_BASEDIR_VERSION
585
571
fi
586
572
export MYSQL_HOME
587
573
You can’t perform that action at this time.
0 commit comments