From c58112977765848b9a6405e549be632e53b18650 Mon Sep 17 00:00:00 2001 From: Scott Prive Date: Sat, 19 Aug 2023 06:11:42 -0400 Subject: [PATCH] fixes #49134, config needs to allow native passwords. golang/go/issues/49134 --- _content/doc/database/open-handle.md | 1 + _content/doc/tutorial/database-access.md | 1 + 2 files changed, 2 insertions(+) diff --git a/_content/doc/database/open-handle.md b/_content/doc/database/open-handle.md index 528efd118a..47017bd66f 100644 --- a/_content/doc/database/open-handle.md +++ b/_content/doc/database/open-handle.md @@ -121,6 +121,7 @@ cfg := mysql.Config{ Net: "tcp", Addr: "127.0.0.1:3306", DBName: "jazzrecords", + AllowNativePasswords: true, } // Get a database handle. diff --git a/_content/doc/tutorial/database-access.md b/_content/doc/tutorial/database-access.md index f82e8b043d..5034d96d5d 100644 --- a/_content/doc/tutorial/database-access.md +++ b/_content/doc/tutorial/database-access.md @@ -247,6 +247,7 @@ specific database. Net: "tcp", Addr: "127.0.0.1:3306", DBName: "recordings", + AllowNativePasswords: true, } // Get a database handle. var err error