Und wenn wir schon dabei sind, kannst Du Dir auch den Umweg über PHP ganz sparen:
Die Hilfe zu mysql_import() sagt:
--fields-enclosed-by
This option has the same meaning as the
corresponding clause for LOAD DATA
--fields-escaped-by
This option has the same meaning as the
corresponding clause for LOAD DATA
--fields-optionally-enclosed-by
This option has the same meaning as the
corresponding clause for LOAD DATA
--fields-terminated-by
This option has the same meaning as the
corresponding clause for LOAD DATA
--force
Continue even if an SQL error occurs