ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[TOC] ## 示例 是兼容mysql 的协议的 ``` func main() { HOSTNAME := "svc-12345678-1234-1234-1234-2d4b84322fd8-ddl.aws-region-1.svc.singlestore.com" PORT := "3306" USERNAME := "admin" PASSWORD := "<your admin password>" DATABASE := "acme" connection := USERNAME + ":" + PASSWORD + "@tcp(" + HOSTNAME + ":" + PORT + ")/" + DATABASE + "?parseTime=true" db, err := sql.Open("mysql", connection) } ```