MySQL database export/import

I always forget these 2, although I use them quite often. Doh!


mysqldump -u[user] -p[pass] [db] > [file]

and back in:

mysql -u[user] -p[pass] [db] < [file]
Tagged , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.