summaryrefslogtreecommitdiff
path: root/support-files/mysql.server.sh
diff options
context:
space:
mode:
authorunknown <jani@ua141d10.elisa.omakaista.fi>2005-02-17 20:20:48 +0200
committerunknown <jani@ua141d10.elisa.omakaista.fi>2005-02-17 20:20:48 +0200
commit307c2140fd8caa1430323752608c1169e07926f4 (patch)
treedb3b15d9ee4126defeb267d8743fff1a594e814e /support-files/mysql.server.sh
parente0875776de3675a799731bfdd1c73cd0cf052d03 (diff)
downloadmariadb-git-307c2140fd8caa1430323752608c1169e07926f4.tar.gz
Fixed Bug#7873.
Diffstat (limited to 'support-files/mysql.server.sh')
-rw-r--r--support-files/mysql.server.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/support-files/mysql.server.sh b/support-files/mysql.server.sh
index 849f913bf6c..892de3001d1 100644
--- a/support-files/mysql.server.sh
+++ b/support-files/mysql.server.sh
@@ -39,17 +39,20 @@
# If you want to affect other MySQL variables, you should make your changes
# in the /etc/my.cnf, ~/.my.cnf or other MySQL configuration files.
+# If you change base dir, you must also change datadir
+
basedir=
+datadir=
# The following variables are only set for letting mysql.server find things.
# Set some defaults
-datadir=@localstatedir@
pid_file=
if test -z "$basedir"
then
basedir=@prefix@
bindir=@bindir@
+ datadir=@localstatedir@
else
bindir="$basedir/bin"
fi