Need Help,
I have installed MYSQL SERVER and having problem to load a textfile in the DATABASE.
I have a text file called 'pet' and using the following command.
mysql> LOAD DATA LOCAL INFILE '/path/pet.txt' INTO TABLE pet;
As my test file is in Destkop i am using the following path.
mysql> LOAD DATA LOCAL INFILE '/C:\Documents and Settings\rkhanal\Desktop\pet.txt INTO TABLE pet;
'> Lines TERNINATED BY '\n'; //--> Tells me " Unknown command '\n'.//
'> \n';
'>
So the problem is why this line ('>) coming in the screen?
What does that mean? What should i put in there?
How do i see( What command i should use) that this text file is loaded in to my MYSQL database?
i am folling the URL "
http://dev.mysql.com/doc/refman/5.0/...ng-tables.html "
FYI my test file looks like this:-
Tom Ran Dog M 1993-02-04 \N
CHuney Eva Dog F 1994-03-17 1993-02-04
Slim Terry Cat M 1990-08-27 1986-03-05
White John mouse F 1996-04-29 \N
Slim Benny snake m 1996-04-29 1996-05-02
Bowser Diane dog m 1979-08-31 1995-07-29
Your Help will be highly Appriciated,
Thanks,
Ran