# sysown/proxysql

High-performance proxy for MySQL and PostgreSQL

Repository: https://github.com/sysown/proxysql
Canonical: https://ross.abutalabs.com/products/proxysql
Homepage: http://www.proxysql.com
Language: C++
License: GPL-3.0
License Family: copyleft
Last push: 2026-08-26T15:13:00+00:00

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

## Adoption (not part of the score)
Stars 6904, forks 1086 (observed 2026-08-28T04:09:51.202169+00:00)

## What it is
ProxySQL is a high-performance, protocol-aware SQL proxy for MySQL, MariaDB, Percona Server, and PostgreSQL that sits between applications and database backends. It provides connection multiplexing, query routing, read/write splitting, sharding, query caching, failover detection, and a database firewall without requiring application changes.

## Use cases
- load balance MySQL queries across replicas
- split reads and writes between primary and replica databases
- shard MySQL tables across multiple backends without changing application code
- cache frequent query results at the proxy layer
- detect backend failures and reroute traffic automatically
- protect databases from SQL injection with a firewall
- mirror production traffic for testing and performance analysis
- manage thousands of client connections with fewer backend connections

## When to choose
- you need a mature, battle-tested SQL proxy with years of production use
- you run MySQL, MariaDB, Percona, or PostgreSQL and need transparent load balancing
- you want read/write splitting or sharding without modifying application code
- you need connection multiplexing to handle 100k+ client connections
- you require runtime reconfiguration of routing, users, and backends without restarts

## When to avoid
- you need a proxy for databases other than MySQL or PostgreSQL
- you want a lightweight library to embed in your own application rather than a standalone service
- you run primarily on Windows or macOS as a native service
- you need a simple TCP-level proxy without SQL protocol awareness
- you require a permissive license - ProxySQL is GPL-3.0

## Facets
- artifact type: application
- maturity: stable
- function: proxy, load-testing, caching, monitoring, security, routing, database
- domain: databases, backend, infrastructure-as-code, performance, security
- platform: self-hosted, cloud, cpp
- tags: mysql-proxy, postgresql-proxy, sql-load-balancing, read-write-splitting, database-sharding, query-routing, connection-pooling, query-rewrite, database-firewall, sql-injection-protection, failover, high-availability, query-mirroring, connection-multiplexing, query-cache, prometheus-exporter, rest-api, web-ui, galera-cluster, mysql-group-replication, amazon-aurora, mariadb, percona-server, gpl-3.0, devops, linux, docker, kubernetes

## Member repositories
- sysown/proxysql (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:51.202169+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:41:37.488403+00:00, confidence not recorded.
  - readme: https://github.com/sysown/proxysql (fetched 2026-08-28T04:09:51.202169+00:00, sha 626ed9b9d2ee)
  - homepage: http://www.proxysql.com (fetched 2026-08-29T08:37:26.288681+00:00, sha 5b8c5494264d)
  - site_page: https://www.proxysql.com/documentation (fetched 2026-08-29T08:37:26.291534+00:00, sha eaea43881e14)
  - site_page: https://www.proxysql.com/documentation/installing-proxysql (fetched 2026-08-29T08:37:26.293458+00:00, sha 7ffc44bcfa7a)
  - site_page: https://www.proxysql.com/features (fetched 2026-08-29T08:37:26.295319+00:00, sha 03d5d6b50a7b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
