Mysql ERROR: ASCII '\0' while importing sql file on linux server

前端 未结 3 1314
感情败类
感情败类 2021-01-01 18:37

I am getting following error while importing sql file

ERROR: ASCII \'\\0\' appeared in the statement, but this is not allowed unless option --binary-mode is         


        
3条回答
  •  情书的邮戳
    2021-01-01 19:11

    Try something like :

    mysql -u root -p -h localhost -D database --binary-mode -o < dump.sql
    

    and make sure your sql file is not zipped.

提交回复
热议问题