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 > Import *.sql Data

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-30-04, 23:19
Palatino Palatino is offline
Registered User
 
Join Date: Apr 2004
Location: 127.0.0.1
Posts: 1
Cool Import *.sql Data

Hello,

I'm using MySQL on Windows.

How do I import a *.sql data into a database? I tryed many ways, but none worked. What's the correct method? In this *.sql file I have many SQL instructions to CREATE some tables and INSERT some data; it has a bit more than 80 MB.

Thank you, Palatino.

Last edited by Palatino; 04-30-04 at 23:22.
Reply With Quote
  #2 (permalink)  
Old 05-01-04, 02:36
snorp snorp is offline
Registered User
 
Join Date: Apr 2004
Location: Europe->Sweden->Stockholm
Posts: 71
Try connecting with mysql and run "source c:\path\to\file.sql" (can't see any reason to why that command shouldn't work on Windows). That will make the mysql client execute the commands in the file.
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