How can I check on my MySQL server the follow:
what accounts have an open connection to the mysql-server ?
how often they request a new connection ?
how many requests they usually do per connection ?
It would be nice if I could aswell identify the codes that are making the calls aswell like, let's say:
/home/domainX/public_html/db.pl or /home/domainX/public_html/index.php
I guess this last part is only available if it is a socket call right ?
mysqladmin processlist
Not sure - try the General Query log - but I suspect it may not record connections - only queries
See above.
The socket architecture does not allow for this deterministically - you can only get this from an assertion by the client program or by partitioning the code to use different authentication details.
Eh? That question makes no sense. There is no way to connect to a mysql other than using a socket.
You could try using mtop at http://mtop.sourceforge.net/