go-sql-driver/mysql
Go MySQL Driver is a MySQL driver for Go's (golang) database/sql package observed · 2026-08-28
Health v2 · maintenance only
88/100
- Activity 98
- Release rhythm 69
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 48.0
- age_days: 5015
- days_rel: 126
- days_push: 13
- n_releases_24m: 5
Adoption not part of the score
15273 stars · 2333 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Go-MySQL-Driver is a lightweight, pure-Go MySQL driver for Go's database/sql package, also compatible with MariaDB. It supports TCP/IPv4, TCP/IPv6, and Unix domain sockets with connection pooling, context support, and prepared statements.
Use cases
- connect to mysql from a go application
- query mariadb database in golang
- go database/sql driver for mysql
- run prepared statements against mysql in go
- connect to mysql over unix socket in go
- handle large mysql queries in go
When to choose
- you need a mature, widely-adopted MySQL driver for Go's database/sql
- you want a pure-Go implementation with no C bindings
- you need MariaDB compatibility or flexible connection protocols
When to avoid
- you use a different language than Go
- you need an ORM with query building rather than a raw driver
- you connect to a non-MySQL database like PostgreSQL
Facets
library · maturity stable
database-driver database databases backend developer-tools go cross-platform mysql mariadb sql database-sql pure-go
5 sources
- readme: https://github.com/go-sql-driver/mysql · fetched 2026-08-28 · 3b7bf5910170
- homepage: https://pkg.go.dev/github.com/go-sql-driver/mysql · fetched 2026-08-29 · 72cf5fb4aa5e
- site_page: https://pkg.go.dev/about · fetched 2026-08-29 · 757852027879
- site_page: https://go.dev/about · fetched 2026-08-29 · 8b6453863a90
- site_page: https://go.dev/project · fetched 2026-08-29 · d5ca00bb378b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| go-sql-driver/mysql | main | 88 |
For agents
markdown · JSON · MCP: product_card(name="go-sql-driver/mysql")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem