MySQLのデータインポート・エクスポート - Qiita

エクスポートmysqldump -u[ユーザー名] -p[パスワード] -r [バックアップファイル名] --single-transaction [データベース名]「sample」データベース…