

Flight Engineer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2019
08:17 PM
- 3,226 Views
Is there a way to page the output of an SQL command within MariaDB shell the way Bash offers paging via less?
Let's say you are at the MariaDB prompt and are inspecting the mysql database for all the columns it has:
<MariaDB[mysql]> show tables;
Output usually runs through and I'd like to put it through a pager like it is done in bash:
[root@lolzie]# some_command | less
1 Solution
Accepted Solutions


Flight Engineer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2019
12:54 PM
- 3,218 Views
You can do the following:
mysql> pager less
or you can use the pager to send the output to a file or to a script
mysql> pager /tmp/process_script
1 Reply


Flight Engineer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2019
12:54 PM
- 3,219 Views
You can do the following:
mysql> pager less
or you can use the pager to send the output to a file or to a script
mysql> pager /tmp/process_script
Join the discussion
You must log in to join this conversation.