views:

69

answers:

1

I am wondering what a .sql file looks like. How do I create one from mysqldump?

+3  A: 
mysqldump -u <user> -p <database> > out.sql

It should prompt for the password.

Kalium
so it just looks like a text file with commands? That's simple. Thanks.
yeah it's just a text file
lc
Close, but not exactly a plain text file. See http://marksverbiage.blogspot.com/2007/12/mysql-dumps-are-not-text-files.html
Bill Karwin