mysql和mongodb的备份与恢复命令
mysqldump -uroot -p123456 --routines --default-character-set=utf8 --databases
health_online_pro > health_online_pro.sql;
MYSQL:
备份:
mysqldump -u root -p health_online_pro>health_online_pro.sql;
- 恢复:
source /usr/local/….
MongoDB:
备份:
bin/mongodump -d health_online_pro -o /usr/local/src/
- 恢复:
bin/mongorestore -h 10.28.65.152 -d health_online_pro --drop /usr/local/download/health_online_pro