<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Magp.ie &#187; MySQL</title>
	<atom:link href="http://magp.ie/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://magp.ie</link>
	<description>A nest for the random, shiny, online tidbits I stumble across...</description>
	<lastBuildDate>Wed, 16 May 2012 09:40:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='magp.ie' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/061e340c5da13b5a41ae8016bee03aa8?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Magp.ie &#187; MySQL</title>
		<link>http://magp.ie</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://magp.ie/osd.xml" title="Magp.ie" />
	<atom:link rel='hub' href='http://magp.ie/?pushpress=hub'/>
		<item>
		<title>MySQL Cheat Sheet and Field Type Sizes</title>
		<link>http://magp.ie/2012/02/21/mysql-cheat-sheet/</link>
		<comments>http://magp.ie/2012/02/21/mysql-cheat-sheet/#comments</comments>
		<pubDate>Tue, 21 Feb 2012 20:42:12 +0000</pubDate>
		<dc:creator>Eoin</dc:creator>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[cheat sheet]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://magp.ie/?p=704</guid>
		<description><![CDATA[Handy MySQL cheat sheet from Neal Parikh Breakdown of MySQL Field Types with their corresponding sizes. Filed under: Guides Tagged: cheat sheet, MySQL<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magp.ie&#038;blog=11708208&#038;post=704&#038;subd=blogalhost&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Handy <a title="MySQL Cheat Sheet" href="http://www.nparikh.org/unix/mysql.php" target="_blank">MySQL cheat sheet from Neal Parikh</a></p>
<p>Breakdown of <a href="http://help.scibit.com/mascon/masconMySQL_Field_Types.html" target="_blank" title="MySQL Field Types">MySQL Field Types</a> with their corresponding sizes.</p>
<br />Filed under: <a href='http://magp.ie/category/guides/'>Guides</a> Tagged: <a href='http://magp.ie/tag/cheat-sheet/'>cheat sheet</a>, <a href='http://magp.ie/tag/mysql/'>MySQL</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/blogalhost.wordpress.com/704/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/blogalhost.wordpress.com/704/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/blogalhost.wordpress.com/704/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/blogalhost.wordpress.com/704/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/blogalhost.wordpress.com/704/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/blogalhost.wordpress.com/704/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/blogalhost.wordpress.com/704/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/blogalhost.wordpress.com/704/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/blogalhost.wordpress.com/704/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/blogalhost.wordpress.com/704/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/blogalhost.wordpress.com/704/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/blogalhost.wordpress.com/704/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/blogalhost.wordpress.com/704/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/blogalhost.wordpress.com/704/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magp.ie&#038;blog=11708208&#038;post=704&#038;subd=blogalhost&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://magp.ie/2012/02/21/mysql-cheat-sheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>53.734750 -8.989992</georss:point>
		<geo:lat>53.734750</geo:lat>
		<geo:long>-8.989992</geo:long>
		<media:content url="http://1.gravatar.com/avatar/72dd449e5e79e046c1c09ed8712b525a?s=96&#38;d=monsterid&#38;r=PG" medium="image">
			<media:title type="html">eoigal</media:title>
		</media:content>
	</item>
		<item>
		<title>How to SSH into remote database from Windows</title>
		<link>http://magp.ie/2010/01/30/ssh-windows/</link>
		<comments>http://magp.ie/2010/01/30/ssh-windows/#comments</comments>
		<pubDate>Sat, 30 Jan 2010 00:12:34 +0000</pubDate>
		<dc:creator>Eoin</dc:creator>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Port forwarding]]></category>
		<category><![CDATA[PuTTY]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://blogalhost.wordpress.com/?p=6</guid>
		<description><![CDATA[If you find yourself with a bust Mac and you have to fall back on your old &#8216;reliable&#8217; windows laptop. You need to connect to your development web server using SSH, where do you start&#8230; I&#8217;ll tell you where, Google, &#8230; <a href="http://magp.ie/2010/01/30/ssh-windows/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magp.ie&#038;blog=11708208&#038;post=6&#038;subd=blogalhost&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you find yourself with a bust Mac and you have to fall back on your old &#8216;reliable&#8217; windows laptop. You need to connect to your development web server using SSH, where do you start&#8230; I&#8217;ll tell you where, <a title="Help" href="http://google.com" target="_blank">Google</a>, or you may find this guide of some use.</p>
<p>So firstly, I need to set up PuTTY, a free and open source terminal emulator that will allow me to SSH into my remote web server.</p>
<p>Download PuTTY <a title="PuTTY Download" href="http://www.chiark.greenend.org.uk/~sgtatham/putty/" target="_blank">here</a>.</p>
<p>Once downloaded, I need to generate a public/private key to authenticate the SSH connection from my machine to the web server.</p>
<p>Use another tool &#8211; PuTTYGen to generate the keys for you.</p>
<p>Download PuTTYGen <a title="PuTTYGen Download" href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">here</a>.</p>
<p>Here&#8217;s a pretty straightforward <a title="Generate SSH Keys" href="http://www.howtoforge.com/ssh_key_based_logins_putty_p2" target="_blank">guide</a> that I cannot be arsed to repeat on how to create the key. One difference for me was we use DSA encryption.</p>
<p><strong>HANDY TIP:</strong> If you wish to use this key on a Mac (like I did once it was repaired) so that you can connect from either machine (windows or mac), then do the following.</p>
<p>Once you have your key created you need to export the key as an OpenSSL key and save it for later.</p>
<p><a href="http://blogalhost.files.wordpress.com/2010/01/export-openssh.gif"><img class="alignnone size-full wp-image-7" title="Export OpenSSH" src="http://blogalhost.files.wordpress.com/2010/01/export-openssh.gif?w=450" alt=""   /></a></p>
<p>On with the guide&#8230;<br />
<span id="more-6"></span><br />
By now you should have your keys, your public one should be up on your server, your sacred private key should be in on your local machine.</p>
<p>You now open PuTTY to connect to your server.</p>
<p>Enter you host name / ip address to your server. So something like&#8230;</p>
<p><em>username@dev.serverhostname.com</em></p>
<p>Now to add your private key to the equation. On your right you will see an SSH option, click it to reveal more options&#8230; select the &#8216;Auth&#8217; option.</p>
<p>Now use the Browse button to select your newly created private key.</p>
<p><a href="http://blogalhost.files.wordpress.com/2010/01/add-key.png"><img class="alignnone size-medium wp-image-9" title="Add private key" src="http://blogalhost.files.wordpress.com/2010/01/add-key.png?w=450" alt="" /></a></p>
<p>Now return to the initial screen, Session (where you entered your development web server&#8217;s hostname )&#8230; give the session a name and save&#8230; then Load and BOOM, you should have a new terminal window to your server.</p>
<p>Okay, now the port forwarding. In my case, remote access is not permitted to our development database. However you can connect to it from your development web server.</p>
<p>So, if I can use port forwarding to make a MySql client connect to the development database <strong>through</strong> the web server then I can access the database locally&#8230; which is handy.</p>
<p>The following <a title="Port Forward" href="http://www.vbmysql.com/articles/security/connecting-the-mysql-gui-tools-to-a-remote-server-through-a-firewall" target="_blank">guide</a> helped me.</p>
<p>Now I know, what the heck&#8230; that&#8217;s a better guide than this one, but bare with me. I tried to follow that guide and I got stuck. Some of you may not have, but I think there is something in guides like this that do not nail home.</p>
<p>Umm something like, &#8220;<em>What IP address and what port do I use and where do I put it!</em>&#8220;&#8230;</p>
<p>I guess I got confused over source and destination fields.</p>
<p>To safe you the bother, your <strong>Source</strong> address is 127.0.0.1  (or localhost) and your source can use any Port you wish, like 3006 in the example given in the guide above.</p>
<p>The <strong>Destination</strong> address is the address you normally use to connect to your database from your web server ( probably in some config file ). Looks something like  dev.db.servername.com:3000, or 201.002.11.33:3000&#8230;</p>
<p>You insert this hostname/port into the destination field below (where the confusing 127.0.0.1:3006 is now), and whatever port you wish to use as part of your source address, in our case we&#8217;ll stick with 3006</p>
<p><a href="http://blogalhost.files.wordpress.com/2010/01/tunnelsetup.png"><img class="alignnone size-full wp-image-11" title="Tunnel Setup" src="http://blogalhost.files.wordpress.com/2010/01/tunnelsetup.png?w=450" alt=""   /></a></p>
<p>Then open your MySql client and insert your <strong>source</strong> address details, 127.0.0.1 and port 3006, enter your Username/password and click the connect button&#8230; and all going well you have local access to your remote database server through a secure SSH Tunnel&#8230; sweet!</p>
<br />Filed under: <a href='http://magp.ie/category/guides/'>Guides</a> Tagged: <a href='http://magp.ie/tag/mysql/'>MySQL</a>, <a href='http://magp.ie/tag/port-forwarding/'>Port forwarding</a>, <a href='http://magp.ie/tag/putty/'>PuTTY</a>, <a href='http://magp.ie/tag/ssh/'>SSH</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/blogalhost.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/blogalhost.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/blogalhost.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/blogalhost.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/blogalhost.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/blogalhost.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/blogalhost.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/blogalhost.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/blogalhost.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/blogalhost.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/blogalhost.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/blogalhost.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/blogalhost.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/blogalhost.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magp.ie&#038;blog=11708208&#038;post=6&#038;subd=blogalhost&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://magp.ie/2010/01/30/ssh-windows/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<georss:point>53.734750 -8.989992</georss:point>
		<geo:lat>53.734750</geo:lat>
		<geo:long>-8.989992</geo:long>
		<media:content url="http://1.gravatar.com/avatar/72dd449e5e79e046c1c09ed8712b525a?s=96&#38;d=monsterid&#38;r=PG" medium="image">
			<media:title type="html">eoigal</media:title>
		</media:content>

		<media:content url="http://blogalhost.files.wordpress.com/2010/01/export-openssh.gif" medium="image">
			<media:title type="html">Export OpenSSH</media:title>
		</media:content>

		<media:content url="http://blogalhost.files.wordpress.com/2010/01/add-key.png" medium="image">
			<media:title type="html">Add private key</media:title>
		</media:content>

		<media:content url="http://blogalhost.files.wordpress.com/2010/01/tunnelsetup.png" medium="image">
			<media:title type="html">Tunnel Setup</media:title>
		</media:content>
	</item>
	</channel>
</rss>
