summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorunknown <jimw@mysql.com>2005-03-11 11:08:04 -0800
committerunknown <jimw@mysql.com>2005-03-11 11:08:04 -0800
commit81647853a13a016a5cfffdfe9d171733f52fa16d (patch)
tree8339c8e43b458ede0b55aff85638544aee572277 /scripts
parentbefe4fa99f377292ed7dcc1e47e4052d7204e488 (diff)
parente1977075445232633a2d71f179daf393e2aa53ea (diff)
downloadmariadb-git-81647853a13a016a5cfffdfe9d171733f52fa16d.tar.gz
Merge mysql.com:/home/jimw/my/mysql-4.1-8513
into mysql.com:/home/jimw/my/mysql-4.1-clean
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mysqld_safe.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/mysqld_safe.sh b/scripts/mysqld_safe.sh
index f6b0169d230..308db270828 100644
--- a/scripts/mysqld_safe.sh
+++ b/scripts/mysqld_safe.sh
@@ -150,6 +150,15 @@ parse_arguments `$print_defaults $defaults --loose-verbose mysqld_safe safe_mysq
parse_arguments PICK-ARGS-FROM-ARGV "$@"
safe_mysql_unix_port=${mysql_unix_port:-${MYSQL_UNIX_PORT:-@MYSQL_UNIX_ADDR@}}
+# Make sure that directory for $safe_mysql_unix_port exists
+mysql_unix_port_dir=`dirname $safe_mysql_unix_port`
+if [ ! -d $mysql_unix_port_dir ]
+then
+ mkdir $mysql_unix_port_dir
+ chown $user $mysql_unix_port_dir
+fi
+
+
if test ! -x $ledir/$MYSQLD
then
echo "The file $ledir/$MYSQLD doesn't exist or is not executable"