Question

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

Was it helpful?

Solution

mysqldump -u <user> -p <database> > out.sql

It should prompt for the password.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top