MySQL Forums
Forum List  »  Other Migration

Errcode: 2 Problem in using Infile
Posted by: Safi Siddiqui
Date: April 26, 2012 12:51PM

Sorry. My Mistake, put the question in wrong place in the forums. How do I delete the question? =/

_________________________________

Hello,

I'm having an issue with loading data into a table using load script.

This is my script:

LOAD DATA INFILE 'C:\Users\m\Desktop\a2\DCES.dat'
into table test_table
FIELDS TERMINATED BY ';'
LINES TERMINATED BY '\n'
IGNORE 3 LINES
(DCES_Id,Consumer_name,Consumer_Address,Billing_Month,DCES_Present_Reading,DCES_Previous_Reading,DCES_Unit_Consumption,DCES_Energy_Charges,DCES_Surcharges,DCES_Total,DCES_Late_payment,DCES_Due_date);

Every time I run this script it gives the error: "#29 - File 'C:\xampp\mysql\data\UsersmDesktopa22DCES.dat' not found (Errcode: 2)"

I tried adding 'LOCAL' to the script, but it just gave me a new error. "#7890 - Can't find file 'C:UsersmDesktopa22DCES.dat'."

Also, the path I have given is correct, I have checked, and rechecked it. The file is absolutely present at this location, but it is not being found.

Any help would be greatly appreciated.



Edited 1 time(s). Last edit at 04/26/2012 02:20PM by Safi Siddiqui.

Options: ReplyQuote


Subject
Views
Written By
Posted
Errcode: 2 Problem in using Infile
7412
April 26, 2012 12:51PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.