Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to check last user that used mysql database and IP

Status
Not open for further replies.

olmos

Technical User
Oct 25, 2000
135
US
How can I check who was the last user who connected to the database and from which IP address ?

Thanks in advance.
olmos
 
I can't think of a way to do it from mysql, but if you have apache running and it connects your users to mysql, then look at /etc/httpd/logs/access_log (or something to that effect).

Mark

SELECT * FROM management WHERE clue > 1
> 0 rows returned

--ThinkGeek T-Shrit
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top