The MySQL Sandbox

Copyright (C) 2006 Giuseppe Maxia, Stardata s.r.l.


This package is a sandbox for testing features under MySQL from 3.23 to 5.1. It will install one node under your home directory, and it will provide some useful commands to start, use and stop this sandbox.

With this package you can play with MySQL 5.x without need of using other computers. The server installed in the sandbox use non-standard ports and sockets, so that they won't interfere with existing MYSQL installations.

NEW! a detailed Tutorial is now available



Unpack the necessary MySQL binaries somewhere under your home directory, and give it a convenient name (e.g. $HOME/binaries/5.1.10 )

Download the latest MySQL Sandbox package.

Unpack the distribution package in one empty directory and run the install script. For example:

$ ./ -f sandbox.conf --basedir=$HOME/binaries/5.1.10

You can create the data directory in three ways:

If needed, modify sandbox.conf to change default installation options.

To see the available options, run ./ --help


Change directory to the newly created one (default: $HOME/mysql_sandbox)

Start the server


Stop the server


use a client with the sandbox server:



There are 2 database users installed by default:

 |  user name      | password    | privileges                    |
 |  root@localhost | datacharmer | all on *.* with grant option  |
 |  datacharmer@%  | datacharmer | all on *.*                    |


(note: ports can be overriden using -p option during install)

 | port   | socket                      |
 |  3310  | /tmp/mysql_sandbox3310.sock |


This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA