<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: connecting to remote mysql server via ssh tunnel</title>
	<link>http://krisgale.com/connecting-to-remote-mysql-server-via-ssh-tunnel/</link>
	<description>meanderings of a computer scientist on the brink of sheer insanity.</description>
	<pubDate>Sat, 19 May 2012 21:22:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>

	<item>
		<title>By: krisgale</title>
		<link>http://krisgale.com/connecting-to-remote-mysql-server-via-ssh-tunnel/#comment-3443</link>
		<author>krisgale</author>
		<pubDate>Fri, 20 Feb 2009 20:18:30 +0000</pubDate>
		<guid>http://krisgale.com/connecting-to-remote-mysql-server-via-ssh-tunnel/#comment-3443</guid>
		<description>thanks for the additional detail!</description>
		<content:encoded><![CDATA[<p>thanks for the additional detail!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hawkeye</title>
		<link>http://krisgale.com/connecting-to-remote-mysql-server-via-ssh-tunnel/#comment-3442</link>
		<author>Hawkeye</author>
		<pubDate>Fri, 20 Feb 2009 19:18:40 +0000</pubDate>
		<guid>http://krisgale.com/connecting-to-remote-mysql-server-via-ssh-tunnel/#comment-3442</guid>
		<description>This Terminal command can be used:

ssh -nNL33060:127.0.0.1:3306 username@host

or to background the tunnel so you can use the terminal window for other commands (make note of the process ID it returns so you can "kill" the tunnel when you are finished with it):

ssh -nNL33060:127.0.0.1:3306 username@host &#38;&#62; /dev/null &#38;

Notice the use of local port 33060 instead of 3306; this works even if you have a local mysql server running on your machine, but means you have to connect to the remote server using local port 33060, not 3306.  (On the remote end, connection is to port 3306.)

Note:  If trying to connect to a mysql server on a machine running Mac OS X Server, the "allow network connections" checkbox must be checked in Server Admin for tunneling to work with GUI tools.</description>
		<content:encoded><![CDATA[<p>This Terminal command can be used:</p>
<p>ssh -nNL33060:127.0.0.1:3306 <a href="mailto:username@host">username@host</a></p>
<p>or to background the tunnel so you can use the terminal window for other commands (make note of the process ID it returns so you can &#8220;kill&#8221; the tunnel when you are finished with it):</p>
<p>ssh -nNL33060:127.0.0.1:3306 <a href="mailto:username@host">username@host</a> &amp;&gt; /dev/null &amp;</p>
<p>Notice the use of local port 33060 instead of 3306; this works even if you have a local mysql server running on your machine, but means you have to connect to the remote server using local port 33060, not 3306.  (On the remote end, connection is to port 3306.)</p>
<p>Note:  If trying to connect to a mysql server on a machine running Mac OS X Server, the &#8220;allow network connections&#8221; checkbox must be checked in Server Admin for tunneling to work with GUI tools.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

