I\'ve got a mysql file with over than 14000 statements. All of them are inserts into a table, and when I import the file using console, it throws the following error:
In my case it was the number of "?" in the prepared statement
prepare stmt1 from "insert into company (name, address, phone) values(?,?);"; /*note only 2 question marks which should be 3.*/
This also will trigger the same error
insert into company (name, address, phone) values('foo','bar');