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 > help with the SOURCE command

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-03-04, 05:57
mks123 mks123 is offline
Registered User
 
Join Date: Feb 2004
Posts: 8
help with the SOURCE command

i am new to mysql
i have a file full of sql statements
like

insert into mysql1.table1 values(4343);
.
.
.

now i want to run these statements and create my mysql table with data in it.
i was told to use a SOURCE command but iam having problems

from the mysql prompt i tried
mysql> source test.sql ( this is the file that has all the sql statements)
and i got "file could not be located" error: 2

my questions:
how can i syntactically specify the location of my file ?
will the SOURCE command server my purporse?


thanks
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