Hi everyone,
Apologies if I missed any related discussions on this topic.
We use machines running MySQL services, and I want to track user logins to delete users who haven’t connected in the last 180 days .
I thought of creating a table with user_name
and last_login_date
. When a user connects to the service, it would check if the user exists; if they do, it updates the date; if not, it adds a new entry.
I’ve encountered some issues:
- Using audit logs overwhelms my logs, and cleaning them up doesn’t solve the problem.
- Filtering the logs didn’t help.
- Using triggers didn’t work, as we have multiple databases and a large number of connections.
Do you have any suggestions? Does Percona have a tool that could help with this?
Tnx in advance !!