Mysql 错误:在 Linux 服务器上导入 sql 文件时出现 ASCII ''

2022-01-05 00:00:00 mysql phpmyadmin mysqldump mysqlimport

导入sql文件时出现以下错误

I am getting following error while importing sql file

ERROR: ASCII '' 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 '' is expected. Query: ''.

需要帮助......!!

HELP NEEDED...!!

推荐答案

尝试类似:

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

并确保您的 sql 文件 是未压缩.

and make sure your sql file is not zipped.

相关文章