# Mycat

Repository: https://github.com/MyCATApache/Mycat-Server
Canonical: https://ross.abutalabs.com/products/mycat
Language: Java
License: GPL-2.0
License Family: copyleft
Last push: 2026-05-18T09:48:47+00:00

## Health v2 (maintenance only)
Score: 60/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 83, release rhythm 8, longevity 100
- inputs: {"age_days": 4290, "days_push": 107, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 9514, forks 3805 (observed 2026-08-28T04:10:31.584624+00:00)

## What it is
MyCAT is an open-source database middleware written in Java that acts as a distributed MySQL cluster proxy, providing sharding, read/write splitting, and transparent scaling of backend databases. It presents itself to clients as a MySQL-compatible server, letting applications migrate from single-node databases to a distributed setup with minimal changes.

## Use cases
- shard a large MySQL table across multiple database nodes
- set up read/write splitting for a MySQL cluster
- replace an expensive Oracle cluster with an open-source distributed database
- scale a single-node MySQL database horizontally without changing application code
- route SQL queries to the correct backend database shard
- migrate a stand-alone database to a cloud/distributed architecture

## When to choose
- you need transparent MySQL sharding or read/write splitting behind a MySQL-protocol proxy
- you want to scale out an existing MySQL application with minimal code changes
- you need an open-source alternative to commercial database clusters

## When to avoid
- you need a fully supported, actively developed solution - the 1.6 line has known bugs (batch inserts, multi-statement SQL) and development is largely volunteer maintenance
- you want a modern distributed SQL database rather than middleware in front of MySQL
- your workload relies on features MyCAT 1.6 does not support, such as multiple statements in one SQL

## Facets
- artifact type: service
- maturity: maintenance
- function: database, middleware, routing, caching
- domain: databases, microservices, big-data, backend
- platform: jvm, self-hosted
- tags: database-middleware, mysql-proxy, sharding, read-write-splitting, database-cluster, linux, docker

## Member repositories
- MyCATApache/Mycat-Server (main) score 60
- MyCATApache/Mycat-doc (docs) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:31.584624+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-29T17:22:00.331717+00:00, confidence not recorded.
  - readme: https://github.com/MyCATApache/Mycat-Server (fetched 2026-08-28T04:10:31.584624+00:00, sha e24c321f4e8b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
