I\'m running multiple queries using PDO. If the second query fails, now Exception is thrown.
$db = new PDO(\"mysql:host=localhost;dbname=test\", \'root\', \
There's no clear&easy way to do that.
I think, the best way is to read dump file query-by-query and execute one query at a time.
You can also parse error message and extract problem line number if DB driver tells it (like 'unknown identifier 'blabla' on line 666').