I have a file containing 40 gb of rows data, but it is in raw text format (no commands in sql syntax), it's always from one to unlimited rows in one line separated by ; and rows are array in () brackets with values separated with ,
examples of lines:
(1,'text',NULL,NULL);(2,'string',NULL,1);
(12,'date',123,NULL);(2,'foo',11,15);
Is there a way to import this data using mysqlimport or LOAD DATA statement without parsing data with programming languages? If not, what are the ways to parse it fast, preferrably in a few minutes, not days, because when I edit this dump manually with EmEditor (which supposed to be streaming editor but it lags anyway) it takes half a hour to save even a small change...
I have tried ENCLOSED BY option but it does not have brackets option
LOAD DATA
INFILE "path"
INTO TABLE test
CHARACTER SET utf8
FIELDS
TERMINATED BY ','
ENCLOSED BY ')'
LINES
TERMINATED BY ';'