Export a mysql database to a file:

mysqldump -u {database_username} -p {database_password} {database_name} > {filename}.sql

Read in a database export:

mysql -u {database_username} -p {database_password} {database_name} < {filename}.sql

Leave a reply

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>