Guest User

Untitled

a guest
Jan 11th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. ```bash
  2. # Mongodb
  3. mongodump --host=<hostname> \
  4. --authenticationDatabase=admin \
  5. --username=<username> \
  6. --password=<password> \
  7. --db=<database> \
  8. --out=<path to save>
  9.  
  10. # Mysql
  11. mysqldump --host="<hostname>" \
  12. --user="<usename>" \
  13. --password="<password>" \
  14. <database> > <file-to-export>.sql
  15.  
  16. mysql --host="<hostname>" \
  17. --user="<username>" \
  18. --password="<password>"
  19. <database> < <file-to-import>.sql
  20. ```
Add Comment
Please, Sign In to add comment