MySQL the command line and pagers

前端 未结 5 2514
盖世英雄少女心
盖世英雄少女心 2021-02-19 10:24

I cant find anything about this from searching here.

I use mysql on the command line at work and I work with fairly large tables so I set the mysql pager allowing a mor

5条回答
  •  清歌不尽
    2021-02-19 10:58

    This post is old, but still very helpful.

    You can set the pager to whatever you want, including a script that parses all output before feeding it back to you. The examples there include using an add-on tool that makes EXPLAIN output more readable.

    Also note that to turn off this functionality and return to normal stdout the command is nopager.

提交回复
热议问题