how to find out long running queries in mysql code example Example: mysql show long running queries show processlist;