ClawSQL is a MySQL high-availability management platform for automating cluster provisioning, failover, read/write splitting, and topology management. Version 0.2.10 (beta) uses Docker/Podman containers, integrates ProxySQL for traffic routing and Orchestrator for topology management, and offers predefined templates for development, production, and geo-distributed setups. It requires Node.js >=22.22. Shipping TypeScript types, it provides an interactive CLI with commands for provisioning, monitoring, and lifecycle management. Key differentiators: template-based one-command provisioning, built-in monitoring with Prometheus/Grafana, and automatic GTID replication setup.
npm install clawsqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs ClawSQL globally, pulls Docker images, starts the platform, creates admin user on MySQL, provisions a 3-node production cluster, and connects via ProxySQL.
Upgrade Node.js to 22.22+
Use import instead of require()
Execute GRANT statements as shown in quickstart
Install docker-compose (or podman-compose) and add user to docker group
Use /clusters provision or /clusters quick instead
Check /clusters list for actual ports
Run 'npm install -g clawsql' or 'npm install clawsql' in project directory
Run 'npm install -g clawsql' and ensure npm global bin is in PATH (e.g., export PATH=$(npm bin -g):$PATH)
Change 'const clawsql = require("clawsql")' to 'import clawsql from "clawsql"'Start Docker (e.g., 'sudo systemctl start docker') and install docker-compose (e.g., 'sudo apt install docker-compose')
Run the GRANT statements on each MySQL instance with correct password