Skip to content

run mysqldump in docker #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
hlcq opened this issue Oct 26, 2016 · 1 comment
Open

run mysqldump in docker #4

hlcq opened this issue Oct 26, 2016 · 1 comment

Comments

@hlcq
Copy link
Owner

hlcq commented Oct 26, 2016

GOAL

PROBLEM

DETAIL

IDEA

MEMO

@hlcq hlcq mentioned this issue Oct 26, 2016
8 tasks
@hlcq
Copy link
Owner Author

hlcq commented Oct 26, 2016

docker run -it --rm --link $(docker ps --images_name):mysql mysql sh -c 'echo "[client]\n host="$MYSQL_PORT_3306_TCP_ADDR"\n user=root\n password="$MYSQL_ENV_MYSQL_ROOT_PASSWORD"" > my.cnf && exec mysqldump --defaults-file=my.cnf --databases $DB_NAME' > db_dump.sql

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant