There are times that when you are importing a mySQL dump, it would break due to syntax, etc. Currently working on a very large database, running:
mysql -u root -p database < import.sql
will only verbose
ERROR 1064 (42000) at line 116238: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 389
looking at line 389
https://i.stack.imgur.com/aZAJX.png
won't be much help since its not the actual line the SQL is currently executing (it ignores some comments, etc.)
So, to be in general, what is the best way to debug? How to know the actual line causing the issue?
Hope somebody can help thanks!