|
|
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? | |
| |
| |
|
|
There is no answer at this time. |
|
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! |
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 Home - Answers FAQ - Terms of Service - Privacy Policy |