<?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>tony spencer &#187; MySQL</title>
	<atom:link href="http://www.tonyspencer.com/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tonyspencer.com</link>
	<description>It&#039;s Just Links</description>
	<lastBuildDate>Thu, 09 Apr 2009 13:19:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language></language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>If you get this in MySQL Lock wait timeout exceeded; try restarting transaction</title>
		<link>http://www.tonyspencer.com/2008/10/23/if-you-get-this-in-mysql-lock-wait-timeout-exceeded-try-restarting-transaction/</link>
		<comments>http://www.tonyspencer.com/2008/10/23/if-you-get-this-in-mysql-lock-wait-timeout-exceeded-try-restarting-transaction/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 00:57:39 +0000</pubDate>
		<dc:creator>tony</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.tonyspencer.com/2008/10/23/if-you-get-this-in-mysql-lock-wait-timeout-exceeded-try-restarting-transaction/</guid>
		<description><![CDATA[I ran into this crap when I needed to purge a massive number of records from a database. All you need to do is edit the timeout setting in your MySQL config file.
On my Mac it is located at : /etc/my.cnf
Uncomment the line:

innodb_lock_wait_timeout = 50

And change the setting to 500 (its seconds)
Restart mysql and rerun [...]]]></description>
			<content:encoded><![CDATA[<p>I ran into this crap when I needed to purge a massive number of records from a database. All you need to do is edit the timeout setting in your MySQL config file.</p>
<p>On my Mac it is located at : <em>/etc/my.cnf</em></p>
<p>Uncomment the line:<br />
<code><br />
innodb_lock_wait_timeout = 50<br />
</code></p>
<p>And change the setting to 500 (its seconds)</p>
<p>Restart mysql and rerun your query.</p>
<p><code><br />
sudo launchctl unload -w /Library/LaunchDaemons/com.mysql.mysqld.plist<br />
sudo launchctl load -w /Library/LaunchDaemons/com.mysql.mysqld.plist<br />
</code></p>
<p>If you make this change on a production server you may want to set it back to the default setting.  I don&#8217;t know what the consequences of a long timeout setting would be.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tonyspencer.com/2008/10/23/if-you-get-this-in-mysql-lock-wait-timeout-exceeded-try-restarting-transaction/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Making mysqldump compatible with older versions</title>
		<link>http://www.tonyspencer.com/2005/10/28/making-mysqldump-compatible-with-older-versions/</link>
		<comments>http://www.tonyspencer.com/2005/10/28/making-mysqldump-compatible-with-older-versions/#comments</comments>
		<pubDate>Fri, 28 Oct 2005 23:43:43 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.tonyspencer.com/2005/10/28/making-mysqldump-compatible-with-older-versions/</guid>
		<description><![CDATA[If you receive some errors such as the following when trying to import your mysql database dump you are most likely attempting to dump a database from a newer version of MySQL and import it into an older version:
You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL [...]]]></description>
			<content:encoded><![CDATA[<p>If you receive some errors such as the following when trying to import your mysql database dump you are most likely attempting to dump a database from a newer version of MySQL and import it into an older version:</p>
<blockquote><p>You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near &#8216;DEFAULT CHARSET=latin1&#8242;</p></blockquote>
<p>OR </p>
<blockquote><p>You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near &#8216;DEFAULT CHARSET=utf-8&#8242;</p></blockquote>
<p><strong>Solution?</strong><br />
Add the following parameter to your msyqldump statement:</p>
<p><em>&#8211;compatible=mysql40</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tonyspencer.com/2005/10/28/making-mysqldump-compatible-with-older-versions/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>mySql Doesn&#8217;t Scale &#8211; No Wonder Feedster Is So Damn Slow</title>
		<link>http://www.tonyspencer.com/2004/11/30/mysql-doesnt-scale-no-wonder-feedster-is-so-damn-slow/</link>
		<comments>http://www.tonyspencer.com/2004/11/30/mysql-doesnt-scale-no-wonder-feedster-is-so-damn-slow/#comments</comments>
		<pubDate>Wed, 01 Dec 2004 04:47:52 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.tonyspencer.com/2004/11/30/mysql-doesnt-scale-no-wonder-feedster-is-so-damn-slow/</guid>
		<description><![CDATA[I&#8217;ve been using mySql for many years now for small to medium-large projects.  Its a fantastic free database that performs incredibly well.  I especially want to tip my hat to the developers for mySql&#8217;s extraordinary performance with full-text searching released with 4.0.
However, recently I&#8217;ve been loading some databases with a large amount of [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using mySql for many years now for small to medium-large projects.  Its a fantastic free database that performs incredibly well.  I especially want to tip my hat to the developers for mySql&#8217;s extraordinary performance with full-text searching released with 4.0.</p>
<p>However, recently I&#8217;ve been loading some databases with a large amount of data and I started to notice an exponential degradation in performance once the dataset started to get large (over 80,000 records).</p>
<p>I thought that I probably just wasn&#8217;t doing something right even though I am very concious of open database connections and make good use of indexes and database caching.  I was fortunate enough to have the opportunity to chat with my favorite blogger <a href="http://jeremy.zawodny.com/blog/">Jeremy  Zawodny</a> at the <a href="http://www.flickr.com/photos/49724566@N00/1562357/in/set39898/">fantastic Yahoo Search party</a> (very San Francisco Bay Area, Red Herring, loads of venture capital, <a href="http://news.com.com/2008-1082_3-5056441.html">USWeb/CKS</a>, late &#8217;90s feeling kind of corporate party) for the WebmasterWorld geeks in Vegas this month and I asked him about my problem.  </p>
<p><img alt="yahoo.jpg" src="http://www.tonyspencer.com/mt/archives/yahoo.jpg" width="640" height="480" /></p>
<p>Essentially he clued me in and said that mySql wasn&#8217;t really built for enterprise level databasing and that I needed to look elsewhere.  I had a too many few free Yahoo drinks and forgot to ask a good question.  Hey Jeremy.  Is <a href="http://www.postgresql.org/">Postgres</a> any better? </p>
<p>Anybody have a copy of Oracle I can bum?  <img src='http://www.tonyspencer.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.tonyspencer.com/2004/11/30/mysql-doesnt-scale-no-wonder-feedster-is-so-damn-slow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

