I'm passing some commands to mysql in bash via ssh, and want to see not only the query results, but also the mysql status message returned in stdout.
For instance, when I send:
mysql --defaults-file=~/.my.cnf -e "SELECT orderdate FROM marketdata LIMIT 1;"
I see the following output:
+------------+
| orderdate |
+------------+
| 2019-04-04 |
+------------+
If I'm logged in to the server directly and run the command:
SELECT orderdate FROM marketdata LIMIT 1;
I see the following output:
+------------+
| orderdate |
+------------+
| 2019-04-04 |
+------------+
1 row in set (0.00 sec)
How do I go about seeing the mysql status message displayed after each query "1 row in set (0.00 sec)
" when I'm sending commands via ssh, as well?