Ativar log de consulta MySQL
SET general_log = 1;
Onkar Gujar
SET general_log = 1;
log = /path/to/query.log #works for mysql < 5.1.29
Copied
LOAD DATA INFILE '/local/access_log' INTO TABLE tbl_name
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' ESCAPED BY '\\'