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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

importing sql files

Status
Not open for further replies.

s4dadmin

Programmer
Apr 27, 2003
107
US
I did a database dump into a sql file sold I could load the local database to another computer. How do you load/import .sql files?

 
from the mysql prompt:
windows:
mysql> \. C:/path/to/file.sql

*nix:
mysql> \. /path/to/file.sql

;-)

______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
you can also pipe it in from the shell.. when you run mysql:

c:\mysql\bin\mysql -u username -p databasename < filename.sql

same thing on *nix
$>mysql -u username -p databasename < filename.sql

You can also check out some of the nice gui interfaces.. try mysqlfront at
-Dustin
Rom 8:28
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top