[英]PHPMYADMIN error while importing big sql dump
I am trying to import a big SQL dump into my mysql database but I got an error which the following. 我正在尝试将大型SQL转储导入到我的mysql数据库中,但出现以下错误。 Via PHPMYADMIN interface I didn't manage to import it, it says too voluminous.
通过PHPMYADMIN接口,我没有设法导入它,它说太庞大了。 So I tried with command line:
mysql -uroot -p dbsnp < SNP_HGVS.sql
but I got this error: 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:
因此,我尝试使用命令行:
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:
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:
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:
d L'.` 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:
d.L'。
Do you know how to resolve this issue? 您知道如何解决此问题吗? Many thanks.
非常感谢。
It seems to me the character of dump file is not UTF-8.As per the error you need to --binary-mode on. 在我看来转储文件的字符不是UTF-8。根据错误,您需要打开--binary-mode。 Please check the link: [ Enable binary mode while restoring a Database from an SQL dump
请检查链接:[ 从SQL转储还原数据库时启用二进制模式
As per clarification question and comments: 根据澄清问题和意见:
The source SQL dump was not correctly setup and formatted for MySQL. 未正确设置源SQL转储和MySQL格式。 Re-dumping the data with the correct MySQL configuration/format resolves the issue.
使用正确的MySQL配置/格式重新转储数据可解决此问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.