Linux/CentOS
MariaDB 백업(Backup) 및 복구(Restore)
조영래
2019. 6. 14. 14:05
1. 백업
1.1 모든 데이터베이스 백업
$ mysqldump -uroot -p[패스워드] -A > 백업.dmp
1.2 특정 데이터베이스 백업
$ mysqldump -uroot -p[패스워드] [데이터베이스명] > 백업.dmp
2. 복구
$ mysql -uroot -p[패스워드] < 백업.dmp