Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ```bash
- # Mongodb
- mongodump --host=<hostname> \
- --authenticationDatabase=admin \
- --username=<username> \
- --password=<password> \
- --db=<database> \
- --out=<path to save>
- # Mysql
- mysqldump --host="<hostname>" \
- --user="<usename>" \
- --password="<password>" \
- <database> > <file-to-export>.sql
- mysql --host="<hostname>" \
- --user="<username>" \
- --password="<password>"
- <database> < <file-to-import>.sql
- ```
Add Comment
Please, Sign In to add comment