This is an old revision of the document!
Database
Cleaner Terminal Output
MySQL can have quite messy output when running queries from the mysql
cli. You can terminate a statement with \G
instead of ;
to format as a list instead of table.
SELECT * FROM users\G
Alternatively, you can set the pager to less
which retains the table format and can be scrolled with arrowkeys.
pager less -SFX SELECT * FROM users; nopager; -- to turn off