Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error when trying to load data into a table

Status
Not open for further replies.

wailerwailer

Technical User
Apr 25, 2003
1
US
I am trying to work with a mysql tutorial and everytime I try to load the *.txt file I get the following.

mysql> LOAD DATA LOCAL INFILE "C:\menagerie\pet.txt" INTO TABLE pet;
ERROR 1148: The used command is not allowed with this MySQL version


Does anybody know how to fix this?
 
Drop the keyword "LOCAL" from your query.

The "LOCAL" keyword implies "local to the client from which you are connecting", not "local to the database server". It's a function where a datafile can be bulk loaded without having to write it to the server first.

Want the best answers? Ask the best questions: TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top