summaryrefslogtreecommitdiff
path: root/ndb/bin/mysqlcluster
diff options
context:
space:
mode:
Diffstat (limited to 'ndb/bin/mysqlcluster')
-rwxr-xr-xndb/bin/mysqlcluster11
1 files changed, 11 insertions, 0 deletions
diff --git a/ndb/bin/mysqlcluster b/ndb/bin/mysqlcluster
new file mode 100755
index 00000000000..81fc7308942
--- /dev/null
+++ b/ndb/bin/mysqlcluster
@@ -0,0 +1,11 @@
+#!/bin/sh
+if [ -z "$MYSQLCLUSTER_TOP" -o ! -d "$MYSQLCLUSTER_TOP" ]; then
+ echo "MYSQLCLUSTER_TOP not set or directory does not exist"
+ exit 1
+fi
+if [ -z "$MYSQLCLUSTER_TOP" -o ! -d "$MYSQLCLUSTER_TOP/ndb" ]; then
+ echo "$MYSQLCLUSTER_TOP/ndb directory does not exist"
+ exit 1
+fi
+
+mysql --socket=$MYSQLCLUSTER_TOP/data/mysqlcluster.sock $*