Priti's Technical Corner

March 1, 2014

How to paginate mysql query output on mysql command line!

Today while working I came across a good trick for mysql command line user. How to paginate the query result. On mysql prompt

mysql> pager more
PAGER set to ‘more’

mysql>select * from products

mysql will start showing you results in paginated way! Small but a good trick in your command line skill kitty !

To reset the pager

mysql> nopager
PAGER set to stdout

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at

%d bloggers like this: