The Slow Query Log Mysql. Set the amount of time a query needs to run before being logged. Correct them rewrite indexes etc.

Long_query_time was required to be an integer and the minimum value was 1. There are various ways you can investigate these but the most common and efficient way is to use the slow query logs. You can change the value dynamically and you can specify either a single value or a comma separated list of values for example.
The MySQL slow query log is where the MySQL database server registers all queries that exceed a given threshold of execution time.
Logging MySQL slow queries to a file. Set the amount of time a query needs to run before being logged. Long_query_time was required to be an integer and the minimum value was 1. If a query takes longer than the value specified this query will be recorded in the slow query log file.