| Databases InterBase (29) MS-SQL (5) mysql (37) Oracle (1) |
How to log all mysql database modifications
Question: How can we log changes done to our mysql production database? People here use the mysql shell as their client.Answer: You can specify tee=/var/logs/mysql_cli.log in the mysql shell config file (my.cnf) and it will log all CLI session content (input and output) to this file.Considering that these CLI modifications can be very powerful, you really should log them. This does not help if some users use a web front end e.g. phpmyadmin.
Comments:
| ||||||||||||||||||