Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
データベースをエクスポートする方法を知っている人はいますか?
TeraTerm を使用しており、バックアップ目的でデータベースをエクスポートしたいと考えています。コマンドについてGoogleで検索してみましたが、見つかりません。
編集:
私の質問にお答えいただき、ありがとうございます。データベースは既にエクスポートされています。私はこれを使用します:
mysqldump -u root -ptest test_db > backup.sql
mysqldumpコマンドは次のように使用できます。
mysqldump
ユーザー名はroot、ルートパスワードはtest、データベース名はtest_db
root
test
test_db