Merge pull request #672 from infosiftr/mysql-remote

Add a blurb about using "mysql" to connect to non-Docker or remote instances
This commit is contained in:
yosifkit 2016-08-23 14:25:52 -07:00 committed by GitHub
commit ce1cb6ca5f
1 changed files with 6 additions and 0 deletions

View File

@ -36,6 +36,12 @@ $ docker run -it --link some-%%REPO%%:mysql --rm %%REPO%% sh -c 'exec mysql -h"$
... where `some-%%REPO%%` is the name of your original %%REPO%% container.
This image can also be used as a client for non-Docker or remote MySQL instances:
```console
$ docker run -it --rm %%REPO%% mysql -hsome.mysql.host -usome-mysql-user -p
```
More information about the MySQL command line client can be found in the [MySQL documentation](http://dev.mysql.com/doc/en/mysql.html)
## Container shell access and viewing MySQL logs