Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Backup your OpenShift MySQL database. My DB is only small so I didn't bother to compress it through a pipe. sftp it back from your local machine afterwards This is basically a quick hack from running "type mysql" on the OpenShift gear - hint: it's a bash function/alias
mkdir ~/app-root/data/tmp
mysqldump -h $OPENSHIFT_MYSQL_DB_HOST -P ${OPENSHIFT_MYSQL_DB_PORT:-3306} -u ${OPENSHIFT_MYSQL_DB_USERNAME:-'admin'} --password="$OPENSHIFT_MYSQL_DB_PASSWORD" --all-databases > ~/app-root/data/tmp//all.sql

Great man! thanks!

Great, thanks.

Nice

weplan9 commented Jun 24, 2015

Thanks

Thanks!

thank you

I was trying all ways, but now it works, Thank you so much !

This is definitely helpful, thank you.

Thanks a lot 😄

Ashaba commented Aug 29, 2016

what could have gone wrong?
bash: rms.sql: Permission denied

Works!
Thank you.

teliz commented Mar 8, 2017

Thanks :)

Great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment