go-gorm / sqlserver

GORM sqlserver driver
MIT License
56 stars 39 forks source link

在哪里填写数据库password? #2

Closed zhuqiyun closed 4 years ago

zhuqiyun commented 4 years ago

Your Question

The document you expected this should be explained

Expected answer

zhuqiyun commented 4 years ago

Your Question

The document you expected this should be explained

Expected answer

dsn := "sqlserver://gorm:sa@192.168.0.201:1433?pwd=XINGshan123,database=wms_server_v1"
_, err := gorm.Open(sqlserver.Open(dsn), &gorm.Config{})

这样子连接失败

jinzhu commented 4 years ago

https://github.com/denisenkom/go-mssqldb#connection-parameters-and-dsn