Tuesday, November 13, 2018

Pager for the New MySQL Shell

I love the new shell but the one thing I missed from the old shell was the ability to use a pager like more or less to throttle the output of the screen.  Low and behold the engineers have added paging in MySQL Shell 8.0.13!!

Turn Paging On


Things can scroll off the screen quickly and pagination programs keep the output to small chunks.  To pick the more program as you pagination program, simply enter \pager more or for less enter \pager less

See the first illustration



How to turn paging on and off with the MySQL Shell 8.0.13




Yeah!

A big thanks to the MySQL Engineers!!


Turn Paging Off

And sometimes you do not need pagination and simply typing \pager and return will clear the setting. See the first illustration.


And you can determine how many lines to be output before output stops. \pager more -6 stops every six lines of output.

Setting the output of more to six lines


Other Pagination Programs

You can declare your desire to use another program for pagination on the command line like so mysqlsh --pager=foo

Tip: if you set the pager to \pager less -S, it will page horizontally too, so you can view wide results even without \G

The Documentation



The manual page for the pager is ->Using a Pager





7 comments:

  1. Thank you for your post. This is excellent information. It is amazing and wonderful to visit your site.
    php application development
    php web application development company india

    ReplyDelete
  2. The post is really good, we will use above mentioned strategy in our Website Design company in Bangalore.

    ReplyDelete
  3. Nice site....Please refer this site also Our vision success!Training are focused on perfect improvement of technical skills for Freshers and working professional. Our Training classes are sure to help the trainee with COMPLETE PRACTICAL TRAINING and Real time methodologies
    Dot Net Training in Chennai
    Selenium Training in chennai
    Software Testing Training Institute in Chennai
    Java Training Institute in Chennai
    PHP Course in Chennai

    ReplyDelete
  4. Thank you for sharing your article. Great efforts put it to find the list of articles which is very useful to know, Definitely will share the same to other forums.

    best openstack training in chennai | openstack certification training in chennai | linux openstack training in chennai

    ReplyDelete

  5. It is very useful information at my studies time, i really very impressed very well articles and worth information, i can remember more days that articles.

    RPA Developers Chennai
    best erp software development company in chennai
    erp in india
    erp software solutions in chennai

    ReplyDelete