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