Skip to content

Commit

Permalink
docs(inputs.sql): Add protocol to DSN (#16330)
Browse files Browse the repository at this point in the history
  • Loading branch information
midlan authored Jan 16, 2025
1 parent 5af100d commit 237dd3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/inputs/sql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ to use them.

## Data source name for connecting
## The syntax and supported options depends on selected driver.
dsn = "username:password@mysqlserver:3307/dbname?param=value"
dsn = "username:password@tcp(mysqlserver:3307)/dbname?param=value"

## Timeout for any operation
## Note that the timeout for queries is per query not per gather.
Expand Down
2 changes: 1 addition & 1 deletion plugins/inputs/sql/sample.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

## Data source name for connecting
## The syntax and supported options depends on selected driver.
dsn = "username:password@mysqlserver:3307/dbname?param=value"
dsn = "username:password@tcp(mysqlserver:3307)/dbname?param=value"

## Timeout for any operation
## Note that the timeout for queries is per query not per gather.
Expand Down

0 comments on commit 237dd3d

Please sign in to comment.