<?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>Ant Drewery &#187; MySQL</title>
	<atom:link href="http://blog.drewery.net/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.drewery.net</link>
	<description>IT infrastructure, support and strategy</description>
	<lastBuildDate>Thu, 01 Dec 2011 09:47:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.drewery.net' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Ant Drewery &#187; MySQL</title>
		<link>http://blog.drewery.net</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.drewery.net/osd.xml" title="Ant Drewery" />
	<atom:link rel='hub' href='http://blog.drewery.net/?pushpress=hub'/>
		<item>
		<title>Enabling remote connections to a MySQL server</title>
		<link>http://blog.drewery.net/2006/10/24/enabling-remote-connections-to-a-mysql-server/</link>
		<comments>http://blog.drewery.net/2006/10/24/enabling-remote-connections-to-a-mysql-server/#comments</comments>
		<pubDate>Tue, 24 Oct 2006 09:22:21 +0000</pubDate>
		<dc:creator>Anthony Drewery</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.drewery.net/blog/2006/10/24/enabling-remote-connections-to-a-mysql-server/</guid>
		<description><![CDATA[By default MySQL only permits connections from the server on which it resides. Although this makes for good security there may be times when you need to access the database from elsewhere. This might be using ODBC from your office or maybe a script running on a separate web server. Using a SSH client like [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.drewery.net&amp;blog=6502410&amp;post=123&amp;subd=antdrewery&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>By default <a href="http://www.mysql.com/" target="_blank">MySQL</a>  only permits connections from the server on which it resides. Although this makes for good security there may be times when you need to access the database from elsewhere. This might be using ODBC from your office or maybe a script running on a separate web server.</p>
<p>Using a SSH client like <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/" target="_blank">PuTTY</a>  connect to your MySQL server. You then need to edit /etc/my.cnf (# vi /etc/my.cnf).</p>
<p>Under the [mysqld] section comment or remove the skip-networking line and add the bind-address=<em>IP_of_MYSQLserver</em> line e.g.</p>
<address>[mysqld]</address>
<address>datadir=/var/lib/mysql</address>
<address>socket=/var/run/mysqld/mysqld.socket</address>
<address>bind-address=192.168.99.99</address>
<address># skip-networking</address>
<p>Save the file then restart the MySQL service (# /etc/init.d/mysqld restart)&nbsp;</p>
<p>Now using the MySQL admin tool of your choice create your user accounts but specify the host that they will be connecting from. For example if you are creating a user that connects from the IP address 80.65.35.43 the username will be in this format: username@80.65.35.43</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/antdrewery.wordpress.com/123/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/antdrewery.wordpress.com/123/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/antdrewery.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/antdrewery.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/antdrewery.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/antdrewery.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/antdrewery.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/antdrewery.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/antdrewery.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/antdrewery.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/antdrewery.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/antdrewery.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/antdrewery.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/antdrewery.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/antdrewery.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/antdrewery.wordpress.com/123/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.drewery.net&amp;blog=6502410&amp;post=123&amp;subd=antdrewery&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.drewery.net/2006/10/24/enabling-remote-connections-to-a-mysql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9ac112d149b667282aee5e6cc74ecf5a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ant</media:title>
		</media:content>
	</item>
	</channel>
</rss>
