简体   繁体   中英

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

I am getting a strange error from my SQL when trying to insert a file into mysql on aws RDS.

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

I am running on ubuntu 12.04 desktop and just did a apt_install mysql-server mysql-client.

How can I resolve this?

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

Try starting the mysql server with --local-infile=1

So depending on how you start your server it would look like:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM