I have a transaction in a table of a MySql database and (php + apache). I was wondering if I could retrieve (either in the apache log or in the MySql log) the ip from where the query that made this insert was generated. Any ideas?
I have a transaction in a table of a MySql database and (php + apache). I was wondering if I could retrieve (either in the apache log or in the MySql log) the ip from where the query that made this insert was generated. Any ideas?
It is called general query log and is disabled by default. By enabling it, the server will store each operation performed; it is worth reading documentation on the subject as it is possible to create a list of SQL commands that you do not need to save in the log.