mikespook / mymysql Goto Github PK
View Code? Open in Web Editor NEWThis project forked from ziutek/mymysql
MySQL Client API written entirely in Go
License: Other
This project forked from ziutek/mymysql
MySQL Client API written entirely in Go
License: Other
ziutek/mymysql 已经是1.0了, 建议合并
db.Query returns rows []row
can row turn into map,just like [key]value
select id, username from user
i can access with row["id"],row["username"]
go get github.com/mikespook/mymysql
github.com/mikespook/mymysql/native
c:\go\src\github.com\mikespook\mymysql\native\codecs.go:285: cannot fallthrough
final case in switch
go version 1.1
my config
db, err := sql.Open("mymysql", "tcp://127.0.0.1/testdb/test/123456?charset=utf8&keepalive=3600")
when run panic the error as follow:
start mymysql connect
start mymysql query
panic: missing port in address 127.0.0.1
goroutine 1 [running]:
main.main()
F:/kanbox/golang/src/mysql/main.go:24 +0x211
goroutine 2 [syscall]:
created by runtime.main
C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist894290290/go/src/pkg/runti
me/proc.c:221
default port 3306 don't work
github.com\mikespook\mymysql\native\codecs.go:285: cannot fallthrough final case in switch
tcp://127.0.0.1:3306/dds/root?charset=utf8&keepalive=3600
parseDNS treate the database "dds" as user
i get the error info as follow
panic: Received #1045 error from MySQL server: "Access denied for user 'dds'@'lo
calhost' (using password: YES)"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.