错误1148:此MySQL版本不允许使用used命令 [英] ERROR 1148: The used command is not allowed with this MySQL version

查看:132
本文介绍了错误1148:此MySQL版本不允许使用used命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用

LOAD DATA LOCAL
INFILE A.txt
INTO DB
LINES TERMINATED BY '|';

这个问题的主题是我得到的回复。我知道本地数据卸载默认是关闭的,我必须使用命令 local-infile = 1 启用它,但我不知道在哪里放置此命令。 / p>

the topic of this question is the response I get. I understand the local data offloading is off by default and I have to enable it using a the command local-infile=1 but I do not know where to place this command.

推荐答案

您可以在设置客户端连接时将其指定为附加选项:

You can specify that as an additional option when setting up your client connection:

mysql -u myuser -p --local-infile somedatabase

这是因为该功能打开了一个安全漏洞。因此,您必须手动启用它,以防您真正想要使用它。

This is because that feature opens a security hole. So you have to enable it manually in case you really want to use it.

这篇关于错误1148:此MySQL版本不允许使用used命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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