Skip to content

Instantly share code, notes, and snippets.

@kidach1
Created August 26, 2014 07:15
Show Gist options
  • Save kidach1/b766d1993a9c100f6290 to your computer and use it in GitHub Desktop.
Save kidach1/b766d1993a9c100f6290 to your computer and use it in GitHub Desktop.
mysql> show processlist;
+----+------+-----------+-------------+---------+------+-------+-----------------------+
| Id | User | Host | db | Command | Time | State | Info |
+----+------+-----------+-------------+---------+------+-------+-----------------------+
| 1 | root | localhost | foo_dev | Sleep | 3737 | | NULL |
| 3 | root | localhost | bar_dev | Query | 0 | init | show full processlist |
+----+------+-----------+-------------+---------+------+-------+-----------------------+
2 rows in set (0.00 sec)
$ mysqladmin -uroot -hyyyy -pxxxx processlist
$ mysqladmin -uroot -hxxxx -pyyyy processlist
+----+------+-----------+-----------+---------+------+-------+------------------+
| Id | User | Host | db | Command | Time | State | Info |
+----+------+-----------+-----------+---------+------+-------+------------------+
| 1 | root | localhost | foo_dev | Sleep | 3770 | | |
| 6 | root | localhost | | Query | 0 | init | show processlist |
+----+------+-----------+-----------+---------+------+-------+------------------+
$ mysqladmin -uroot -hxxxx -pyyyyy processlist |grep localhost |grep -v processlist
| 1 | root | localhost | foo_dev | Sleep | 4095 | | |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment