Jump to content

The used command is not allowed with this MySQL version


Drewser33

Recommended Posts

Mysql version 5.5

Linux OS - Debian

LOAD DATA LOCAL INFILE '/var/tmp/import.csv' INTO TABLE r_data FIELDS TERMINATED BY  ',' ENCLOSED BY  '"' LINES TERMINATED BY  '\n' IGNORE 1 ROWS (first_name,last_name,a_number,a_id)

Error: The used command is not allowed with this MySQL version

 

I have tried this from the mysql command line, phpmyadmin, and a php script, all with the same error.  I have changed the local_infile GLOBAL VARIABLE to ON and restarted the mysql service to no avail.  There are a lot of ideas on this out there, but I can't seem to put it all together.

 

I was able to run the version of LOAD DATA INFILE, if I placed the same CSV in the root mysql directory, so I know that the CSV information is valid.

 

Thanks for any help.

I have changed the local_infile GLOBAL VARIABLE to ON

 

 

how exactly did you make this change and have you checked, with a show variables query, that the database server shows that it actually got changed to an ON value?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.