Google Answers Logo
View Question
 
Q: Mysql load data ( No Answer,   4 Comments )
Question  
Subject: Mysql load data
Category: Computers > Programming
Asked by: jimmyjrosu-ga
List Price: $2.00
Posted: 18 Jun 2003 19:20 PDT
Expires: 17 Jul 2003 07:08 PDT
Question ID: 219044
I am using Mysqladmin version 1.4 for windows xp.  I am using the
command "load data infile "pet.txt" into table pet".  You all know the
tutorial.  The problem is it keeps telling me there is no file.  I
tried "load data local infile......" also and it says no file, i have
tried saving the file in several different folders.  Anyone tell me
what is up here?

Request for Question Clarification by sgtcory-ga on 19 Jun 2003 12:06 PDT
Hello Jimmy,

Which version of MySql are you using?

Thanks,

SgtCory

Clarification of Question by jimmyjrosu-ga on 19 Jun 2003 12:54 PDT
Please excuse my inability to tell you the exact version as I am not
at home and will not be until sunday but it is the most recent stable
version for windows listed on the mysql website.  Thank you.

Request for Question Clarification by sgtcory-ga on 19 Jun 2003 14:30 PDT
Great.

When you get a chance, can you post the exact same command you are
using, to include all 'FIELDS TERMINATED BY' and 'ENCLOSED BY'
information?

Thanks in advance -

SgCory
Answer  
There is no answer at this time.

Comments  
Subject: Re: Mysql load data
From: morgo-ga on 18 Jun 2003 23:17 PDT
 
Stupid question perhaps -
What happens if you supply an absolute path to the file?

(instead of just using a relative path)
Subject: Re: Mysql load data
From: jimmyjrosu-ga on 19 Jun 2003 06:03 PDT
 
I have tried "load data infile C:\mysql\pet.txt.........."  and I get
an error as well
Subject: Re: Mysql load data
From: greco-ga on 19 Jun 2003 19:46 PDT
 
did you try doubling the \ character?  c:\\mysql...

*The `\' directory character*
     Pathname components in Win95 are separated by `\' characters,
     which is also the escape character in *MySQL*.  If you are using
     `LOAD DATA INFILE' or `SELECT ... INTO OUTFILE', you must double
     the `\' character or use Unix style filenames `/' characters:
          LOAD DATA INFILE "C:\\tmp\\skr.txt" INTO TABLE skr;
          SELECT * INTO OUTFILE 'C:/tmp/skr.txt' FROM skr;
Subject: Re: Mysql load data
From: jimmyjrosu-ga on 21 Jun 2003 17:11 PDT
 
greco-ga,
if you would like to post your comment as an answer, that will be
accepted, it worked.  Thanks!

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy