0

I have run this to enable local infile:

SHOW GLOBAL VARIABLES LIKE 'local_infile';
SET GLOBAL local_infile = 'ON';
SHOW GLOBAL VARIABLES LIKE 'local_infile';

And indeed after that the local infile in on, but when I try loading file again, I still get notification, saying that my file does not exist.

Can someone tell me what should be done ?

oNare
3,2412 gold badges22 silver badges35 bronze badges
asked Oct 31, 2015 at 15:14
1
  • Can you add your command and the error? Commented Oct 31, 2015 at 15:20

1 Answer 1

0

If you already enabled LOAD DATA INFILE and verified its SET to ON, most likely the command you are using or the path you specify for the text file might be wrong.

The command would be mysql> LOAD DATA LOCAL INFILE '/path/filename.txt' INTO TABLE tablename;

Refer to Load Data Infile.

answered Oct 31, 2015 at 16:57

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.