<?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>Daniel Tome's blog &#187; MySQL</title>
	<atom:link href="http://www.danieltome.com/blog/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.danieltome.com/blog</link>
	<description>Flash, PHP, Open Source, Actionscript, Australia and Argentina stuff.</description>
	<lastBuildDate>Tue, 18 Nov 2008 00:48:06 +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>Getting weird characters with AMFPHP</title>
		<link>http://www.danieltome.com/blog/2008/01/31/getting-weird-characters-with-amfphp/</link>
		<comments>http://www.danieltome.com/blog/2008/01/31/getting-weird-characters-with-amfphp/#comments</comments>
		<pubDate>Thu, 31 Jan 2008 00:01:27 +0000</pubDate>
		<dc:creator>Danno</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[utf8]]></category>
		<category><![CDATA[amfphp]]></category>
		<category><![CDATA[euro symbol]]></category>
		<category><![CDATA[microsoft characters]]></category>
		<category><![CDATA[strange characters]]></category>

		<guid isPermaLink="false">http://www.danieltome.com/blog/2008/01/31/getting-weird-characters-with-amfphp/</guid>
		<description><![CDATA[Just a small reminder that might help anyone getting some weird characters with AMFPHP. It can happen when you copy a full text from Microsoft Word. And the quotes get inserted in your DB.
You might find some funny results like an Euro symbol appearing throughout your text. Uncomment this line in your amfphp gateway:
$gateway-&#62;setCharsetHandler("utf8_decode", "ISO-8859-1", [...]]]></description>
			<content:encoded><![CDATA[<p>Just a small reminder that might help anyone getting some weird characters with AMFPHP. It can happen when you copy a full text from Microsoft Word. And the quotes get inserted in your DB.</p>
<p>You might find some funny results like an Euro symbol appearing throughout your text. Uncomment this line in your amfphp gateway:</p>
<pre>$gateway-&gt;setCharsetHandler("utf8_decode", "ISO-8859-1", "ISO-8859-1");</pre>
<p>Here are some examples of text you might find:<br />
â€˜  = This is the open double quote<br />
â€™  = This is the close double quote</p>
<p>Here is a good resource if you&#8217;re having issues with strange characters and PHP / MySQL: <a href="http://www.byteflex.co.uk/fun_with_utf8_php_and_mysql.html" title="Fun with utf8, php and mysql" target="_blank">ByteFlex &#8211; Fun with utf8, PHP and mysql</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.danieltome.com/blog/2008/01/31/getting-weird-characters-with-amfphp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MySQL (errno: 150)</title>
		<link>http://www.danieltome.com/blog/2008/01/17/mysql-errno-150/</link>
		<comments>http://www.danieltome.com/blog/2008/01/17/mysql-errno-150/#comments</comments>
		<pubDate>Thu, 17 Jan 2008 06:02:11 +0000</pubDate>
		<dc:creator>Danno</dc:creator>
				<category><![CDATA[Errors]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[alter table]]></category>
		<category><![CDATA[errno: 150]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[foreign key]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.danieltome.com/blog/2008/01/17/mysql-errno-150/</guid>
		<description><![CDATA[Just quick note for anyone getting this error. It took me a little while to figure out.
In my case I was trying to add a foreign key with delete on cascade:
ALTER TABLE table_one
ADD CONSTRAINT name_fk FOREIGN KEY (iTable1ID)
EFERENCES table_two(iTable2ID) ON DELETE CASCADE;
And HeidiSQL was spitting out this error msg:
SQL Error: Can&#8217;t create table &#8216;.\database_name\#sql-72c_fb.frm&#8217; (errno: [...]]]></description>
			<content:encoded><![CDATA[<p>Just quick note for anyone getting this error. It took me a little while to figure out.<br />
In my case I was trying to add a foreign key with delete on cascade:</p>
<pre><code language="sql">ALTER TABLE table_one
</code>ADD CONSTRAINT name_fk FOREIGN KEY (iTable1ID)
EFERENCES table_two(iTable2ID) ON DELETE CASCADE;</pre>
<p>And <a href="http://www.heidisql.com" title="Opensource Mysql client" target="_blank">HeidiSQL</a> was spitting out this error msg:</p>
<p>SQL Error: Can&#8217;t create table &#8216;.\database_name\#sql-72c_fb.frm&#8217; (errno: 150)</p>
<p><strong>How to resolve this error:</strong><br />
Make sure your fields datatype match.<br />
They both should have exactly the same datatype and length.<br />
Eg. INT(4) Unsigned isn&#8217;t the same as INT(11)</p>
<p>Also make sure if you have data in the table, the foreign keys will not fail.<br />
Eg. If you have an value in one table and not in the other table, it will fail.</p>
<p>This may be common knowledge to most of you but it might come in handy to someone else.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danieltome.com/blog/2008/01/17/mysql-errno-150/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
