Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/63.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mysql 导入数据库会在SQL语法和/或编码错误中引发1064错误_Mysql_Phpmyadmin_Sequelpro - Fatal编程技术网

Mysql 导入数据库会在SQL语法和/或编码错误中引发1064错误

Mysql 导入数据库会在SQL语法和/或编码错误中引发1064错误,mysql,phpmyadmin,sequelpro,Mysql,Phpmyadmin,Sequelpro,我一直在尝试从托管phpMyAdmin接口导出DB,并将其本地导入phpMyAdmin或使用SequelPro。这从来都不是个问题。但最近,当我在本地phpAdmin GUI中导入DB时,我得到了如下错误: [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 u

我一直在尝试从托管phpMyAdmin接口导出DB,并将其本地导入phpMyAdmin或使用SequelPro。这从来都不是个问题。但最近,当我在本地phpAdmin GUI中导入DB时,我得到了如下错误:

[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
我应该运行什么查询或如何检查
query36
第22行
。我怀疑某个条目已损坏,从而导致错误

相反,如果我尝试将DB导入SequelPro,则会出现以下错误:

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.
继此错误之后,我尝试导入时将编码设置为
Western(Mac OS Roman)
。但我还是犯了同样的错误

无可否认,DB主要以UTF-8编码。但也有一些表编码为cp1252/latin1_swedish_ci。这种情况一直如此,从未出现任何出口/进口问题

此外,另一个可能的问题是,大多数表类型都是MyISAM。然而,少数人是InnoDB,这是有原因的。但这也没给我们带来问题


任何线索或建议都将不胜感激

能找到答案吗?我也有同样的问题,几乎没有办法解决。这两种方法都既乏味又烦人:1。导出表的批次,然后一次重新导入一个批次。2.导出没有压缩的DB,并以相同的方式导入。我有两个表包含的导入函数数据太多(在一个蹩脚的服务器+phpMyAdmin上),所以我将它们从导出中排除。找到答案了吗?我也有同样的问题,几乎没有办法解决。这两种方法都既乏味又烦人:1。导出表的批次,然后一次重新导入一个批次。2.导出没有压缩的DB,并以相同的方式导入。我有两个表包含的导入函数数据太多(在一个糟糕的服务器+phpMyAdmin上),所以我从导出中排除了它们。