Mysql 错误:在 Linux 服务器上导入 sql 文件时出现 ASCII '' [英] Mysql ERROR: ASCII '' while importing sql file on linux server

查看:39
本文介绍了Mysql 错误:在 Linux 服务器上导入 sql 文件时出现 ASCII ''的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

这篇关于Mysql 错误:在 Linux 服务器上导入 sql 文件时出现 ASCII ''的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆