Skip to content
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

DB save/restore #1

Open
frobnitzem opened this issue Mar 9, 2023 · 0 comments
Open

DB save/restore #1

frobnitzem opened this issue Mar 9, 2023 · 0 comments

Comments

@frobnitzem
Copy link
Collaborator

Investigate save:
docker exec gremcat-mysql sh -c 'exec mysqldump --all-databases -uroot -p"$MYSQL_ROOT_PASSWORD"' > localdata/all-databases.sql
and restore:
docker exec -i gremcat-mysql sh -c 'exec mysql -uroot -p"$MYSQL_ROOT_PASSWORD"' < localdata/all-databases.sql
as means of providing some pre-packaged data with the container.

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