<?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>PHP Magazine &#187; MySQL</title>
	<atom:link href="http://www.phpmag.ru/category/programming/mysql-programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpmag.ru</link>
	<description>Suum cuique</description>
	<lastBuildDate>Tue, 01 Jun 2010 14:42:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>MySQL: ERROR 1064 (42000) when importing sql-dumps</title>
		<link>http://www.phpmag.ru/2009/08/02/mysql-error-1064-42000-when-importing-sql-dumps/</link>
		<comments>http://www.phpmag.ru/2009/08/02/mysql-error-1064-42000-when-importing-sql-dumps/#comments</comments>
		<pubDate>Sun, 02 Aug 2009 16:51:19 +0000</pubDate>
		<dc:creator>Victor Farazdagi</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.phpmag.ru/?p=808</guid>
		<description><![CDATA[Today, I wanted to import quite a huge sql-dump, and got this error. What I was using was: mysql --user=root -p dbName < sqlDumpName.sql I was pretty sure about dump's integrity, so after receiving "Error 1064" decided to import using source command: #mysql --user -p mysql>use dbName; mysql>source ./sqlDumpName.sql This time import went through w/o [...]]]></description>
			<content:encoded><![CDATA[<p>Today, I wanted to import quite a huge sql-dump, and got this error. What I was using was:</p>
<pre name="code" class="sql">
mysql --user=root -p dbName < sqlDumpName.sql
</pre>
<p>I was pretty sure about dump's integrity, so after receiving "Error 1064" decided to import using source command:</p>
<pre name="code" class="sql">
#mysql --user -p
mysql>use dbName;
mysql>source ./sqlDumpName.sql
</pre>
<p>This time import went through w/o any issues.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpmag.ru/2009/08/02/mysql-error-1064-42000-when-importing-sql-dumps/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MySQL &#8211; (Errcode: 24) when using LOCK TABLES</title>
		<link>http://www.phpmag.ru/2009/06/07/mysql-errcode-24-when-using-lock-tables/</link>
		<comments>http://www.phpmag.ru/2009/06/07/mysql-errcode-24-when-using-lock-tables/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 11:50:47 +0000</pubDate>
		<dc:creator>Victor Farazdagi</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.phpmag.ru/?p=613</guid>
		<description><![CDATA[Today, when I wanted to backup my database with mysqldump I run into error I never received before: mysqldump: Got error: 29: File './sampl/table.MYD' not found (Errcode: 24) when using LOCK TABLES As it turned out this error simply means that mysql run out of file descriptors when locking tables &#8211; and this error happens [...]]]></description>
			<content:encoded><![CDATA[<p>Today, when I wanted to backup my database with mysqldump I run into error I never received before:</p>
<p><code><br />
mysqldump: Got error: 29: File './sampl/table.MYD' not found (Errcode: 24) when using LOCK TABLES<br />
</code></p>
<p>As it turned out this error simply means that mysql run out of file descriptors when locking tables &#8211; and this error happens only if you have many tables in your database (more than <strong>open_files_limit</strong> in your my.cnf).</p>
<p>It even has been reported as a <a href="http://bugs.mysql.com/bug.php?id=3893">bug</a>, although it is <em>not</em>. To cure the problem, simply pass </p>
<pre><strong>--single-transaction</strong></pre>
<p>option to your mysqldump command.</p>
<p>If, however, you are getting this kind of errors during normal database operations &#8211; then the only solution is to increase <strong>open_files_limit</strong> in mysql configuration file.</p>
<p>Hope this saves you some time!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpmag.ru/2009/06/07/mysql-errcode-24-when-using-lock-tables/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
