I have a small monitoring system that aims to show if the data on some servers are the same as the backups .
As the system interacts directly with the database, there was a need to know who was accessing and when accessing the system, as I am new to the programming area, my first alternative was to set up a function that stored the name, IP, the user action along with the date / time that the user performed the action on a MySQL database.
I saw that there are other options, writing in txt
for example, however, saving the accesses in MySQL, it is much easier to manipulate them for statistical and similar use.
Am I doing it right? Is there another way to do this that is as effective as this? What's the problem with doing that? Does it depend on the number of hits?