Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2010
    Location
    Montreal, CA
    Posts
    32

    Unanswered: 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?

  2. #2
    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 .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •