Solved

Data set not found during load data infile

Posted on 2007-11-16
2
583 Views
Last Modified: 2012-08-13
Hello experts:
I'm having a problem trying to do a load dat infile in mysql.
I get this error message: File 'c:\extract.dat' not found (Errcode: 2)

here's my query:
LOAD DATA INFILE 'c:\\extract.dat' INTO TABLE extract FIELDS TERMINATED BY '|';

The extract.dat exists on the c:drive.

thanks
0
Comment
Question by:lancerxe
2 Comments
 
LVL 20

Accepted Solution

by:
steelseth12 earned 400 total points
ID: 20299714
try

LOAD DATA INFILE 'c:/extract.dat' INTO TABLE extract FIELDS TERMINATED BY '|';
0
 
LVL 4

Assisted Solution

by:rubech
rubech earned 100 total points
ID: 20300860
Thats rigth lancer...you need to use slash '/'  in you path to the file instead of backslash '\' like we usualy do in widnows
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

More Fun with XML and MySQL – Parsing Delimited String with a Single SQL Statement Are you ready for another of my SQL tidbits?  Hopefully so, as in this adventure, I will be covering a topic that comes up a lot which is parsing a comma (or other…
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
This video discusses moving either the default database or any database to a new volume.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now