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 > how to run an existing sql file

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-15-04, 19:09
ctam ctam is offline
Registered User
 
Join Date: Aug 2004
Posts: 2
how to run an existing sql file

I want to take some sql commands I have in a txt file and load them via the mysql monitor to populate some tables (rather than type it all again) but the command I have doesn't seem to work ... could someone advise me?
I'm using :
C:\mysql>mysql -h hostname -u username -D databasename -p > F:\Examples\chapter09\book_insert.sql
but can't get it to work.
If it helps I'm using mysql 3.23.58

Thanks,
Craig.
Reply With Quote
  #2 (permalink)  
Old 08-16-04, 14:53
ricker ricker is offline
Registered User
 
Join Date: Aug 2004
Posts: 4
You should use "<" sign instead of ">" to post your file content to the mysql console.
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