If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Error Loading Text File into Table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-14-09, 19:30
01010011 01010011 is offline
Registered User
 
Join Date: Nov 2009
Posts: 4
Error Loading Text File into Table

Hi,
I keep getting the error message:

Quote:
ERROR 2 (HY000): File 'fileName.txt' not found
whenever I try to load data from a text file (saved on path C into a table like this:

Quote:
LOAD DATA LOCAL INFILE 'fileName.txt' INTO TABLE tableName;
I've also tried:

Quote:
LOAD DATA LOCAL INFILE 'C:/fileName.txt' INTO TABLE tableName;
and

Quote:
LOAD DATA LOCAL INFILE '/fileName.txt' INTO TABLE tableName;
but I keep getting the same error.

Now I've been reading about the security issues related to LOAD DATA LOCAL at:

Code:
http://dev.mysql.com/doc/refman/5.1/en/load-data-local.html
which suggested that LOAD DATA LOCAL can be enabled using:

Quote:
--local-infile[=1] option
My question is, how do I input this command?

Any assistance will be appreciated. Thanks.

Last edited by 01010011; 11-14-09 at 22:25. Reason: Include a link
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On