0

I am trying to import a big SQL dump into my mysql database but I got an error which the following. Via PHPMYADMIN interface I didn't manage to import it, it says too voluminous. 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:d�L'.`

Do you know how to resolve this issue? Many thanks.

Martin
  • 20,858
  • 7
  • 60
  • 113
user979974
  • 791
  • 2
  • 8
  • 26

2 Answers2

0

It seems to me the character of dump file is not UTF-8.As per the error you need to --binary-mode on. Please check the link: [Enable binary mode while restoring a Database from an SQL dump

Community
  • 1
  • 1
Dipanwita Kundu
  • 1,639
  • 1
  • 8
  • 14
  • I took a look at your link, when I add option `--binary -o` it displays:`ERROR at line 1: Unknown command '\O'.` any idea? – user979974 Apr 18 '16 at 12:31
0

As per clarification question and comments:

The source SQL dump was not correctly setup and formatted for MySQL. Re-dumping the data with the correct MySQL configuration/format resolves the issue.

Walt Sorensen
  • 361
  • 3
  • 14