diff options
Diffstat (limited to 'ndb/bin/mysqlcluster')
-rwxr-xr-x | ndb/bin/mysqlcluster | 11 |
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 $* |