To dump, run;
mysqldump --opt --user=root -p --host=localhost --databases mydb > mydb.sql
Where mydb is your database name.
To import it, run:
mysql -u root -p < mydb.sql
To dump, run;
mysqldump --opt --user=root -p --host=localhost --databases mydb > mydb.sql
Where mydb is your database name.
To import it, run:
mysql -u root -p < mydb.sql