We have some distributed servers that connect to the same MySQL server. We need to have a log with the date/time when it was the last time a MySQL User logged in. How could I do that?
MySQL – How to Know When a MySQL User Was Last Authenticated
MySQL
Best Answer
You can do it using several ways: Create general log and store there the info like in this answer:
Or create a table in to the database and store there every login via stored procedure as explained in this web page