Go MySQL Driver
Go MySQL Driver 是 MySQL 数据库的 Go 客户端开发包。
示例代码:
import "database/sql"
import _ "code.google.com/p/go-mysql-driver/mysql"
db, e := sql.Open("mysql", "user:password@/dbname?charset=utf8")
评论
Go MySQL Driver 是 MySQL 数据库的 Go 客户端开发包。
示例代码:
import "database/sql"
import _ "code.google.com/p/go-mysql-driver/mysql"
db, e := sql.Open("mysql", "user:password@/dbname?charset=utf8")