Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using LOAD DATA LOCAL INFILE

Status
Not open for further replies.

viksha

Instructor
Sep 16, 2003
2
IN
I am using phpMyAdmin 2.2.6 with MySQL 3.23.41 and trying to update the data of a table from the local database, I am trying the following with phpMyAdmin for this

LOAD DATA LOCAL INFILE 'c:/table.txt' REPLACE INTO TABLE oldone
FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\r\n'

But it gives me the following error

MySQL said:

File 'c:/table.txt' not found (Errcode: 2)

While the file is right there in the location. What could be the reason and how to overcome this could anyone please explain this??

Thank You
 
It's the "infile" clause of your query.

"Infile" is used when the datafile resides on the client machine, not the server machine.

If your datafile is on the server machine, drop the keyword "infile" from your query.

Want the best answers? Ask the best questions: TANSTAAFL!!
 
Yeah, I have the datafile residing in the client machine But still gets this error. :(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top