source导入sql文件出错ASCII ‘\0’ appeared in the statement

错误代码

出现下面的错误代码

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: ''.
Bye

解决方案

登录mysql数据库用下面的命令

mysql --binary-mode=1 -u root -p

相当于比之前就增加了--binary-mode=1就解决了上述编码问题

© 版权声明
THE END
喜欢就支持一下吧
点赞36赞赏 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容