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
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.