mysql: see all open connections to a given database?

flybywire picture flybywire · Oct 25, 2009 · Viewed 221.2k times · Source

With administrative permissions im mysql, how can I see all the open connections to a specific db in my server?

Answer

David Rabinowitz picture David Rabinowitz · Oct 25, 2009

The command is

SHOW PROCESSLIST

Unfortunately, it has no narrowing parameters. If you need them you can do it from the command line:

mysqladmin processlist | grep database-name