Mysql – Query duration in MySQL General log

MySQL

MySQL has feature of logging all sql queries – General log.

But this log does not contain queries durations.

How to log all sql queries to analyze those durations?

Best Answer

I got an answer after writing a question, but i want to share it to community.

Just set up Slow log and set SET GLOBAL long_query_time = 0.

You will see all sql queries with durations in slow log file.