Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

load a log file in that format into MySQL

Copied
LOAD DATA INFILE '/local/access_log' INTO TABLE tbl_name
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' ESCAPED BY ''
Source by dev.mysql.com #
 
PREVIOUS NEXT
Tagged: #load #log #file #format #MySQL
ADD COMMENT
Topic
Name
3+1 =