<?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>Think Lamp &#187; screen</title>
	<atom:link href="http://www.think-lamp.com/tag/screen/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.think-lamp.com</link>
	<description>Everything Linux Apache Php Mysql</description>
	<lastBuildDate>Fri, 18 Feb 2011 01:28:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>Pagination in mysql CLI</title>
		<link>http://www.think-lamp.com/2008/10/pagination-in-mysql-cli/</link>
		<comments>http://www.think-lamp.com/2008/10/pagination-in-mysql-cli/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 19:01:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[less]]></category>
		<category><![CDATA[more]]></category>
		<category><![CDATA[pagination]]></category>
		<category><![CDATA[prompt]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[scroll]]></category>

		<guid isPermaLink="false">http://www.think-lamp.com/?p=69</guid>
		<description><![CDATA[Ever wonder how to scroll upwards in mysl resultset ? What if your terminal doesn&#8217;t allow scrollback or the scrollback buffer is somehow set to sreen lines ? How to use MORE or LESS unix commands in mysql which would allow to scroll using &#8216;return&#8217; or &#8216;spacebar&#8217; Follow the steps given below: [Invoke mysql using <a href='http://www.think-lamp.com/2008/10/pagination-in-mysql-cli/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Ever wonder how to scroll upwards in mysl resultset ?</p>
<p>What if your terminal doesn&#8217;t allow scrollback or the scrollback buffer is somehow set to sreen lines ?</p>
<p>How to use MORE or LESS unix commands in mysql which would allow to scroll using &#8216;return&#8217; or &#8216;spacebar&#8217;</p>
<p><strong>Follow the steps given below: </strong></p>
<p>[<em>Invoke mysql using the --page command</em>]</p>
<ol>
<li>
<pre class="brush: bash;">mysql --page uuser -p  </pre>
</li>
<p>[<em>set the pager to use less</em>]</p>
<li>
<pre class="brush: bash;">mysql&amp;gt; pager less</pre>
</li>
<p>[<em>run your query</em>]</p>
<li>
<pre class="brush: bash;">mysql&amp;gt; select * from table_name</pre>
</li>
</ol>
<p>This also  works under the unix &#8216;screen&#8217; terminal emulation</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.think-lamp.com%2F2008%2F10%2Fpagination-in-mysql-cli%2F&amp;linkname=Pagination%20in%20mysql%20CLI"><img src="http://www.think-lamp.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.think-lamp.com/2008/10/pagination-in-mysql-cli/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

