go

最后更新于:2022-04-02 03:58:32

[TOC] ## 示例 是兼容mysql 的协议的 ``` func main() { HOSTNAME := "svc-12345678-1234-1234-1234-2d4b84322fd8-ddl.aws-region-1.svc.singlestore.com" PORT := "3306" USERNAME := "admin" PASSWORD := "" DATABASE := "acme" connection := USERNAME + ":" + PASSWORD + "@tcp(" + HOSTNAME + ":" + PORT + ")/" + DATABASE + "?parseTime=true" db, err := sql.Open("mysql", connection) } ```
';