Easy way to find which query is consuming lots of time in mySQL using default options and tools.
First check if the required options are enabled
Row we are checking are slow_query_log & long_query_time
long_query_time — consists of SQL statements that take more than long_query_time seconds to execute and require at least min_examined_row_limit rows to be examined
Once everything is set
mySQLWorkBench
Open mySQLWorkBench
Click Server Logs
On the right side, select Slow Log File
You can right click on the log record and find details and partial query.