Merge pull request #1485 from jonz94/master

mysql/mariadb/percona: note a way to restore data from dump file.
This commit is contained in:
yosifkit 2019-05-30 12:56:50 -07:00 committed by GitHub
commit 067759796d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 0 deletions

View File

@ -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
```

View File

@ -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
```

View File

@ -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
```