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

前端 未结 3 761
南旧
南旧 2021-01-01 18:51

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:32

    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.

提交回复
热议问题