I wish to discover the customers attached to a database. How do you perform this in SQL (mySQL)

SHOW FULL PROCESSLIST can have the all connected periods and you will take out user list from this.

I did not check it out:


This can return the some good info observed in the command line client, this question require PROCESS privilege for that user who made the query to be able to see other client connection information.