I have a PHP application that talks to Mysql. The application connects to MySQL using a username and password. Anyone who makes changes to the MySQL database through the application can get their username logged and this can be later audited. However, sometimes we need to do some operations from the backend , ie directly into the database. What I want to know is that is is possible to log the information about users logging into the DB directly( probably using phpMyAdmin ) and making changes to specific tables and how this information can be viewed later ? Further, is it possible that if the changes are made to specific tables directly through the backend then some triggers are fired where was if those same changes are made from the front end, ie using the PHP application , then these triggers are not fired ?
-Thanks in advance