Im researching the best way of logging queries in MySQL database. The log should be used for two things:
- Documentation of system activity
- Used to recreate the database (in case the database is hacked or otherwise corrupted)
It's possible to log all queries in a MySQL database (like this example)
Question: It is possible to recreate a database on the basis of the log file, or should I use a different approach?