Dec 23, 2003 #1 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?
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?
Dec 24, 2003 #2 KarveR MIS Dec 14, 1999 2,065 GB 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. Upvote 0 Downvote
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.
Dec 26, 2003 Thread starter #3 s4dadmin Programmer Apr 27, 2003 107 US Thanks KarveR! Perfect Upvote 0 Downvote
Dec 26, 2003 #4 Dustman Programmer May 7, 2001 320 US 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 http://www.mysqlfront.de/ -Dustin Rom 8:28 Upvote 0 Downvote
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 http://www.mysqlfront.de/ -Dustin Rom 8:28