I have a file that contains one SQL command per line and I pipe it to the mysql client.
I would like to know at which line it fails (when it fails) to be able to continue without re-processing the already-processed lines.
cat my_file | magic_cmd | mysql --params