Database Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesDatabase Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old March 14th, 2003, 12:51 AM
hardgristle hardgristle is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 10 hardgristle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
How do I import a .sql DB into MySQL

Hi,
How do I import a .sql DB into MySQL


I'm just learning the basics of creating and editing databases in Mysql working in the mysql.exe DOS prompt on my local Windows machine.

I'm having a really hard time finding the command which will let me import an existing DB. I cant find anything on the mysql site that works. I've also noticed that there seem to be 2 ways to work in MySQL with DOS. One is by launching the mysql.exe dos prompt directly, the other it to just launch a DOS prompt and then navigate to the msql admin application.. which is best?

I'm more familiar with working directly in the mysql.exe application which requires a ; after every command.

Please help a newbie to import an existing database.

Cheers
T.Lance



Reply With Quote
  #2  
Old March 14th, 2003, 08:08 AM
xs0 xs0 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Ljubljana, Slovenia
Posts: 760 xs0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: How do I import a .sql DB into MySQL

Try
> type database.sql | mysql -uusername -ppassword dbname

Before that, you need to create the database with
> mysql.exe -uusername -p...
mysql> CREATE DATABASE dbname;

You'll also want to give yourself permission to use it, if you don't have it already...

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > How do I import a .sql DB into MySQL


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT