-
Book Overview & Buying
-
Table Of Contents
MySQL 5.1 Plugin Development
Besides many other features, MySQL 5.5 adds a new plugin type—Audit plugin. As the name suggests, it allows us to do auditing and logging of whatever happens in the server. At certain points, the MySQL server emits audit events. An audit plugin can subscribe to receive them, all or only a subset, for further processing. Let's look at what the audit event looks like:
struct mysql_event
{
unsigned int event_class;
};
Every audit event is characterized by its class. The event structure may have more members, but what they are depends on the event class.
Now, what makes the audit plugin API different from all other plugin type APIs—it is not feature complete. It does not try to anticipate all possible audit use cases and generate all possible audit events for everything that anyone may want to audit some day. Instead, MySQL developers (including one of the authors of this book) have only implemented one audit event class—general—as new audit classes can be added later, when they...
Change the font size
Change margin width
Change background colour