Skip to content

Commit

Permalink
fix:set Net
Browse files Browse the repository at this point in the history
  • Loading branch information
yyt030 committed May 29, 2024
1 parent f8660a6 commit 0f6c4c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions golang/gorm/example.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func main() {
User: username,
Passwd: password,
DBName: database,
Net: "tcp",
//TODO: set parameters
}
dial := mysql.New(mysql.Config{DSNConfig: &conf})
Expand Down

0 comments on commit 0f6c4c2

Please sign in to comment.