From 7d43181008fe468df7d86fd8b40935d80e15cfa6 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Mon, 22 Aug 2016 16:34:26 -0700 Subject: [PATCH] Add a blurb about using "mysql" to connect to non-Docker or remote instances --- mysql/content.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mysql/content.md b/mysql/content.md index 224fd50cd..df9a1831f 100644 --- a/mysql/content.md +++ b/mysql/content.md @@ -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