I've MySQL installed on my Ubuntu server. Because I would like to clean up my users they're currently active in MySQL, I would like to check first which users - and from which host - are connecting to the MySQL server.
The only thing I need is: which host is connecting and which username is used.
I tried to perform this task with tcpdump, but with no luck so far. It looks easy to get the whole query, but I do not get the above mentioned information. The server is heavily used, if there is no other option I can enable the general query log, but if it is possible I would like to prevent this option.
Does anyone have a tip for me on how I can perform this task?