<?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>ALTERthought Blogs &#187; Infrastructure</title>
	<atom:link href="http://alterlabs.com/category/technologies/infrastructure-design/feed/" rel="self" type="application/rss+xml" />
	<link>http://alterlabs.com</link>
	<description>Results through imagination</description>
	<lastBuildDate>Tue, 13 Apr 2010 19:19:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Access denied error in MySQL</title>
		<link>http://alterlabs.com/technologies/infrastructure-design/access-denied-error-in-mysql/</link>
		<comments>http://alterlabs.com/technologies/infrastructure-design/access-denied-error-in-mysql/#comments</comments>
		<pubDate>Tue, 14 Mar 2006 03:44:49 +0000</pubDate>
		<dc:creator>Manohar Viswanathan</dc:creator>
				<category><![CDATA[How-Tos]]></category>
		<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[Persistence]]></category>

		<guid isPermaLink="false">http://alterlabs.com/mysql/access-denied-error-in-mysql/</guid>
		<description><![CDATA[Have you been frustrated with Access denied for user &#8216;chinnu&#8217;@'localhost&#8217; errors even though as root you granted following privileges:
GRANT ALL PRIVILEGES ON MyDb.* to 'chinnu'@'%' WITH GRANT OPTION;
While % means any host, you probably did not see the behavior you expected.
MySQL performs access control in two stages. First, it tries to connect you with the [...]]]></description>
			<content:encoded><![CDATA[<p>Have you been frustrated with <em>Access denied for user &#8216;chinnu&#8217;@'localhost&#8217;</em> errors even though as <em>root</em> you granted following privileges:</p>
<p><code style="color: #009900">GRANT ALL PRIVILEGES ON MyDb.* to 'chinnu'@'%' WITH GRANT OPTION;</code></p>
<p>While <strong>%</strong> means any host, you probably did not see the behavior you expected.</p>
<p>MySQL performs access control in two stages. First, it tries to connect you with the username/password provided. Next, it checks if you have the privileges to perform your request. Entries in tables <span style="font-style: italic">user</span>, <span style="font-style: italic">db </span>and <span style="font-style: italic">host </span>of <span style="font-style: italic">mysql </span>database are used for access control.</p>
<p>Lets say this is our <span style="font-style: italic">user </span>table:</p>
<pre><span style="color: #009900">----------------------------------------------</span>
<span style="color: #009900">Host      |  User</span>
<span style="color: #009900">----------------------------------------------</span>
<span style="color: #009900">%         |  root</span>
<span style="color: #009900">%         |  chinnu</span>
<span style="color: #009900">localhost |  root</span>
<span style="color: #009900">localhost |  </span>
<span style="color: #009900">----------------------------------------------</span></pre>
<p><span style="font-weight: bold">%</span> in Host means &#8216;any host&#8217; and <span style="font-weight: bold">blank </span>in User means any user or anonymous user. Note that the value <span style="font-weight: bold">%</span> is less specific when compared to value <span style="font-weight: bold">localhost</span>. MySQL, when performing access control, sorts this table with the most-specific Host at the top. So, we have something like</p>
<pre><span style="color: #009900">-----------------------------------------</span>
<span style="color: #009900">Host      |  User</span>
<span style="color: #009900">-----------------------------------------</span>
<span style="color: #009900">localhost |  root</span>
<span style="font-weight: bold; color: #009900">localhost |   </span>
<span style="font-weight: bold; color: #009900">%         |  chinnu</span>
<span style="color: #009900">%         |  root</span>
<span style="color: #009900">------------------------------------------</span></pre>
<p>When <span style="font-weight: bold">chinnu </span>tries to login from <span style="font-weight: bold">localhost</span>, there are two matching rows. Guess what, the first match wins. This means that <span style="font-weight: bold">chinnu </span>is effectively logged in as an anonymous user. The anonymous user may not have privileges for MyDb, hence the access denied errors.</p>
<p><span style="font-weight: bold">How to verify?</span><br />
If you managed to connect execute <code style="color: #009900">SELECT CURRENT_USER()</code>. If you get result as <code style="font-weight: bold">@localhost</code> and not <span style="font-weight: bold">chinnu@localhost</span>, you have the issue described above.</p>
<p><span style="font-weight: bold">How to solve this?</span><br />
Solution-1: Grant privileges for &#8216;chinnu&#8217;@'localhost&#8217; in addition to &#8216;chinnu&#8217;@'%&#8217;<br />
Solution-2: Just get rid of the anonymous user.</p>
<p>Technorati Tags: <a href="http://technorati.com/tag/mysql" rel="tag">mysql</a></p>
   ]]></content:encoded>
			<wfw:commentRss>http://alterlabs.com/technologies/infrastructure-design/access-denied-error-in-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Choosing a JMS Provider: Harder than it should be</title>
		<link>http://alterlabs.com/technologies/java/choosing-a-jms-provider-harder-than-it-should-be/</link>
		<comments>http://alterlabs.com/technologies/java/choosing-a-jms-provider-harder-than-it-should-be/#comments</comments>
		<pubDate>Fri, 10 Mar 2006 21:13:15 +0000</pubDate>
		<dc:creator>don</dc:creator>
				<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Messaging]]></category>

		<guid isPermaLink="false">http://alterlabs.com/java/choosing-a-jms-provider-harder-than-it-should-be/</guid>
		<description><![CDATA[So I am in the process of evaluating several leading commercial JMS (Java Messaging Service) vendors for recommendation to a client. All of the typical things you might expect are in the hunt as part of the criteria:

Adherence to the JMS specification.
Performance and throughput. (I am using SonicMQ&#8217;s benchmarking guide as a basis.)
Scalability
Clustering and reliability
Cost

And [...]]]></description>
			<content:encoded><![CDATA[<p>So I am in the process of evaluating several leading commercial JMS (Java Messaging Service) vendors for recommendation to a client. All of the typical things you might expect are in the hunt as part of the criteria:</p>
<ul type="disc">
<li class="MsoNormal">Adherence to the JMS <a href="http://java.sun.com/products/jms/docs.html">specification.</a></li>
<li class="MsoNormal">Performance and throughput. (I am using SonicMQ&#8217;s benchmarking <a href="http://www.sonicsoftware.com/products/sonicmq/performance_benchmarking/index.ssp">guide</a> as a basis.)</li>
<li class="MsoNormal">Scalability</li>
<li class="MsoNormal">Clustering and reliability</li>
<li class="MsoNormal">Cost</li>
</ul>
<p>And a few things that may/may-not be typical thrown in for good measure:</p>
<ul type="disc">
<li class="MsoNormal">Support for Dead Letter      Queues (DLQ)</li>
<li class="MsoNormal">Ease of manageability (UI Management Console, for example)</li>
<li class="MsoNormal">Distributed transaction      support</li>
<li class="MsoNormal">Etc</li>
</ul>
<p>So what’s so hard about this seemingly straightforward task? Well to start with most vendors don&#8217;t seem to publish much in the way of comparisons against their competitors. They provide plenty of information as to why you should choose them, but little in the way data that distinguishes them from their competition. All such comparisons that I have been able to obtain to date have concerned themselves with performance criteria <strong><em>only</em></strong><em>. </em>Don&#8217;t get me wrong, performance is important, but so are any number of things.</p>
<p>The documentation provided by most vendors is equally lacking, or difficult to find, or simply non-existent.</p>
<p>As such, I am (frustratingly) left with having to download, install, learn and play with most of the vendor products. Sigh. Stay tuned to this one. I will update this entry with my findings.</p>
<p/><p>Technorati Tags: <a href="http://technorati.com/tag/java" rel="tag">java</a>, <a href="http://technorati.com/tag/jms" rel="tag"> jms</a>, <a href="http://technorati.com/tag/messaging" rel="tag"> messaging</a>, <a href="http://technorati.com/tag/message+queues" rel="tag"> message queues</a>, <a href="http://technorati.com/tag/sonicmq" rel="tag"> sonicmq</a></p>
   ]]></content:encoded>
			<wfw:commentRss>http://alterlabs.com/technologies/java/choosing-a-jms-provider-harder-than-it-should-be/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
