mysqldump -uuseranme -puserpassword databasename > databasename.sql
mysql -uusername -puserpassword databasename < databasename.sql