<?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>LifeUML &#187; permission</title>
	<atom:link href="http://lifeuml.com/tag/permission/feed/" rel="self" type="application/rss+xml" />
	<link>http://lifeuml.com</link>
	<description>from actor, to actors..</description>
	<lastBuildDate>Fri, 28 Aug 2009 10:17:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>MySQL error 1045 (28000): Access denied for user &#8230;</title>
		<link>http://lifeuml.com/mysql-error-1045-28000-access-denied-for-user/</link>
		<comments>http://lifeuml.com/mysql-error-1045-28000-access-denied-for-user/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 04:11:58 +0000</pubDate>
		<dc:creator>TuyenT</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Access denined]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[permission]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://lifeuml.com/?p=77</guid>
		<description><![CDATA[Hello everybody,
Today, my task is configuring a MySQL server to allow connections from remote computers. The problem I has met is that although port 3306 on the router was already opened, users from internet still could not connect to my MySQL Server. Here is my error message:

tuyent@local:~$ mysql -u tuyent -p -h remote-computer
Enter password: 
ERROR [...]]]></description>
			<content:encoded><![CDATA[<p>Hello everybody,</p>
<p>Today, my task is configuring a MySQL server to allow connections from remote computers. The problem I has met is that although port 3306 on the router was already opened, users from internet still could not connect to my MySQL Server. Here is my error message:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">tuyent<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">local</span>:~$ mysql <span style="color: #660033;">-u</span> tuyent <span style="color: #660033;">-p</span> <span style="color: #660033;">-h</span> remote-computer
Enter password: 
ERROR <span style="color: #000000;">1045</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">28000</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: Access denied <span style="color: #000000; font-weight: bold;">for</span> user <span style="color: #ff0000;">'tuyent'</span><span style="color: #000000; font-weight: bold;">@</span><span style="color: #ff0000;">'local'</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>using password: YES<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>Well, here is my solution:<br />
- <strong>Step 1:</strong> Double check that the port 3306 is already opened.<br />
- <strong>Step 2:</strong> Open MySQL configuration file (/etc/mysql/my.cnf), comment the line</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># bind-address            = 127.0.0.1</span></pre></div></div>

<p>- <strong>Step 3:</strong> Restart the MySQL server</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>mysql restart</pre></div></div>

<p>- <strong>Step 4:</strong> Go to mysql command line and grant permission for user</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysql<span style="color: #000000; font-weight: bold;">&gt;</span> grant all on <span style="color: #000000; font-weight: bold;">*</span>.<span style="color: #000000; font-weight: bold;">*</span> to <span style="color: #ff0000;">'tuyent'</span><span style="color: #000000; font-weight: bold;">@</span><span style="color: #ff0000;">'%'</span> identified by <span style="color: #ff0000;">'password'</span>;
mysql<span style="color: #000000; font-weight: bold;">&gt;</span> grant all on <span style="color: #000000; font-weight: bold;">*</span>.<span style="color: #000000; font-weight: bold;">*</span> to <span style="color: #ff0000;">'tuyent'</span><span style="color: #000000; font-weight: bold;">@</span><span style="color: #ff0000;">'localhost'</span> identified by <span style="color: #ff0000;">'password'</span>;
mysql<span style="color: #000000; font-weight: bold;">&gt;</span> flush privileges;</pre></div></div>

<p>Note: Remember to grant permission on both from localhost and from anywhere (&#8217;%&#8217; indicator), and flush all privileges.</p>
<p>Works fine for me <img src='http://lifeuml.com/smilies/yahoo_smiley.gif' alt='&#58;&#41;' class='wp-smiley' width='18' height='18' title='&#58;&#41;' /></p>
]]></content:encoded>
			<wfw:commentRss>http://lifeuml.com/mysql-error-1045-28000-access-denied-for-user/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
