From a59bf7246af7fb10650e2925289620e2a36a3349 Mon Sep 17 00:00:00 2001 From: Baptiste Mille-Mathias Date: Tue, 10 May 2016 14:31:15 +0200 Subject: [PATCH] Don't use root user as example Using root as user is a bad habit. closes #1177 --- plugins/inputs/mysql/README.md | 4 ++-- plugins/inputs/mysql/mysql.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/inputs/mysql/README.md b/plugins/inputs/mysql/README.md index 7c702568f..730caab91 100644 --- a/plugins/inputs/mysql/README.md +++ b/plugins/inputs/mysql/README.md @@ -25,8 +25,8 @@ This plugin gathers the statistic data from MySQL server ## [username[:password]@][protocol[(address)]]/[?tls=[true|false|skip-verify]] ## see https://github.com/go-sql-driver/mysql#dsn-data-source-name ## e.g. - ## root:passwd@tcp(127.0.0.1:3306)/?tls=false - ## root@tcp(127.0.0.1:3306)/?tls=false + ## db_user:passwd@tcp(127.0.0.1:3306)/?tls=false + ## db_user@tcp(127.0.0.1:3306)/?tls=false # ## If no servers are specified, then localhost is used as the host. servers = ["tcp(127.0.0.1:3306)/"] diff --git a/plugins/inputs/mysql/mysql.go b/plugins/inputs/mysql/mysql.go index cf1854827..b8ff3945a 100644 --- a/plugins/inputs/mysql/mysql.go +++ b/plugins/inputs/mysql/mysql.go @@ -39,8 +39,8 @@ var sampleConfig = ` ## [username[:password]@][protocol[(address)]]/[?tls=[true|false|skip-verify]] ## see https://github.com/go-sql-driver/mysql#dsn-data-source-name ## e.g. - ## root:passwd@tcp(127.0.0.1:3306)/?tls=false - ## root@tcp(127.0.0.1:3306)/?tls=false + ## db_user:passwd@tcp(127.0.0.1:3306)/?tls=false + ## db_user@tcp(127.0.0.1:3306)/?tls=false # ## If no servers are specified, then localhost is used as the host. servers = ["tcp(127.0.0.1:3306)/"]