I have a PHP Heroku app running, which uses a ClearDB MySQL database. I need to make backups of the database. I've been searching how to do it but I can't find it. Thanks.
As suggested, you can do:
mysqldump -u<username> <DATABASENAME> --host=<host-url> -p > <afilename>
It will look something like
mysqldump -ub13cXXXXX heroku_6a343XXXXX --host=eu-cdbr-west-03.cleardb.net -p > mydbdump.sql
And it will ask your password.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.