diff --git a/mariadb/content.md b/mariadb/content.md index c027256fe..e9e205437 100644 --- a/mariadb/content.md +++ b/mariadb/content.md @@ -157,3 +157,11 @@ Most of the normal tools will work, although their usage might be a little convo ```console $ docker exec some-%%REPO%% sh -c 'exec mysqldump --all-databases -uroot -p"$MYSQL_ROOT_PASSWORD"' > /some/path/on/your/host/all-databases.sql ``` + +## Restoring data from dump files + +For restoring data. You can use `docker exec` command with `-i` flag, similar to the following: + +```console +$ docker exec -i some-%%REPO%% sh -c 'exec mysql -uroot -p"$MYSQL_ROOT_PASSWORD"' < /some/path/on/your/host/all-databases.sql +``` diff --git a/mysql/content.md b/mysql/content.md index d32fc27e5..d914c627e 100644 --- a/mysql/content.md +++ b/mysql/content.md @@ -174,3 +174,11 @@ Most of the normal tools will work, although their usage might be a little convo ```console $ docker exec some-%%REPO%% sh -c 'exec mysqldump --all-databases -uroot -p"$MYSQL_ROOT_PASSWORD"' > /some/path/on/your/host/all-databases.sql ``` + +## Restoring data from dump files + +For restoring data. You can use `docker exec` command with `-i` flag, similar to the following: + +```console +$ docker exec -i some-%%REPO%% sh -c 'exec mysql -uroot -p"$MYSQL_ROOT_PASSWORD"' < /some/path/on/your/host/all-databases.sql +``` diff --git a/percona/content.md b/percona/content.md index c3a03ef93..48a004cc3 100644 --- a/percona/content.md +++ b/percona/content.md @@ -179,3 +179,11 @@ Most of the normal tools will work, although their usage might be a little convo ```console $ docker exec some-%%REPO%% sh -c 'exec mysqldump --all-databases -uroot -p"$MYSQL_ROOT_PASSWORD"' > /some/path/on/your/host/all-databases.sql ``` + +## Restoring data from dump files + +For restoring data. You can use `docker exec` command with `-i` flag, similar to the following: + +```console +$ docker exec -i some-%%REPO%% sh -c 'exec mysql -uroot -p"$MYSQL_ROOT_PASSWORD"' < /some/path/on/your/host/all-databases.sql +```