Backup and Restore a Database - Backups Flashcards

1
Q

Backup and Restore a Database - Backups

A

mysql -u root -p

SHOW DATABASES;

mkdir /backup
cd /backup
mysqldump -u root -p emails > emails.sql

When backing up multiple databases:
mysqldump -u root -p –databases emails mysql > emails_mysql.sql

How well did you know this?
1
Not at all
2
3
4
5
Perfectly