Mysql错误:在linux服务器上导入sql文件时出现ASCII'\ 0' [英] Mysql ERROR: ASCII '\0' while importing sql file on linux server
本文介绍了Mysql错误:在linux服务器上导入sql文件时出现ASCII'\ 0'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
导入SQL文件时出现以下错误
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 enabled and mysql is run in non-interactive mode.
Set --binary-mode to 1 if ASCII '\0' 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'\ 0'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文