MySQL 5.1 - logging CREATE/ALTER statements
Posted
by pako
on Stack Overflow
See other posts from Stack Overflow
or by pako
Published on 2010-04-06T10:55:55Z
Indexed on
2010/04/06
11:03 UTC
Read the original article
Hit count: 250
Is it possible to log CREATE / ALTER statements issued on a MySQL server? I heard that it could be done with a trigger, but I can't seem to find suitable code anywhere. I would like to log these statements to a table, preferably with the timestamp of when they were issued. Can someone provide me with a sample trigger that would enable me to accomplish this?
I would like to log these statements so I can easily synchronize the changes with another MySQL server.
© Stack Overflow or respective owner