Update MySQL Readme to clarify connection string examples. (#2175)
* Update MySQL Readme to clarify connection string examples. * Update mysql sample config to clarify connection string examples
This commit is contained in:
parent
e36c354ff5
commit
eb96443a34
|
@ -25,8 +25,8 @@ This plugin gathers the statistic data from MySQL server
|
||||||
## [username[:password]@][protocol[(address)]]/[?tls=[true|false|skip-verify]]
|
## [username[:password]@][protocol[(address)]]/[?tls=[true|false|skip-verify]]
|
||||||
## see https://github.com/go-sql-driver/mysql#dsn-data-source-name
|
## see https://github.com/go-sql-driver/mysql#dsn-data-source-name
|
||||||
## e.g.
|
## e.g.
|
||||||
## db_user:passwd@tcp(127.0.0.1:3306)/?tls=false
|
## servers = ["user:passwd@tcp(127.0.0.1:3306)/?tls=false"]
|
||||||
## db_user@tcp(127.0.0.1:3306)/?tls=false
|
## servers = ["user@tcp(127.0.0.1:3306)/?tls=false"]
|
||||||
#
|
#
|
||||||
## If no servers are specified, then localhost is used as the host.
|
## If no servers are specified, then localhost is used as the host.
|
||||||
servers = ["tcp(127.0.0.1:3306)/"]
|
servers = ["tcp(127.0.0.1:3306)/"]
|
||||||
|
|
|
@ -41,8 +41,8 @@ var sampleConfig = `
|
||||||
## [username[:password]@][protocol[(address)]]/[?tls=[true|false|skip-verify]]
|
## [username[:password]@][protocol[(address)]]/[?tls=[true|false|skip-verify]]
|
||||||
## see https://github.com/go-sql-driver/mysql#dsn-data-source-name
|
## see https://github.com/go-sql-driver/mysql#dsn-data-source-name
|
||||||
## e.g.
|
## e.g.
|
||||||
## db_user:passwd@tcp(127.0.0.1:3306)/?tls=false
|
## servers = ["user:passwd@tcp(127.0.0.1:3306)/?tls=false"]
|
||||||
## db_user@tcp(127.0.0.1:3306)/?tls=false
|
## servers = ["user@tcp(127.0.0.1:3306)/?tls=false"]
|
||||||
#
|
#
|
||||||
## If no servers are specified, then localhost is used as the host.
|
## If no servers are specified, then localhost is used as the host.
|
||||||
servers = ["tcp(127.0.0.1:3306)/"]
|
servers = ["tcp(127.0.0.1:3306)/"]
|
||||||
|
|
Loading…
Reference in New Issue