Art,
Friday, March 22, 2002, 7:10:24 AM, you wrote:
AL> I ran into the same problem you did. After some searching on the web, this
AL> is what I came up with:
AL> First save the text file in the directory corresponding to the database you
AL> are currently using (menagerie). So the file will be be
AL> "c:\mysql\data\menagerie\pet.txt"
AL> I then typed:
AL> mysql> LOAD DATA INFILE "pet.txt" INTO TABLE pet;
AL> Notice I left out the "LOCAL". I was having trouble specifying the file if
AL> the location was somewhere other than the directory corresponding to the
AL> database in question, but this will at least work. Give it a try and let me
AL> know how it works!
Since 3.23.49 version of MySQL and newer for using
LOAD DATA LOCAL you should start mysqld and mysql with
'--local-infile' option.
You can read more about LOAD DATA LOCAL at:
http://www.mysql.com/doc/L/O/LOAD_DATA_LOCAL.html
AL> Hope this helped.
AL> -Art
--
For technical support contracts, goto https://order.mysql.com/
This email is sponsored by Ensita.net http://www.ensita.net/
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Egor Egorov
/ /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED]
/_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net
<___/ www.mysql.com
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php