I have a problem with the MySQL output formatting while executing the commands from a bash script.
If I execute a command on the command line then, I am able to get
If you want to have --table option enabled by default when calling mysql program, please check this SO answer How to store MySQL results to a file in table format.