From c8d76a7dc9b37b2756d597fa20463fbef1d55d96 Mon Sep 17 00:00:00 2001 From: Aurelien Gaston Date: Thu, 18 Nov 2021 23:19:58 +0100 Subject: [PATCH] Fix mysql connection string Co-authored-by: DasSkelett Co-authored-by: GoliathLabs --- internal/storage/sql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/storage/sql.go b/internal/storage/sql.go index e2ef332c..31e5c539 100644 --- a/internal/storage/sql.go +++ b/internal/storage/sql.go @@ -92,7 +92,7 @@ func pgconn(u *url.URL) string { func mysqlconn(u *url.URL) string { password, _ := u.User.Password() return fmt.Sprintf( - "%s:%s@%s/%s?%s", + "%s:%s@tcp(%s)/%s?%s", u.User.Username(), password, u.Host,