diff --git a/examples/compose/README.md b/examples/compose/README.md index eb801a8fcbe..12f81422d64 100644 --- a/examples/compose/README.md +++ b/examples/compose/README.md @@ -95,13 +95,18 @@ vitess/examples/compose$ ./client.sh ### Connect to vgate and run queries vtgate responds to the MySQL protocol, so we can connect to it using the default MySQL client command line. -You can also use the `./lmysql.sh` helper script. ``` vitess/examples/compose$ mysql --port=15306 --host=127.0.0.1 -vitess/examples/compose$ ./lmysql.sh --port=15306 --host=127.0.0.1 ``` **Note that you may need to replace `127.0.0.1` with `docker ip` or `docker-machine ip`** +You can also use the `./lmysql.sh` helper script. +``` +vitess/examples/compose$ ./lmysql.sh --port=15306 --host= +``` + +where `` is `docker-machine ip` or external docker host ip addr + ### Play around with vtctl commands ``` diff --git a/examples/compose/lmysql.sh b/examples/compose/lmysql.sh old mode 100644 new mode 100755