Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > troubles with mysql tutorial

troubles with mysql tutorial
Thread Tools
Fresh-Faced Recruit
Join Date: Mar 2001
Location: Ft. Walton Bch FL
Status: Offline
Reply With Quote
Mar 18, 2002, 09:11 PM
 
I am working through the tutorial that is included with the mysql install. I am inserting data from a text file into a table called pets in a database called test. The sql "describe" command shows the table is set up properly. I made a text file that is has a row per record and the fields are separated by tabs. I saved it in my documents folder under the name pets.txt . The directions tell me to use the following command:

mysql> LOAD DATA LOCAL INFILE "pet.txt" INTO TABLE pet; When I do this I get an error!!!

mysql> load data local infile "/users/bbrown/documents/pet.txt" into table pet;
ERROR 1148: The used command is not allowed with this MySQL version

What does this mean?? I'm using version 3.23.49 of mysql.

Are you supposed to use the path to the text file in this command? If not where should it be saved? Any hints are welcomed!!!

Thanks.....
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:01 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2