MySQL 5.1 / phpMyAdmin - 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/14 18:13 UTC
Read the original article Hit count: 281

Filed under:
|
|

Is it possible to log CREATE / ALTER statements issued on a MySQL server through phpMyAdmin? 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

Related posts about mysql

Related posts about audit-ddl