monitor mysql queries running localhost code example Example: mysql current running queries show processlist;