summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorunknown <hery.ramilison@oracle.com>2011-11-17 09:13:43 +0100
committerBuild Team <MYSQL-RE_WW@oracle.com>2011-11-17 09:13:43 +0100
commite36692d0c2fdfb70d1af530232a7f4ac4485e9df (patch)
treeb7f528228411959a0645e56a142807a4ba6b6bf0 /scripts
parent93773656e8934439a5c7a320d3eabb0c02a3c947 (diff)
downloadmariadb-git-e36692d0c2fdfb70d1af530232a7f4ac4485e9df.tar.gz
fix for bug 11748060/34981
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mysqld_safe.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/mysqld_safe.sh b/scripts/mysqld_safe.sh
index a537bf27aad..0d2045a65a6 100644
--- a/scripts/mysqld_safe.sh
+++ b/scripts/mysqld_safe.sh
@@ -464,6 +464,9 @@ export MYSQL_HOME
if test -x "$MY_BASEDIR_VERSION/bin/my_print_defaults"
then
print_defaults="$MY_BASEDIR_VERSION/bin/my_print_defaults"
+elif test -x `dirname $0`/my_print_defaults
+then
+ print_defaults="`dirname $0`/my_print_defaults"
elif test -x ./bin/my_print_defaults
then
print_defaults="./bin/my_print_defaults"