
The Sandboxes are intended for developers to be installed on localhost or e.g VirtualBox and VMWare. The Sandboxes are easy to install and installs in a single directory, and consists of two data nodes and two mysql servers.
| Pre-packaged | Installation | Support |
MySQL Cluster Sandbox let's you get going within seconds. The packages contains a number of scripts to install, setup, and run MySQL CLuster and are intended for localhost installation only. They can be used for evaluation and development, as well as getting familiar with MySQL Cluster. Disk intensive, i.e write intensive apps, should use a real distributed setup. Otherwise there is a big chance that you will overload the disk subsystem. The data nodes will complain about "Redo logs overloaded" or something about "Redobuffer". If you want to have a real distributed setup, please use the configurator!
The packages comes with:
All processes are running on localhost! Please read the README to see the directory structure of the packages.
You can install the packages as any user! It will be self-contained in one single directory! You can also chose ports so that you can test with several versions, or also setup replication between two clusters on localhost!
Choose if you want to use the Pre-packaged configurations (fixed ports) or create a Custom configuration where you set the ports yourself.
Whatever you chose the scripts can automatically download and compile the latest source code release, or you can download the latest binary release from dev.mysql.com/downloads/cluster
Follow the instructions further down.
If you don't want to follow the three steps above to prepare your Mac, then you need to use the custom sandbox for now. Make sure you tick the 'MacOS X?' checkbox. You only have to press the "Send me the config package.." after having entered a valid email address, and the sandbox will be sent to you. In a short time, i will generate ready-made sandboxes.
You need to use the custom sandbox for now. Make sure you tick the 'Mac OS X?' checkbox. You only have to press the "Send me the config package.." after having entered a valid email address, and the sandbox will be sent to you. In a short time, i will generate ready-made sandboxes. Binaries are downloaded from dev.mysql.com and then run
./dist-tgz.sh mysql-cluster-gpl-7.1.9a-osx10.6-x86_64.tar.gz
where
mysql-cluster-gpl-7.1.9a-osx10.6-x86_64.tar.gz
is the binary tar.gz you have downloaded from mysql. If you want to build from source, you also need to download apple xcode and wget.
Try out the Custom sandbox for more tunables.
You can choose from three types of Sandboxes (no replication, master cluster and slave cluster) and also thee different sizes:
The following ports are used in the packages (see below for details): 1186 and 1187 (management server), 3306, 3307, 3310, 3311 (mysql servers).
| package | ports used | download | extra info | cluster version |
| no replication | 1186, 3306, 3307 | mysqlcluster-71-small.tar.gz | DataMemory=256M | mysql-cluster-gpl-7.1.14 |
| master cluster | 1186, 3306, 3307 | mysqlcluster-71-small-master.tar.gz | DataMemory=256M | mysql-cluster-gpl-7.1.14 |
| slave cluster | 1187, 3310, 3311 | mysqlcluster-71-small-slave.tar.gz | DataMemory=256M | mysql-cluster-gpl-7.1.14 |
| package | ports used | download | extra info | cluster version |
| no replication | 1186, 3306, 3307 | mysqlcluster-71-medium.tar.gz | DataMemory=1024M | mysql-cluster-gpl-7.1.14 |
| master cluster | 1186, 3306, 3307 | mysqlcluster-71-medium-master.tar.gz | DataMemory=1024M | mysql-cluster-gpl-7.1.14 |
| slave cluster | 1187, 3310, 3311 | mysqlcluster-71-medium-slave.tar.gz | DataMemory=1024M | mysql-cluster-gpl-7.1.14 |
| package | ports used | download | extra info | cluster version |
| no replication | 1186, 3306, 3307 | mysqlcluster-71-large.tar.gz | DataMemory=2560M | mysql-cluster-gpl-7.1.14 |
| master cluster | 1186, 3306, 3307 | mysqlcluster-71-large-master.tar.gz | DataMemory=2560M | mysql-cluster-gpl-7.1.14 |
| slave cluster | 1187, 3310, 3311 | mysqlcluster-71-large-slave.tar.gz | DataMemory=2560M | mysql-cluster-gpl-7.1.14 |
Personally I recommend building from source since you get the latest version of MySQL Cluster. I don't update the scripts with a new Cluster version the same day as it is released, but wait usually one week so that potential regression problems have been spotted by someone else.
You must have installed:
apt-get install gcc g++ or yum install gcc.x86_64
apt-get install wget or yum install wget.x86_64
apt-get install libncurses5-dev or yum install ncurses-devel.x86_64
Then run the following four scripts
mysql -S /tmp/mysql.sock.3306
does also work, unless you use a slave sandbox, then
mysql -S /tmp/mysql.sock.3310
mysql -S /tmp/mysql.sock.3306
does also work, unless you use a slave sandbox, then
mysql -S /tmp/mysql.sock.3311
Error loading shared libraries - LD_LIBRARY_PATH not set
If you get the something like the following error message when starting the mysql client (or any other mysql tool):
/usr/local/mysql/mysql/bin/mysql: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory
Then you need to set the
LD_LIBRARY_PATH
E.g: export
LD_LIBRARY_PATH=/usr/local/mysql/mysql/lib/mysql:$LD_LIBRARY_PATH
or
export LD_LIBRARY_PATH=/usr/local/mysql/lib/mysql:$LD_LIBRARY_PATH
or
export LD_LIBRARY_PATH=/usr/local/mysql/mysql/lib/:$LD_LIBRARY_PATH
or
export LD_LIBRARY_PATH=/usr/local/mysql/lib/:$LD_LIBRARY_PATH
are common LD_LIBRARY_PATHSs
If you get the following error:
[MgmSrvr] ERROR -- Error opening '/.../mysqlcluster-71/scripts/../config/config.ini', error: 2, No such file or directory
Then you have forgot to run:
sh bootstrap.sh
Make sure you have run the download, dist and bootstrap scripts.
Let us know if you have issues with the scripts by mailing support at severalnines dot com