This is a creation in Article, where the information may have evolved or changed.
Search below to find a Golang library address:
Http://go-lang.cat-v.org/library-bindings
There are databases: GUI and so on.
Discover the latest on this update time: Download the zip package.
Https://github.com/Philio/GoMySQL
Compiled discovery can only be compiled under Linux. Windows didn't fix it.
First set the environment variables under Linux:
Export path= $PATH:/opt/google/go/binexport goroot=/opt/google/go
Then unzip
Clone the Git repository:
git clone git://github.com/Philio/GoMySQL.git
Build/install:
cd GoMySQL
make
make install
This installs the "MySQL" so can is imported as so:
import "mysql"
If the compilation does not report an error. The instructions have been compiled and passed. You can use the MySQL package.
Using a MySQL database connection is also under study.
Go language video.
Chinese:
Http://v.youku.com/v_show/id_XMTY4Mzk5NTc2.html
English:
Http://v.youku.com/v_show/id_XMTMxMzIwMTQ4.html