bash - MySQL statistics output -
i have sql file temporary tables creation, load data infile, selects , updates.
i know time spent on each statement, through cli on shell. if file contains:
select "step 1" ''; select col1, col2 t1 order col3;
and run:
mysql -h host db < file
the output is:
step 1 1 row in set (0.00 sec) col1 col2 20073 0724081 20073 0724685 20073 0726347 20073 0726932 20073 0733623 5 rows in set (0.00 sec)
tne 1 row in set (0.00 sec)
, 5 rows in set (0.00 sec)
information i'm looking for, not un*x time process.
i've tryied different mysql
options, --show-warnings --i-am-a-dummy
no avail. there way requested info?
thanks,
edit: added missing time first select.
try mysql profiler - http://dev.mysql.com/tech-resources/articles/using-new-query-profiler.html
Comments
Post a Comment