<?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>ilikelinux &#187; MySQL</title>
	<atom:link href="http://www.ilikelinux.com/taxonomy/tags/mysql/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ilikelinux.com</link>
	<description>Computing and F/OSS Adventures</description>
	<lastBuildDate>Mon, 27 Aug 2007 07:46:10 +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>MySQL CLI pager tweaks</title>
		<link>http://www.ilikelinux.com/2007/07/30/mysql-cli-pager-tweaks</link>
		<comments>http://www.ilikelinux.com/2007/07/30/mysql-cli-pager-tweaks#comments</comments>
		<pubDate>Mon, 30 Jul 2007 23:33:40 +0000</pubDate>
		<dc:creator>Jesse</dc:creator>
				<category><![CDATA[Configuration]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.ilikelinux.com/2007/07/30/mysql-cli-pager-tweaks/</guid>
		<description><![CDATA[The default settings for the MySQL command line client are a bit annoying. There&#8217;s no output paging; columns with more than 80 characters are wrapped making matching field name to field data difficult. Here&#8217;s a way to make life easier.

Reference:  http://dev.mysql.com/doc/refman/5.0/en/mysql-commands.html (and from the comments therein)
You can set the PAGER variable several ways. In [...]]]></description>
			<content:encoded><![CDATA[<p>The default settings for the MySQL command line client are a bit annoying. There&#8217;s no output paging; columns with more than 80 characters are wrapped making matching field name to field data difficult. Here&#8217;s a way to make life easier.</p>
<p><span id="more-12"></span></p>
<p><strong>Reference:</strong>  <a href="http://dev.mysql.com/doc/refman/5.0/en/mysql-commands.html" title="MySQL 5.0 Manual excerpt" target="_blank">http://dev.mysql.com/doc/refman/5.0/en/mysql-commands.html</a> (and from the comments therein)</p>
<p>You can set the PAGER variable several ways. In the following examples, I&#8217;m setting it to &#8220;less -niSFX&#8221;. Note that you must have &#8220;less&#8221; installed for this to work, and, according to the reference above, this doesn&#8217;t work on Win32, but you shouldn&#8217;t be running mysql on Win32 anyway <img src='http://www.ilikelinux.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
<p>In my.cnf (either in your home directory, or the system-wide file, whose location depends on your distribution):</p>
<p><code>[mysql]<br />
pager=less -niSFX</code></p>
<p>From the shell:</p>
<p><code><strong>$</strong> mysql --pager="less -niSFX"</code></p>
<p>From within the mysql command line client:</p>
<p><code><strong>mysql&gt;</strong> pager less -niSFX</code></p>
<p>I haven&#8217;t yet found a way to set the pager behavior back to the default (i.e. no output paging) from the CLI prompt, so you&#8217;ll have to exit the CLI,  remove these my.cnf changes or options from the command line and re-execute the client. I&#8217;ll edit this to reflect any new info.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ilikelinux.com/2007/07/30/mysql-cli-pager-tweaks/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
