<?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>Stereo Interactive &#38; Design - Ann Arbor, Michigan Web Design &#187; MySQL</title>
	<atom:link href="http://stereointeractive.com/blog/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://stereointeractive.com/blog</link>
	<description>Development Blog</description>
	<lastBuildDate>Fri, 04 Nov 2011 03:46:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>MySQL Emergency</title>
		<link>http://stereointeractive.com/blog/2010/05/09/mysql-emergency/</link>
		<comments>http://stereointeractive.com/blog/2010/05/09/mysql-emergency/#comments</comments>
		<pubDate>Sun, 09 May 2010 17:40:57 +0000</pubDate>
		<dc:creator>Scott Meves</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://stereointeractive.com/blog/?p=521</guid>
		<description><![CDATA[My friends Lawrence Krubner and Darren Hoyt just launched MySql Emergency. It&#8217;s a site where you can post urgent MySql questions and post a small bounty ($4 or more) for a good solution to your problem. MySql Emergency is problem-solving community for MySql, ideal for users seeking quick, succinct answers they can&#8217;t find in any [...]]]></description>
			<content:encoded><![CDATA[<p>My friends Lawrence Krubner and Darren Hoyt just launched<a href="http://mysqlemergency.com"> MySql Emergency</a>. It&#8217;s a site where you can post urgent MySql questions and post a small bounty ($4 or more) for a good solution to your problem. </p>
<blockquote><p>MySql Emergency is problem-solving community for MySql, ideal for users seeking quick, succinct answers they can&#8217;t find in any MySql forums. MySql Emergency is also great for established MySql developers who want to help problem-solve and be paid fairly for their efforts.</p></blockquote>
<p>Sometimes Google just doesn&#8217;t cut it. Sometimes you want quick, succinct advice specific to your problem. MySql Emergency lets you lean on the knowledge of the masses and still get personalized advice.</p>
<p>If you think you know a thing or two about MySql and might want to make some quick cash on the side, or if you have a question for the community, you can register for free. I&#8217;ve earned more than a round of beers by spending just a few minutes sharing tips to fellow developers in need. </p>
<p>If you <a href="http://www.mysqlemergency.com/affiliates/register/name/stereoscott">register using this affiliate link</a> I might be able to get them to buy me another round <img src='http://stereointeractive.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://stereointeractive.com/blog/2010/05/09/mysql-emergency/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL alter table drop constraint&#8230;</title>
		<link>http://stereointeractive.com/blog/2010/03/04/mysql-alter-table-drop-constraint/</link>
		<comments>http://stereointeractive.com/blog/2010/03/04/mysql-alter-table-drop-constraint/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 01:31:38 +0000</pubDate>
		<dc:creator>Scott Meves</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://stereointeractive.com/blog/?p=451</guid>
		<description><![CDATA[I often forget how to modify a MySQL table to drop/add foreign key constraints. I usually think it&#8217;s: ALTER TABLE `tablename` DROP CONSTRAINT`my_FK_1` The proper syntax is &#8220;DROP FOREIGN KEY&#8221;. I typically use it like this: ALTER TABLE `tablename` DROP FOREIGN KEY `my_FK_1`, ADD CONSTRAINT `my_new_FK` FOREIGN KEY &#40;`column_in_this_table`&#41; REFERENCES `other_table` &#40;`other_table_pk_column`&#41; ON DELETE SET [...]]]></description>
			<content:encoded><![CDATA[<p>I often forget how to modify a MySQL table to drop/add foreign key constraints. I usually think it&#8217;s: <span id="more-451"></span></p>

<div class="wp_syntax"><div class="code"><pre class="sql"><span class="kw1">ALTER</span> <span class="kw1">TABLE</span> <span class="st0">`tablename`</span> 
<span class="kw1">DROP</span> <span class="kw1">CONSTRAINT</span><span class="st0">`my_FK_1`</span></pre></div></div>

<p>The proper syntax is &#8220;DROP FOREIGN KEY&#8221;. I typically use it like this:</p>

<div class="wp_syntax"><div class="code"><pre class="sql"><span class="kw1">ALTER</span> <span class="kw1">TABLE</span> <span class="st0">`tablename`</span>
<span class="kw1">DROP</span> <span class="kw1">FOREIGN</span> <span class="kw1">KEY</span> <span class="st0">`my_FK_1`</span><span class="sy0">,</span>
<span class="kw1">ADD</span> <span class="kw1">CONSTRAINT</span> <span class="st0">`my_new_FK`</span>
	<span class="kw1">FOREIGN</span> <span class="kw1">KEY</span> <span class="br0">&#40;</span><span class="st0">`column_in_this_table`</span><span class="br0">&#41;</span>
	<span class="kw1">REFERENCES</span> <span class="st0">`other_table`</span> <span class="br0">&#40;</span><span class="st0">`other_table_pk_column`</span><span class="br0">&#41;</span>
	<span class="kw1">ON</span> <span class="kw1">DELETE</span> <span class="kw1">SET</span> <span class="kw1">NULL</span></pre></div></div>

<p>via <a href='http://dev.mysql.com/doc/refman/5.1/en/alter-table.html'>MySQL :: MySQL 5.1 Reference Manual :: 12.1.7 ALTER TABLE Syntax</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://stereointeractive.com/blog/2010/03/04/mysql-alter-table-drop-constraint/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>New version of Sequel Pro released</title>
		<link>http://stereointeractive.com/blog/2009/08/12/new-version-of-sequel-pro-released/</link>
		<comments>http://stereointeractive.com/blog/2009/08/12/new-version-of-sequel-pro-released/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 18:45:13 +0000</pubDate>
		<dc:creator>Scott Meves</dc:creator>
				<category><![CDATA[OS X]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://stereointeractive.com/blog/?p=299</guid>
		<description><![CDATA[A new version of my favorite MySQL GUI has been released today. Check it out below. Release Notes &#8211; Sequel Pro.]]></description>
			<content:encoded><![CDATA[<p>A new version of my favorite MySQL GUI has been released today. Check it out below. </p>
<p><a href='http://www.sequelpro.com/release-notes.html'>Release Notes &#8211; Sequel Pro</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://stereointeractive.com/blog/2009/08/12/new-version-of-sequel-pro-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CocoaMySQL finally replaced with Sequel Pro</title>
		<link>http://stereointeractive.com/blog/2008/12/16/cocoamysql-finally-replaced-with-sequel-pro/</link>
		<comments>http://stereointeractive.com/blog/2008/12/16/cocoamysql-finally-replaced-with-sequel-pro/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 18:11:58 +0000</pubDate>
		<dc:creator>Scott Meves</dc:creator>
				<category><![CDATA[OS X]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://stereointeractive.com/blog/?p=125</guid>
		<description><![CDATA[As much as I love the command line for mysql, sometimes it&#8217;s nice to have a GUI to see your tables and columns visually or to do a data dump into CSV. On OS X I&#8217;ve always used CocoaMySQL, although it became apparent a long time ago that it was no longer under development. My [...]]]></description>
			<content:encoded><![CDATA[<p>As much as I love the command line for mysql, sometimes it&#8217;s nice to have a GUI to see your tables and columns visually or to do a data dump into CSV. On OS X I&#8217;ve always used CocoaMySQL, although it became apparent a long time ago that it was no longer under development. My brother recently told me about Sequel Pro, a &#8220;MySQL database management app for Mac OS X 10.5.&#8221;  You can download it <a href="http://www.mjmedia.com.au/sequel-pro.html">here</a>. So far it&#8217;s been working great. It truly does feel like CocoaMySQL with a Leopard interface. </p>
]]></content:encoded>
			<wfw:commentRss>http://stereointeractive.com/blog/2008/12/16/cocoamysql-finally-replaced-with-sequel-pro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to set up an SSH tunnel to a remote MySQL server</title>
		<link>http://stereointeractive.com/blog/2007/05/22/how-to-set-up-an-ssh-tunnel-to-your-mysql-server/</link>
		<comments>http://stereointeractive.com/blog/2007/05/22/how-to-set-up-an-ssh-tunnel-to-your-mysql-server/#comments</comments>
		<pubDate>Tue, 22 May 2007 16:20:15 +0000</pubDate>
		<dc:creator>Scott Meves</dc:creator>
				<category><![CDATA[OS X]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://blog.stereodevelopment.com/2007/05/22/how-to-set-up-an-ssh-tunnel-to-your-mysql-server/</guid>
		<description><![CDATA[If you have SSH access to your hosting account and want to use a GUI to view your MySQL databases on that remote server, you can set up an SSH tunnel and use a program like CocoaMySQL to manage your remote database. When it works, it can be really userful and is a nice break [...]]]></description>
			<content:encoded><![CDATA[<p>If you have SSH access to your hosting account and want to use a GUI to view your MySQL databases on that remote server, you can set up an SSH tunnel and use a program like <a href="http://cocoamysql.sourceforge.net/beta.php" title="cocoamysql">CocoaMySQL</a> to manage your remote database. When it works, it can be really userful and is a nice break from a web-based solution like phpMyAdmin.</p>
<p>First, make sure you can login to your host through SSH. After you are certain it works, you can open up a tunnel like this:</p>

<div class="wp_syntax"><div class="code"><pre class="php">ssh <span class="sy0">-</span>L <span class="nu0">3307</span><span class="sy0">:</span><span class="br0">&#91;</span>ip address of host<span class="br0">&#93;</span><span class="sy0">:</span><span class="nu0">3306</span> <span class="br0">&#91;</span>username<span class="br0">&#93;</span><span class="sy0">@</span><span class="br0">&#91;</span>ip address of host<span class="br0">&#93;</span> <span class="br0">&#91;</span><span class="sy0">-</span>p ssh portnumber<span class="br0">&#93;</span></pre></div></div>

<p>This opens up a tunnel from your local port 3307 to port 3306 on the remote host. Here is the example again with dummy data, using a non-standard ssh port 8022:</p>

<div class="wp_syntax"><div class="code"><pre class="php">ssh <span class="sy0">-</span>L <span class="nu0">3307</span><span class="sy0">:</span>192<span class="sy0">.</span>168<span class="sy0">.</span>2<span class="sy0">.</span>1<span class="sy0">:</span><span class="nu0">3306</span> user<span class="sy0">@</span>192<span class="sy0">.</span>168<span class="sy0">.</span>2<span class="sy0">.</span>1 <span class="sy0">-</span>p8022</pre></div></div>

<p>Once that connection is set up, fire up your MySQL GUI and connect to your local IP address (127.0.0.1) and specify the new port you set up in your tunnel (3307). Here is how it looks in CocoaMySQL.</p>
<p><img src="http://blog.stereodevelopment.com/wp-content/uploads/2007/05/picture-5.png" alt="CocoaMySQL Connection" /></p>
]]></content:encoded>
			<wfw:commentRss>http://stereointeractive.com/blog/2007/05/22/how-to-set-up-an-ssh-tunnel-to-your-mysql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL data dump</title>
		<link>http://stereointeractive.com/blog/2007/04/24/mysql-tidbits/</link>
		<comments>http://stereointeractive.com/blog/2007/04/24/mysql-tidbits/#comments</comments>
		<pubDate>Tue, 24 Apr 2007 15:02:11 +0000</pubDate>
		<dc:creator>Scott Meves</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Symfony]]></category>

		<guid isPermaLink="false">http://blog.stereodevelopment.com/?p=9</guid>
		<description><![CDATA[Although I love the batch process for loading data into the database within a symfony project, sometimes it can be a bit slow if the dataset is large. I find myself reinitializing the database often while I test, not because I change the schema or add new data, but because I want to reset the [...]]]></description>
			<content:encoded><![CDATA[<p>Although I love the batch process for loading data into the database within a symfony project, sometimes it can be a bit slow if the dataset is large. I find myself reinitializing the database often while I test, not because I change the schema or add new data, but because I want to reset the data back to its initial state. For this, I run the batch process once loading the data from the yaml fixtures, and then do an SQL dump that will run much, much faster from here on out.</p>

<div class="wp_syntax"><div class="code"><pre class="php">mysqldump <span class="sy0">-</span>e <span class="sy0">--</span>add<span class="sy0">-</span>drop<span class="sy0">-</span>table <span class="sy0">-</span>u root <span class="sy0">-</span>p db_name <span class="sy0">&gt;</span> <span class="sy0">./</span>data<span class="sy0">/</span>sql<span class="sy0">/</span>latestdump<span class="sy0">.</span>sql</pre></div></div>

<p>To repopulate the database with this dump file:</p>

<div class="wp_syntax"><div class="code"><pre class="php"><span class="kw3">mysql</span> <span class="sy0">-</span>u root <span class="sy0">-</span>p dbname <span class="sy0">&lt;</span> data<span class="sy0">/</span>sql<span class="sy0">/</span>latestdump<span class="sy0">.</span>sql</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://stereointeractive.com/blog/2007/04/24/mysql-tidbits/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

