Hello everyone, how can I trace sleeping mysql queries on my database? And what terminal can I use to execute commands in my remotes mysql database to optimize it? thanks...
There is also a query log feature in mysql that you can use to find troublesome queries. It is great for finding slow / non optimized queries. However you do need to configure it to start logging. Here are the documents. http://dev.mysql.com/doc/refman/5.1/en/query-log.html