<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Fernando Ipar &#187; Sandbox</title>
	<atom:link href="http://fernandoipar.com/tag/sandbox/feed/" rel="self" type="application/rss+xml" />
	<link>http://fernandoipar.com</link>
	<description>I love mankind! Its people I can&#039;t stand!</description>
	<lastBuildDate>Wed, 07 Jul 2010 04:10:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Using MySQL sandbox for testing</title>
		<link>http://fernandoipar.com/2009/04/02/using-mysql-sandbox-for-testing/</link>
		<comments>http://fernandoipar.com/2009/04/02/using-mysql-sandbox-for-testing/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 23:28:05 +0000</pubDate>
		<dc:creator>fernando</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Sandbox]]></category>
		<category><![CDATA[Testing]]></category>

		<guid isPermaLink="false">http://fernandoipar.com/?p=136</guid>
		<description><![CDATA[MySQL Sandbox is a great tool for quickly deploying test MySQL instances, particularly if your daily work involves diagnosing problems across multiple MySQL versions. Once you&#8217;ve downloaded it, it needs no installation. Just have a few MySQL binary releases at hand, and begin creating sandboxes in just a few seconds: ./make_sandbox mysql-5.0.77-linux-x86_64-glibc23.tar.gz or ./make_sandbox mysql-5.1.32-linux-x86_64-glibc23.tar.gz [...]


Related posts:<ol><li><a href='http://fernandoipar.com/2009/04/06/using-mysql-proxy-to-benchmark-query-performance/' rel='bookmark' title='Permanent Link: Using MySQL Proxy to benchmark query performance'>Using MySQL Proxy to benchmark query performance</a> <small>By transparently sitting between client and server on each request,...</small></li><li><a href='http://fernandoipar.com/2009/08/12/indexing-text-columns-in-mysql/' rel='bookmark' title='Permanent Link: Indexing text columns in MySQL'>Indexing text columns in MySQL</a> <small>This time, I&#8217;m talking about indexes for string typed columns....</small></li><li><a href='http://fernandoipar.com/2009/04/15/updated-mysql-proxy-benchmarking-script-for-proxy-07/' rel='bookmark' title='Permanent Link: Updated mysql-proxy benchmarking script (for proxy 0.7)'>Updated mysql-proxy benchmarking script (for proxy 0.7)</a> <small>My previous post contained a lua script for MySQL proxy...</small></li></ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><a title="MySQL Sandbox" href="https://launchpad.net/mysql-sandbox">MySQL Sandbox</a> is a great tool for quickly deploying test MySQL instances, particularly if your daily work involves diagnosing problems across multiple MySQL versions.</p>
<p>Once you&#8217;ve downloaded it, it needs no installation. Just have a few MySQL binary releases at hand, and begin creating sandboxes in just a few seconds:</p>
<blockquote><p>./make_sandbox mysql-5.0.77-linux-x86_64-glibc23.tar.gz</p></blockquote>
<p>or</p>
<blockquote><p>./make_sandbox mysql-5.1.32-linux-x86_64-glibc23.tar.gz</p></blockquote>
<p>Pretty simple, huh?</p>
<p>Suppose you have a parallel build around, say, 5.0.77-percona-highperf. The default syntax won&#8217;t work if you&#8217;ve already created a 5.0.77 sandbox, since Sandbox will use &#8217;5.0.77&#8242; as the sandbox dir. In this case, you&#8217;ll need to manually specify a directory name:</p>
<blockquote><p>./make_sandbox mysql-5.0.77-percona-highperf-b13.tar.gz -d msb_percona_5_0_77</p></blockquote>
<p>Fortunately, all Sandbox commands have a &#8211;help option that provide helpful screens to let you know how you can modify their default behavior. In this particular case, you&#8217;ll actually need to access the help for low_level_make_sandbox, since that&#8217;s the script that&#8217;s eventually called.</p>
<p>Once a sandbox is created, using it is real simple. Just cd to it&#8217;s directory (by default, $HOME/sandboxes/$SANDBOXDIR) and issue one of the following commands:</p>
<ul>
<li>./start</li>
<li>./stop</li>
<li>./restart</li>
<li>./use (this invokes the sandbox&#8217;s mysql client with appropriate parameters. you can append your own parameters too, i.e., a database name)</li>
<li>./clear (stops the server and removes everything from the data directory, leaving you ready to start from scratch)</li>
</ul>
<p>It even includes an option to create replication sandboxes, with a master node and two slaves. This is by default, but you can also create multiple sandboxes of the same version and configure replication yourself.</p>
<p>Here&#8217;s an example:</p>
<blockquote><p>./make_replication_sandbox mysql-5.0.77-linux-x86_64-glibc23.tar.gz</p></blockquote>
<p>So there it is, once again, <a title="MySQL Sandbox" href="https://launchpad.net/mysql-sandbox">download it</a> and start having fun!</p>


<p>Related posts:<ol><li><a href='http://fernandoipar.com/2009/04/06/using-mysql-proxy-to-benchmark-query-performance/' rel='bookmark' title='Permanent Link: Using MySQL Proxy to benchmark query performance'>Using MySQL Proxy to benchmark query performance</a> <small>By transparently sitting between client and server on each request,...</small></li><li><a href='http://fernandoipar.com/2009/08/12/indexing-text-columns-in-mysql/' rel='bookmark' title='Permanent Link: Indexing text columns in MySQL'>Indexing text columns in MySQL</a> <small>This time, I&#8217;m talking about indexes for string typed columns....</small></li><li><a href='http://fernandoipar.com/2009/04/15/updated-mysql-proxy-benchmarking-script-for-proxy-07/' rel='bookmark' title='Permanent Link: Updated mysql-proxy benchmarking script (for proxy 0.7)'>Updated mysql-proxy benchmarking script (for proxy 0.7)</a> <small>My previous post contained a lua script for MySQL proxy...</small></li></ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://fernandoipar.com/2009/04/02/using-mysql-sandbox-for-testing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
