导入大型sql转储时出现PHPMYADMIN错误

时间:2016-04-18 06:54:07

标签: mysql dump

我正在尝试将一个大的SQL转储导入我的mysql数据库,但是我收到了以下错误。 通过PHPMYADMIN界面,我没有设法导入它,它说太多了。 所以我尝试使用命令行:mysql -uroot -p dbsnp < SNP_HGVS.sql但是我收到了这个错误: ERROR: ASCII '\0' appeared in the statement, but this is not allowed unless option --binary-mode is enabled and mysql is run in non-interactive mode. Set --binary-mode to 1 if ASCII '\0' is expected. Query: dL的&#39; .`

您知道如何解决此问题吗? 非常感谢。

2 个答案:

答案 0 :(得分:0)

在我看来,转储文件的字符不是UTF-8。根据你需要的错误--binary-mode on。请检查链接:[Enable binary mode while restoring a Database from an SQL dump

答案 1 :(得分:0)

根据澄清问题和评论:

没有为MySQL正确设置和格式化源SQL转储。使用正确的MySQL配置/格式重新转储数据可以解决问题。

相关问题