If you have max 15 minutes and want to try out MySQL Replication (geo redundancy) between two Clusters on your localhost (only tested on Linux) or on vmware then this
Sandbox is for you.
Here is what you have to do:
- Go to www.severalnines.com/sandbox
- Create a master cluster:
I have used the ports 1186 (for the management server) and 3306 and 3307 for the mysql servers).

- Enter the email address and a set of scripts to install cluster will be sent.
- Create a slave cluster:
Make sure you use different ports for the slave cluster. I have used the ports 1187 (for the management server) and 3310 and 3311 for the mysql servers).

Master Cluster:
tar xvfz mysqlcluster-63-master.tar.gzcd mysqlcluster-63-mastercd scriptsIf you have the gnu tool chain (g++/gcc/make) you can build from source:
sh download-and-compile.shsh dist-src-build.shor if you
prefer pre-built binaries (you must chose the "non-rpm" (i.e. the .tar.gz) and the mysql-...tar.gz must not be in /tmp !!):
sh dist-tgz mysql-cluster-gpl-6.3.17-linux-i686-glibc23.tar.gz Then we have to setup the mysql servers and start the cluster:
sh bootstrap.shsh start-cluster-initial.shConnect the mysql client to the mysql server:
sh mysqlclient-1.shGRANT REPLICATION SLAVE ON *.* TO 'repl'@'localhost' IDENTIFIED BY 'password';We don't want the GRANT to be replicated (and clear out old stuff in the binlogs that we might have):
RESET MASTER;and once more (on both mysql servers since grants done locally on each mysql server)..
sh mysqlclient-2.shGRANT REPLICATION SLAVE ON *.* TO 'repl'@'localhost' IDENTIFIED BY 'password';RESET MASTER;Slave Cluster:
tar xvfz mysqlcluster-63-slave.tar.gzcd mysqlcluster-63-slavecd scriptsIf you have the gnu tool chain (g++/gcc/make) you can build from source:
sh download-and-compile.shsh dist-src-build.shor if you
prefer pre-built binaries (you must chose the "non-rpm" (i.e. the .tar.gz) and the mysql-...tar.gz must not be in /tmp !!):
sh dist-tgz mysql-cluster-gpl-6.3.17-linux-i686-glibc23.tar.gz Then we have to setup the mysql servers and start the cluster:
sh bootstrap.shsh start-cluster-initial.shConnect the mysql client to the mysql server:
sh mysqlclient-1.shCHANGE MASTER TO master_host='localhost', master_port=3306, master_user='repl', master_password='password';START SLAVE;SHOW SLAVE STATUS\GCreate a table on the master:
sh mysqlclient-1.shuse testCREATE TABLE t1 (a INTEGER PRIMARY KEY) ENGINE=NDB;INSERT INTO t1(a) VALUES (1);Go to the slave:
sh mysqlclient-1.shuse testSELECT * FROM t1;Read more on
replication and learn how to do link failovers etc.