Showing posts with label Stop. Show all posts
Showing posts with label Stop. Show all posts

27 June 2021

How to obtain same effect as 'less' in Linux in mysql?

 How to obtain same effect as 'less' in Linux in mysql?


i.e. the output display stops at the first screen, before you can move the output in vi way.

$pager less

$select * from table;

Furthermore, use -

$pager less

$select * from table\G

so that fields are displayed from up to down, instead of from left to right.

27 July 2017

How to Stop Scrolling in Linux?

How to Stop Scrolling in Linux?

 ls | more although most people use the ls | less command as it has more features, such as scrolling back as well as forwards, and searching for text.
To scroll forwards a screen press space. To scroll back a screen press 'b'. To search for some text type /something.
And as always man less for more details.

How to Stop Scrolling in MySQL?

How to Stop Scrolling in MySQL?

 > mysql -p [database]
    Enter password:
    mysql> pager more;
    PAGER set to more
    mysql> select * from [table];
    ...data...
    ...data...
    --More--

    You can use 'less', or 'more', or whatever other pager you want to use.