Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which SQL Query takes more time? (MYSQL)

Tags:

mysql

How to check which sql query is taking more time? (MYSQL) Im using a dedicated Linux server and the website is consuming 1 GB of RAM, the company says its because of SQL queries (MYSQL). Can anybody tell me how to check which sql queries is taking more time and utilizing more resources?

like image 282
fawad Avatar asked Jun 06 '11 16:06

fawad


1 Answers

You can use the Mysql Slow Query Log.

like image 83
Cyril N. Avatar answered Oct 18 '22 02:10

Cyril N.