~ubuntu-branches/ubuntu/trusty/mysql-5.6/trusty

« back to all changes in this revision

Viewing changes to storage/ndb/demos/run_demo1-SS.sh

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-02-12 11:54:27 UTC
  • Revision ID: package-import@ubuntu.com-20140212115427-oq6tfsqxl1wuwehi
Tags: upstream-5.6.15
ImportĀ upstreamĀ versionĀ 5.6.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
if [ -z "$MYSQLCLUSTER_TOP" ]; then
 
3
  echo "MYSQLCLUSTER_TOP not set"
 
4
  exit 1
 
5
fi
 
6
if [ -d "$MYSQLCLUSTER_TOP/ndb" ]; then :; else
 
7
  echo "$MYSQLCLUSTER_TOP/ndb directory does not exist"
 
8
  exit 1
 
9
fi
 
10
NDB_CONNECTSTRING=
 
11
NDB_HOME=
 
12
NDB_DEMO=$MYSQLCLUSTER_TOP/ndb/demos/1-node-SS
 
13
 
 
14
NDB_PORT_BASE="101"
 
15
NDB_REP_ID="4"
 
16
NDB_EXTREP_ID="5"
 
17
 
 
18
NDB_DEMO_NAME="Demo 1-SS MySQL Cluster"
 
19
NDB_HOST1=$1
 
20
NDB_HOST2=$2
 
21
if [ -z "$NDB_HOST1" ]; then
 
22
  NDB_HOST1=localhost
 
23
fi
 
24
if [ -z "$NDB_HOST2" ]; then
 
25
  NDB_HOST2=localhost
 
26
fi
 
27
NDB_HOST=$NDB_HOST2
 
28
NDB_EXTHOST=$NDB_HOST1
 
29
 
 
30
source $MYSQLCLUSTER_TOP/ndb/demos/run_demo1-PS-SS_common.sh