Currently, the file is actually loaded into the database with the MySQL-specific LOAD DATA LOCAL INFILE statement. Fallback to a row-by-row method when not MySQL. Perhaps a place fo a hook...
Currently, the file is actually loaded into the database with the MySQL-specific LOAD DATA LOCAL INFILE statement. Fallback to a row-by-row method when not MySQL. Perhaps a place fo a hook...
Comments
Comment #1
codexmas commentedAye +1 to this, LOAD DATA LOCAL INFILE is quite a security risk on shared hosting servers, anyone can read any other DB as the MySQL user.
Comment #2
mikeryanSince even some versions of MySQL don't support this, I'm changing this to critical. I will implement row-by-row import, with a "quick import" option using LOAD DATA LOCAL on MySQL (does Postgres have an equivalent).
Comment #3
mikeryanDone - please try it out if you're dealing with delimited files.
Comment #4
mikeryanSo far so good - I'm marking this as fixed, if anyone has a problem importing delimited files please open a new issue.