I’m setting up aliases for a new development environment and I would really like to be able to pass the pager less -S command to my mysql login.
I looked at the manual, all I could really see was the -e flag, however that quits once it’s done, so that did not work.
Ideally it would be like this:
mysql -uusername -ppassword dbname -e "pager less -S"
However, as explained that doesn’t work, any alternatives that you guys know of? Thanks!
You can have your own my.cnf file on a per-user basis. Create the file:
And add this to it: