I'm working on a Linux host with mysql command. I have a script that runs batch mysql commands (like mysql -e "select...") and I wish to summarize execution time of each of the commands.
Is there a way to get mysql exec time from the command line?
For example, in mysql interactive mode, execution result comes with a time, like this:
mysql> select count(*) from trialtable;
+----------+
| count(*) |
+----------+
| 4000 |
+----------+
1 row in set (0.00 sec)
Can I get the same profile in command line?
Thank you
timein front of the commands? Or do you want the real amount of execution time that MySQL consumes while computing the results?