<?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>MySQL Preacher &#187; pager more</title>
	<atom:link href="http://mysqlpreacher.com/wordpress/tag/pager-more/feed/" rel="self" type="application/rss+xml" />
	<link>http://mysqlpreacher.com/wordpress</link>
	<description>Because Sharing is Caring</description>
	<lastBuildDate>Mon, 26 Sep 2011 23:34:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>Show warnings with MANY MANY warnings</title>
		<link>http://mysqlpreacher.com/wordpress/2010/06/show-warnings-with-many-many-warnings/</link>
		<comments>http://mysqlpreacher.com/wordpress/2010/06/show-warnings-with-many-many-warnings/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 13:59:52 +0000</pubDate>
		<dc:creator>Darren Cassar</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[max_error_count]]></category>
		<category><![CDATA[pager]]></category>
		<category><![CDATA[pager more]]></category>
		<category><![CDATA[show warnings]]></category>
		<category><![CDATA[warning]]></category>

		<guid isPermaLink="false">http://mysqlpreacher.com/wordpress/?p=342</guid>
		<description><![CDATA[What to do when you have too many warnings and would like to check them out. Say you were trying to run a query which returned a heap of warnings and you want to go through the list &#8230;. mysql&#62; load data infile '/aaa/bbb/ccc' into table xyz LINES TERMINATED BY '\r\n'; Query OK, 0 rows [...]]]></description>
			<content:encoded><![CDATA[<p>What to do when you have too many warnings and would like to check them out.</p>
<p>Say you were trying to run a query which returned a heap of warnings and you want to go through the list &#8230;.</p>
<p><code>mysql&gt;  load data infile '/aaa/bbb/ccc' into table xyz LINES TERMINATED BY '\r\n';<br />
Query OK, 0 rows affected, 65535 warnings (4 min 25.12 sec)</code></p>
<p><code> </code></p>
<p><code>mysql&gt; show warnings;<br />
+---------+------+------------------------------------------------+<br />
| Level   | Code | Message                                        |<br />
+---------+------+------------------------------------------------+<br />
| Warning | 1366 | Incorrect value: '' for column 'xx' at row 1   |<br />
...<br />
| Warning | 1366 | Incorrect value: '' for column 'xx' at row 9   |<br />
| Warning | 1366 | Incorrect value: '' for column 'xx' at row 10  |<br />
+---------+------+------------------------------------------------+<br />
64 rows in set (0.00 sec)</code></p>
<p>As per above only 64 rows are show. Why?</p>
<p><code>mysql&gt; show variables like 'max_error_count';<br />
+-----------------+-------+<br />
| Variable_name   | Value |<br />
+-----------------+-------+<br />
| max_error_count | 64    |<br />
+-----------------+-------+<br />
1 row in set (0.00 sec)</code></p>
<p>Ok so &#8230; what is the solution?</p>
<p><code>mysql&gt; set max_error_count=65535;<br />
Query OK, 0 rows affected (0.00 sec)</code></p>
<p><code> </code></p>
<p><code>mysql&gt; pager more<br />
PAGER set to 'more'</code></p>
<p>Here I am setting the max_error_count to a high value only for the session and not globally.</p>
<p>Details <a href="http://dev.mysql.com/doc/refman/5.1/en/server-system-variables.html#sysvar_max_error_count" target="_blank">here</a></p>
<p>The &#8220;pager more&#8221; will work only on *nix systems where the output will be &#8220;piped&#8221; to the `more` command on your OS and displayed in batches so you can pause the scrolling of the long output.</p>
<p>Having said the above, from my experience, when you have that many warnings, it&#8217;ll be a repetition of the same error or group of errors.</p>
]]></content:encoded>
			<wfw:commentRss>http://mysqlpreacher.com/wordpress/2010/06/show-warnings-with-many-many-warnings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

