{"id":37088855,"url":"https://github.com/strucoder/kingshard","last_synced_at":"2026-01-14T10:54:31.630Z","repository":{"id":77827059,"uuid":"44517925","full_name":"struCoder/kingshard","owner":"struCoder","description":"A high performance proxy for MySQL powered by Go","archived":false,"fork":true,"pushed_at":"2015-11-04T01:23:32.000Z","size":672,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-08-13T21:22:48.683Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"flike/kingshard","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/struCoder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-19T07:25:16.000Z","updated_at":"2015-10-19T07:25:17.000Z","dependencies_parsed_at":"2023-03-08T03:56:16.999Z","dependency_job_id":null,"html_url":"https://github.com/struCoder/kingshard","commit_stats":null,"previous_names":[],"tags_count":2,"template":null,"template_full_name":null,"purl":"pkg:github/struCoder/kingshard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/struCoder%2Fkingshard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/struCoder%2Fkingshard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/struCoder%2Fkingshard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/struCoder%2Fkingshard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/struCoder","download_url":"https://codeload.github.com/struCoder/kingshard/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/struCoder%2Fkingshard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28417729,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-14T10:54:31.016Z","updated_at":"2026-01-14T10:54:31.625Z","avatar_url":"https://github.com/struCoder.png","language":"Go","readme":"[![Build Status](https://travis-ci.org/flike/kingshard.svg?branch=master)](https://travis-ci.org/flike/kingshard)\n\n# Overview\nkingshard is a high-performance proxy for MySQL powered by Go. Just like other mysql proxies, you can use it to split the read/write sqls. Now it supports basic SQL statements (select, insert, update, replace, delete). The most important feature is the sharding function. Kingshard aims to simplify the sharding solution of MySQL. **The Performance of kingshard is about 75% compared to connecting to MySQL directly.**\n\n# Feature\n- Splits reads and writes\n- Sharding table across multiple nodes\n- Client's ip ACL control.\n- Transaction in single node.\n- Support limitting the max count of connections to MySQL database. \n- Support setting the backend database online or offline dynamically.\n- Supports prepared statement: COM_STMT_PREPARE, COM_STMT_EXECUTE, etc.\n- Support multi slaves, and loading banlance between slaves.\n- Support reading master database forcely.\n- Support sending sql to the specified node.\n- Support most commonly used functions, such as `max, min, count, sum`, and also support `join, limit, order by`. \n- MySQL HA\n\n# Install\n```\n  1. Install Go\n  2. git clone https://github.com/flike/kingshard.git src/github.com/flike/kingshard\n  3. cd src/github.com/flike/kingshard\n  4. source ./dev.sh\n  5. make\n  6. set the config file (etc/multi.yaml)\n  7. run kingshard (./bin/kingshard -config=etc/multi.yaml)\n```\n\t\n# Details of kingshard\n\n[1.How to use kingshard building a MySQL cluster](./doc/KingDoc/how_to_use_kingshard_EN.md)\n\n# License\n\nkingshard is under the MIT license. See the [LICENSE](./doc/License) directory for details.\n\n# Other language version\n\n[简体中文](README_ZH.md)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrucoder%2Fkingshard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrucoder%2Fkingshard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrucoder%2Fkingshard/lists"}