<?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>Gary Pendergast &#187; federated</title>
	<atom:link href="http://pento.net/tag/federated/feed/" rel="self" type="application/rss+xml" />
	<link>http://pento.net</link>
	<description>I&#039;m on the Internet</description>
	<lastBuildDate>Wed, 08 Sep 2010 07:04:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<cloud domain='pento.net' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>Don&#8217;t Forget to Alter your Federated Tables!</title>
		<link>http://pento.net/2009/05/05/dont-forget-to-alter-your-federated-tables/</link>
		<comments>http://pento.net/2009/05/05/dont-forget-to-alter-your-federated-tables/#comments</comments>
		<pubDate>Tue, 05 May 2009 08:40:47 +0000</pubDate>
		<dc:creator>Gary Pendergast</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[federated]]></category>
		<guid isPermaLink="false">http://pento.net/?p=229</guid>
		<description><![CDATA[If you&#8217;re using the Federated engine, here&#8217;s something important to remember (apart from the usual advice of &#8220;please don&#8217;t&#8221;). If you need to change the structure of the remote table, always remember to update the Federated table. If not, when you try to use the table, you&#8217;ll get this error: mysql&#62; SELECT * FROM foo; [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re using the Federated engine, here&#8217;s something important to remember (apart from the usual advice of &#8220;please don&#8217;t&#8221;). If you need to change the structure of the remote table, always remember to update the Federated table. If not, when you try to use the table, you&#8217;ll get this error:</p>
<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">SELECT</span> <span style="color: #CC0099;">*</span> <span style="color: #990099; font-weight: bold;">FROM</span> foo<span style="color: #000033;">;</span>
ERROR <span style="color: #008080;">1030</span> <span style="color: #FF00FF;">&#40;</span>HY000<span style="color: #FF00FF;">&#41;</span>: Got error <span style="color: #008080;">1</span> <span style="color: #990099; font-weight: bold;">from</span> storage <span style="color: #990099; font-weight: bold;">engine</span></pre></div></div>
<p>This error isn&#8217;t really helpful. The problem is, the Federated engine only checks that the remote table structure is correct when it initially connects. Once it has connected, no more checks. When you restart the server, you get a much more helpful message:</p>
<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;">mysql <span style="color: #990099; font-weight: bold;">SELECT</span> <span style="color: #CC0099;">*</span> <span style="color: #990099; font-weight: bold;">FROM</span> foo<span style="color: #000033;">;</span>
ERROR <span style="color: #008080;">1431</span> <span style="color: #FF00FF;">&#40;</span>HY000<span style="color: #FF00FF;">&#41;</span>: The foreign <span style="color: #990099; font-weight: bold;">data</span> source you are trying <span style="color: #990099; font-weight: bold;">to</span> reference does <span style="color: #CC0099; font-weight: bold;">not</span> exist. <span style="color: #990099; font-weight: bold;">Data</span> source error:  error: <span style="color: #008080;">1054</span>  <span style="color: #008000;">'Unknown column '</span>b<span style="color: #008000;">' in '</span><span style="color: #000099;">field</span> list<span style="color: #008000;">''</span></pre></div></div>
<p>Also, keep your eye on the <a title="FederatedX Storage Engine project page" href="http://forge.mysql.com/projects/project.php?id=265">FederatedX</a> project. It&#8217;s still under development, but will hopefully upgrade the Federated engine to being useful again.</p>
]]></content:encoded>
			<wfw:commentRss>http://pento.net/2009/05/05/dont-forget-to-alter-your-federated-tables/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
