I'm piping mysqldump
output trough perl -pane 's{(VALUES |\),)\(}{$1\n (}smg'
, so each insert row is on new line, like so:
INSERT INTO (col1, col2, ...) VALUES
(value1, value2, ...),
(value1, value2, ...),
...
But when i try to import this file, then those newlines and spaces produce MySQL has gone away
error, because packet is too large.
Can i tell mysqldump
how many rows(or bytes) to dump per insert?