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.

 
Go Back  dBforums > Database Server Software > MySQL > Mysqlimport help

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-14-09, 10:53
ottovon ottovon is offline
Registered User
 
Join Date: Jan 2006
Location: New England
Posts: 12
Mysqlimport help

Hi,

Trying to import data into a table on my local Windows machine, but Im having trouble with the mysqlimport command. I have been able use the 'Load Data Infile' command w/out issue.

My problem is I enter the below command at the mysql> prompt and it continues to prompt me for something else when I enter the below command and returns a 1064 error. Any thoughts on what I am missing?

Thanks

-> mysqlimport --LOCAL anns_db 'C:\\Program Files\\MySQL\\MySQL Server 5.0\\bin\\location.txt';


ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
MySQL server version for the right syntax to use near 'mysqlimport --LOCAL anns_db 'C:\\Program Fil
s\\MySQL\\MySQL Server 5.0\\bin\\lo' at line 1
mysql> mysqlimport --LOCAL anns_db C:\\Program Files\\MySQL\\MySQL Server 5.0\\bin\\location.txt
Reply With Quote
  #2 (permalink)  
Old 01-14-09, 12:07
guelphdad guelphdad is offline
Registered User
 
Join Date: Mar 2004
Posts: 440
you don't run mysqlimport (or mysqldump) at the mysql prompt. you run it from a DOS shell.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting 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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On