Mysql: Show limited records in mysql shell?

When I run this

mysql > show tables;

      

It lists all tables, I don't see the first one.

How do I restrict entries like we do less

in Linux?

Thank!

+3


source to share


1 answer


You can install pager in mysql client.

mysql> pager less
mysql> show tables;
. . .
mysql> nopager

      



In fact, you can set pager

for any shell command that you would normally use in a pipeline.
For example grep.

See some other tips here: http://www.mysqlperformanceblog.com/2013/01/21/fun-with-the-mysql-pager-command/

+4


source







All Articles