you’re doing some command line mysql work, something like piping in a query to mysql and dumping the output to STDOUT. what you want, of course, is some nicely-formatted output. what you get, instead, is hot trash like this:
$ echo "SELECT * FROM albums" | mysql record_collection_db
id artist tite
1 Bratmobile Pottymouth
2 Coltrane, John Giant Steps
fortunately, mysql has some built-in formatters to help the world make sense again.
Continue reading →