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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.