Skip to content

Commit

Permalink
MySql: Fix password regression in MySQL datasource (#20376)
Browse files Browse the repository at this point in the history
(cherry picked from commit 2ca1cc5)
  • Loading branch information
papagian authored and kylebrandt committed Nov 14, 2019
1 parent 1f3c557 commit ab9c0da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/tsdb/mysql/mysql.go
Expand Up @@ -38,7 +38,7 @@ func newMysqlQueryEndpoint(datasource *models.DataSource) (tsdb.TsdbQueryEndpoin

cnnstr := fmt.Sprintf("%s:%s@%s(%s)/%s?collation=utf8mb4_unicode_ci&parseTime=true&loc=UTC&allowNativePasswords=true",
characterEscape(datasource.User, ":"),
characterEscape(datasource.DecryptedPassword(), "@"),
datasource.DecryptedPassword(),
protocol,
characterEscape(datasource.Url, ")"),
characterEscape(datasource.Database, "?"),
Expand Down

0 comments on commit ab9c0da

Please sign in to comment.