CREATE TABLE IF NOT EXISTS `vn`.`improvedGeneralLog` ( user char(128) DEFAULT NULL, db char(64) DEFAULT NULL, tables char(64) DEFAULT NULL, type set('Select','Insert','Update','Delete'), PRIMARY KEY(user, db, tables) ) ENGINE=InnoDB; CREATE TABLE IF NOT EXISTS `vn`.`improvedGeneralLogProcedures` ( user char(128) DEFAULT NULL, db varchar(250) DEFAULT NULL, routine char(64) DEFAULT NULL, type enum('FUNCTION','PROCEDURE') NOT NULL, PRIMARY KEY(user, db, routine, type) ) ENGINE=InnoDB;