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 > Load Data Local Infile - File not found (Errcode: 2)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-17-10, 12:19
Diesel Dud Diesel Dud is offline
Registered User
 
Join Date: Feb 2010
Location: Montreal, CA
Posts: 32
Load Data Local Infile - File not found (Errcode: 2)

Hi,

I am attempting to upload a file found on my local computer to an online database (mysql). Here is my sql statement:

LOAD DATA LOCAL INFILE 'C:\\a.csv'
INTO TABLE TableA
FIELDS TERMINATED BY ','
LINES TERMINATED BY '\n'

I get the error message "File not found (Errcode: 2)"
Can anyone be of assistance?
Reply With Quote
  #2 (permalink)  
Old 06-02-10, 21:14
Mohsinkhan Mohsinkhan is offline
Registered User
 
Join Date: Jun 2010
Posts: 4
the reason u get that error is
one of the directory in which u have the file does not have the enough permission.

change the permission then try again or move the file to directory which is owned by you not by root or admin

as ur using local infile u shouldnt get this error .
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