首页 > 基础资料 博客日记

DBeaver导入sql脚本报错java.io.IOException: Process failed (exit code = 1). See error log.

2024-10-10 02:00:07基础资料围观101

本篇文章分享DBeaver导入sql脚本报错java.io.IOException: Process failed (exit code = 1). See error log.,对你有帮助的话记得收藏一下,看Java资料网收获更多编程知识

2024-07-02 09:16:56.902 - IO error: Process failed (exit code = 1). See error log.
2024-07-02 09:16:56.902 - java.io.IOException: Process failed (exit code = 1). See error log.
    at org.jkiss.dbeaver.tasks.nativetool.AbstractNativeToolHandler.validateErrorCode(AbstractNativeToolHandler.java:263)
    at org.jkiss.dbeaver.tasks.nativetool.AbstractNativeToolHandler.executeProcess(AbstractNativeToolHandler.java:241)
    at org.jkiss.dbeaver.tasks.nativetool.AbstractNativeToolHandler.doExecute(AbstractNativeToolHandler.java:283)
    at org.jkiss.dbeaver.ext.mysql.tasks.MySQLNativeToolHandler.doExecute(MySQLNativeToolHandler.java:47)
    at org.jkiss.dbeaver.tasks.nativetool.AbstractNativeToolHandler.lambda$0(AbstractNativeToolHandler.java:87)
    at org.jkiss.dbeaver.runtime.RunnableContextDelegate.lambda$0(RunnableContextDelegate.java:39)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)

问题原因:

编码不一致,sql脚本文件是utf8编码,而mysql默认以gbk编码连接数据库。

解决方案:

在执行脚本时候添加额外的命令参数:

--default-character-set=utf8


文章来源:https://blog.csdn.net/weixin_44065196/article/details/140117339
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:jacktools123@163.com进行投诉反馈,一经查实,立即删除!

标签:

相关文章

本站推荐

标签云