Skip to content

Commit c581129

Browse files
committed
fixes #49134, config needs to allow native passwords. golang/go/issues/49134
1 parent 07cc88f commit c581129

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

_content/doc/database/open-handle.md

+1
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ cfg := mysql.Config{
121121
Net: "tcp",
122122
Addr: "127.0.0.1:3306",
123123
DBName: "jazzrecords",
124+
AllowNativePasswords: true,
124125
}
125126
126127
// Get a database handle.

_content/doc/tutorial/database-access.md

+1
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ specific database.
247247
Net: "tcp",
248248
Addr: "127.0.0.1:3306",
249249
DBName: "recordings",
250+
AllowNativePasswords: true,
250251
}
251252
// Get a database handle.
252253
var err error

0 commit comments

Comments
 (0)