<?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>Open Query blog &#187; 1449</title>
	<atom:link href="http://openquery.com/blog/tag/1449/feed" rel="self" type="application/rss+xml" />
	<link>http://openquery.com/blog</link>
	<description>About MySQL, Drizzle, MariaDB and more!</description>
	<lastBuildDate>Sun, 29 Apr 2012 23:48:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Replication fail with &#8220;There is no ‘username’@&#8217;host’ registered&#8221;</title>
		<link>http://openquery.com/blog/replication-fail-usernamehost-registered</link>
		<comments>http://openquery.com/blog/replication-fail-usernamehost-registered#comments</comments>
		<pubDate>Wed, 24 Jun 2009 02:59:56 +0000</pubDate>
		<dc:creator>arjen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[1449]]></category>
		<category><![CDATA[ERR_NO_SUCH_USER]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[replication]]></category>

		<guid isPermaLink="false">http://openquery.com/blog/?p=822</guid>
		<description><![CDATA[This post doesn&#8217;t contain a tip, I&#8217;m asking the q and I don&#8217;t know the answer yet. Could just be a logic error on my part, in which case it was just a personal mystery and I thank you for helping! MySQL error 1449 “There is no ‘username’@'host’ registered” You can get a replication fail [...]]]></description>
			<content:encoded><![CDATA[<p>This post doesn&#8217;t contain a tip, I&#8217;m asking the q and I don&#8217;t know the answer yet. Could just be a logic error on my part, in which case it was just a personal mystery and I thank you for helping!</p>
<p><code>MySQL error 1449 “There is no ‘username’@'host’ registered”</code></p>
<p>You can get a replication fail with this error if you have triggers, views or stored routines that run as their creator (which is usual) but the slave does not have that user. So far so good.</p>
<p>We just encountered a replication fail on multiple slaves (i.e. not a single isolated mishap) with this error on an UPDATE statement accessing a single base table (i.e. no view), and no triggers defined or routines called in the query. Indeed the slave did not have the reported user (intentionally), but that shouldn&#8217;t have mattered. Creating the user allowed replication to continue successfully &#8211; that&#8217;s no surprise either.</p>
<p>The question is, what condition actually caused this error?</p>
<p>For ref, the original error message; obfucated but structurally unchanged:<br />
<code>[ERROR] Slave: Error ‘There is no ’someuser’@'%’ registered’ on query. Default database: ’somedb’. Query: ‘UPDATE `t1` SET `name` = ’some text string’, `description` = ‘another text string’, `date_taken` = ”, `place_taken` = ”, `modified` = ‘2009-06-24 12:06:16′, `updated_by` = 1, `modified_on` = 1245773176 WHERE `t1`.`id` = 361′, Error_code: 1449</code></p>
<p><strong>UPDATE (2009-06-26)</strong> <em>ok it was an Arjen fail, on a recheck of all the possible situations where permissions are checked (views, stored procs, triggers), I found that there&#8217;s 1 trigger in the entire system and it happens to be on this table. So, no bug and my mistake. Issue resolved! Thanks to all those helping!</em></p>
]]></content:encoded>
			<wfw:commentRss>http://openquery.com/blog/replication-fail-usernamehost-registered/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
