MySQL tip of the day: getting rid of the results formatting on the CLI
The problem
When using MySQL from the CLI, the -e
flag comes in handy to execute MySQL commands directly in bash, like mysql -uroot -p -e "SHOW DATABASES;"
. Which gives nicely formatted output like: