Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create Database

Status
Not open for further replies.

thanx

Technical User
Jun 19, 2002
6
0
0
DE
Hello,

i'm new to mysql and trying to set up a database i modelled with an ER-tool.
How do i run the file (*.sql)to create my database?
Sorry for my english.
 
when you have a plain sql file, u can use
a) the command mysql -> mysql -u username -ppassswd < yourfile.sql
b) phpmyadmin or any other gui

i think your file should have the &quot;create database&quot; and &quot;use&quot; statements on the top, e.g.:

create database mydb;
use mydb;
<now your sql commands>
 
from the mysql command line too :
mysql>\./path/to/file.sql ***************************************
Party on, dudes!
[cannon]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top