# dolthub/go-mysql-server

A MySQL-compatible relational database with a storage agnostic query engine. Implemented in Go.

Repository: https://github.com/dolthub/go-mysql-server
Canonical: https://ross.abutalabs.com/products/go-mysql-server
Language: Go
License: Apache-2.0
License Family: permissive
Topics: sql-engine, mysql-server, query-engine, database, mysql, relational-database, sql, sql-server
Last push: 2026-08-26T21:52:54+00:00

## Health v2 (maintenance only)
Score: 70/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 16, longevity 100
- inputs: {"age_days": 2626, "days_push": 7, "days_rel": 477, "gap_med": 145, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2652, forks 274 (observed 2026-08-28T04:07:07.063928+00:00)

## What it is
A MySQL-compatible SQL engine and server written in Go that runs queries over arbitrary data sources using the MySQL dialect and wire protocol. It ships with an in-memory database backend suitable for tests and lets you implement custom backends to query your own data sources.

## Use cases
- run a MySQL-compatible database in Go tests without installing MySQL
- query arbitrary data sources with SQL by implementing a custom backend
- drop-in replacement for MySQL for Go applications
- serve SQL over the MySQL wire protocol from a Go service
- test SQL queries in CI with an in-memory database

## When to choose
- you need MySQL wire-protocol compatibility in a Go project
- you want to expose non-database data sources via SQL
- you need an embeddable in-memory SQL engine for testing

## When to avoid
- you need a production-grade persistent database (use Dolt or MySQL itself)
- you need full MySQL feature parity including every edge-case behavior
- you cannot use Cgo or install ICU dependencies and need ICU regex support

## Facets
- artifact type: library
- maturity: active
- function: database, database-driver, http-server
- domain: databases, developer-tools, backend, apis
- platform: go, cross-platform
- tags: mysql-compatible, sql-engine, query-engine, wire-protocol, in-memory-database, storage-agnostic

## Member repositories
- dolthub/go-mysql-server (main) score 70

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:07.063928+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:18:40.484701+00:00, confidence not recorded.
  - readme: https://github.com/dolthub/go-mysql-server (fetched 2026-08-28T04:07:07.063928+00:00, sha 761eb150ab1c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
