I know you can set a pager in mysql (the client program) using e.g. \P less. But how would one configure mysql so that your pager of choice is activated whenever you start using the client?
I know you can set a pager in mysql (the client program) using e.g.
Share
To force this without having to pass parameters, you can put it in your
my.cnfoption file, under a[client]section (note that this is on the machine you’re connecting from not to).Something like this:
If you want it to apply only to the actual
mysqlcommand, and no other applications that MySQL considers to be a ‘client’ (utilities likemysqldumpread the[client]section too), then use[mysql]instead.