From 48ed1006711337785de8f4b8d553dcb259cabb1a Mon Sep 17 00:00:00 2001 From: lzd Date: Mon, 22 Oct 2018 19:33:31 +0800 Subject: [PATCH] fix config.md --- doc/config.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/doc/config.md b/doc/config.md index 65f8ef9..209311e 100644 --- a/doc/config.md +++ b/doc/config.md @@ -74,23 +74,23 @@ $ soar -h ### 命令行参数配置DSN ```bash -$ soar -online-dsn "user:password@hostname:port/database" +$ soar -online-dsn "user:password@ip:port/database" -$ soar -test-dsn "user:password@hostname:port/database" +$ soar -test-dsn "user:password@ip:port/database" ``` #### DSN格式支持 -* "user:password@hostname:3307/database" -* "user:password@hostname:3307" -* "user:password@hostname:/database" +* "user:password@127.0.0.1:3307/database" +* "user:password@127.0.0.1:3307" +* "user:password@127.0.0.1:/database" * "user:password@:3307/database" * "user:password@" -* "hostname:3307/database" -* "@hostname:3307/database" -* "@hostname" -* "hostname" +* "127.0.0.1:3307/database" +* "@127.0.0.1:3307/database" +* "@127.0.0.1" +* "127.0.0.1" * "@/database" -* "@hostname:3307" +* "@127.0.0.1:3307" * "@:3307/database" * ":3307/database" * "/database" -- GitLab