如何解决来自 MySql 工作台而不是 cmd 的错误 1148? [英] How to solve Error 1148 from MySql workbench and not cmd?

查看:61
本文介绍了如何解决来自 MySql 工作台而不是 cmd 的错误 1148?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行以下语句来导入数据:

I am running the following statement to import data:

LOAD DATA LOCAL INFILE     'C:\\Users\\talkohavy\\Desktop\\MySQL_data\\categories.csv'
INTO TABLE BI_EX_OLTP.categories 
FIELDS TERMINATED BY ','
IGNORE 1 LINES;

然后我收到此错误:

错误代码 1148.该mysql版本不允许使用使用的命令.

error code 1148. the used command is not allowed with this mysql version.

如何使用 MySql Workbench 而不是 cmd 启用加载本地数据?

How can I enable loading local data using the MySql Workbench and not the cmd?

推荐答案

我相信这是 Workbench 新版本的问题(在 Workbench 8.0.12 中也有同样的问题).我在 5.7.x 版本的 Workbench 中没有这个问题,降级到这个版本已经为我解决了这个问题.

I believe this is an issue with the new versions of Workbench (having the same issue in Workbench 8.0.12). I did not have this issue in the 5.7.x version of Workbench, and downgrading to this version has fixed the issue for me.

此处记录了此错误:https://bugs.mysql.com/bug.php?id=91891

我建议要么降级到旧版本的 Workbench,要么使用不同的方式来执行命令(例如通过 mysql CLI 命令,或使用其他工具进行连接,例如 DataGrip 等).

I recommend either downgrading to an older version of Workbench, or using a different means to execute the command (such as through the mysql CLI command, or using another tool to connect such as DataGrip, etc).

这篇关于如何解决来自 MySql 工作台而不是 cmd 的错误 1148?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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