We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1ee8a0 commit b0a6a25Copy full SHA for b0a6a25
biz/types/ddl/struct2table.go
@@ -10,7 +10,7 @@ import (
10
11
func main() {
12
// MySQL 连接配置
13
- dsn := "root:ff7sLtdixG@tcp(mysql.mysql:3306)/synapse?charset=utf8mb4&parseTime=True&loc=Asia%2FShanghai"
+ dsn := "root:123456@tcp(127.0.0.1:3306)/test?charset=utf8mb4&parseTime=True&loc=Local"
14
15
// 连接数据库
16
db, err := gorm.Open(mysql.Open(dsn), &gorm.Config{})
0 commit comments