MySQL <class'_mysql_exceptions.operationalerror'=“”>,OperationalError(1148,&#39;此MySQL版本不允许使用的命令&#39;)</class>

时间:2012-09-15 17:18:20

标签: mysql

尝试在aws RDS上将文件插入mysql时,我的SQL出现了一个奇怪的错误。

(<class '_mysql_exceptions.OperationalError'>, OperationalError(1148, 'The used command is not allowed with this MySQL version'), <traceback object at 0x7f34d8485dd0>)

我在ubuntu 12.04桌面上运行,只是做了一个apt_install mysql-server mysql-client。

我该如何解决这个问题?

mysql -V mysql Ver 14.14 Distrib 5.5.24,debian-linux-gnu(x86_64)使用readline 6.2

1 个答案:

答案 0 :(得分:0)

尝试使用--local-infile = 1

启动mysql服务器

因此,根据您启动服务器的方式,它看起来像:

$ mysql --local-infile = 1 -u root -p