I've been trying to export a DB from a hosted phpMyAdmin interface and import it locally either into phpMyAdmin or using SequelPro. This never used to be a problem. But recently when I import the DB in my local phpAdmin GUI I get an error of the sort:
[ERROR in query 36] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?' at line 22
What query should I run or how should I inspect query 36
or line 22
. I suspect that maybe an entry has corrupted, resulting in the error.
If, instead, I try to import the DB into SequelPro I get an error of this sort:
File read error
An error occurred when reading the file, as it could not be read in the encoding you selected (Autodetect - Unicode (UTF-8)).
Only 0 queries were executed.
Following up on this error, I've tried importing with Encoding set to Western (Mac OS Roman)
. But I still get the same error.
The DB admittedly is mostly encoded in UTF-8. But there are a few tables that are encoded as cp1252 / latin1_swedish_ci. This was always so and never gave any export / import problems.
Moreover, another possible issue is the fact that most of the table Types are MyISAM. However a minority are InnoDB, for a reason. But then again this never gave us issue.
Any clues or suggestions are much appreciated.