# CockroachDB vs MySQL

| Attribute | CockroachDB | MySQL |
|---|---|---|
| **vioscaleAI score** | 65 (65% (medium)) | 65.2 (53% (medium)) |
| activity.commits_last_30d | 11 | 100 |
| adoption.dependent_repos | 235 | 664 |
| adoption.github_stars | 32,549 | 12,441 |
| adoption.stackoverflow_questions | - | 230,000 |
| content.faq | `[{"answer":"A distributed SQL database that runs across multiple cloud platforms and on-premises environments, providing automatic failover, strong consistency, and horizontal scaling without manual sharding. It is indexed under Relational Databases.","source":"https://www.cockroachlabs.com/pricing/legacy/","question":"What is CockroachDB?","confidence":0.6},{"answer":"CockroachDB offers a free tier, so you can start without paying. Paid plans start at $146 per month. Prices are published openly on the vendor's own pricing page. Pricing changes often, so verify at source before relying on it.","source":"https://www.cockroachlabs.com/pricing/legacy/","question":"Is CockroachDB free?","confidence":0.6},{"answer":"CockroachDB supports the web and a command-line interface. Platforms we have not confirmed are simply not listed here rather than ruled out.","source":"https://www.cockroachlabs.com/pricing/legacy/","question":"What platforms does CockroachDB support?","confidence":0.6},{"answer":"Yes. CockroachDB can be deployed cloud / SaaS, hybrid, on-premise and self-hosted, so it does not have to run on the vendor's infrastructure.","source":"https://www.cockroachlabs.com/pricing/legacy/","question":"Can CockroachDB be self-hosted?","confidence":0.6},{"answer":"We have confirmed 16 integrations for CockroachDB, including Datadog, Splunk, Dynatrace, New Relic, Terraform, Vercel, HashiCorp and pgvector, plus 8 more. This is what we could verify from public sources, so the vendor may support others we have not indexed.","source":"https://www.cockroachlabs.com/pricing/legacy/","question":"What does CockroachDB integrate with?","confidence":0.6},{"answer":"We have independently confirmed SOC 2, ISO 27001, HIPAA and GDPR for CockroachDB. Certifications we do not list are ones we have not been able to verify from public sources, which is not the same as CockroachDB not holding them. Always confirm compliance directly before you rely on it.","source":"https://www.cockroachlabs.com/trust-center/","question":"What security certifications does CockroachDB have?","confidence":0.7}]` | `[{"answer":"MySQL is a relational database management system that organizes data into structured tables and is one of the most widely deployed databases globally. It powers web applications, content management systems, e-commerce platforms, and services built with development stacks like LAMP (Linux, Apache, MySQL, PHP) or LEMP. The database is known for ease of use, reliability, and solid performance for read-heavy workloads.","source":"https://www.mysql.com","question":"What is MySQL and what is it primarily used for?","confidence":0.95},{"answer":"MySQL is open-source software distributed under the GNU General Public License, making it free to download, use, and modify. Oracle offers a commercial license for organizations with specific legal or support requirements, but the core database engine costs nothing. Managed hosting services and enterprise support may incur fees depending on the provider and service tier.","source":"https://www.mysql.com/about/","question":"Is MySQL open-source and what are the licensing and cost options?","confidence":0.93},{"answer":"MySQL is language-agnostic and supports connections from all major programming languages including PHP, Python, Node.js, Java, C++, Ruby, Go, and .NET. Virtually every web framework has built-in or third-party database drivers that work with MySQL, making it compatible with diverse technology stacks.","source":"https://www.mysql.com/products/connector/","question":"What programming languages and frameworks can connect to MySQL?","confidence":0.94},{"answer":"MySQL runs on Linux, Windows, macOS, FreeBSD, and other Unix-based systems, giving developers flexibility to work in their preferred environment. This cross-platform support makes MySQL deployable across different infrastructure and simplifies consistency between development and production environments.","source":"https://www.mysql.com/downloads/","question":"What operating systems can run MySQL?","confidence":0.96},{"answer":"MySQL can be deployed either as a self-hosted database on your own servers or cloud infrastructure, or accessed as a fully managed database service through providers like Amazon RDS, Google Cloud SQL, and Azure Database for MySQL. Self-hosting offers maximum control and customization, while managed services handle routine maintenance, backups, patching, and scaling.","source":"https://www.mysql.com/","question":"How is MySQL typically deployed: self-hosted or managed service?","confidence":0.94},{"answer":"MySQL's InnoDB storage engine (the default since version 5.5) provides full ACID compliance, supporting transactions that guarantee data consistency and durability across failures. Older storage engines like MyISAM lack transaction support, but InnoDB has become the standard for production applications requiring reliable data integrity.","source":"https://www.mysql.com/","question":"Does MySQL support transactions and ACID compliance?","confidence":0.95},{"answer":"PostgreSQL is a feature-rich open-source relational database; MariaDB is an open-source MySQL fork; SQLite is a lightweight embedded option; commercial databases include Microsoft SQL Server and Oracle Database. The choice depends on requirements for specific features, scalability needs, compliance mandates, and budget.","source":"https://www.mysql.com/","question":"What are the main open-source and commercial alternatives to MySQL?","confidence":0.92},{"answer":"MySQL powers major platforms including Wikipedia, YouTube, and many large social networks, demonstrating its capability to handle massive workloads and billions of data operations. It is equally effective for startups and smaller applications, making it viable across organizations of all sizes from single-server deployments to global-scale distributed systems.","source":"https://www.mysql.com/","question":"At what scale can MySQL operate and who uses it?","confidence":0.9}]` |
| deployment.options | `{"cloud":true,"hybrid":true,"on_prem":true,"self_hosted":true}` | `{"self_hosted":true}` |
| description.long | A cloud-native SQL database that scales automatically across machines without manual sharding, supporting ACID transactions and multi-region deployments. It survives node, zone, and regional failures with minimal disruption and is compatible with PostgreSQL applications. | MySQL is an open-source SQL database server. MySQL Cluster extends it with real-time transaction processing capabilities for distributed deployments. |
| features.capabilities | `{"hosting":"both","free_tier":true,"isolation":"serializable","sql_model":"full_sql","data_model":"relational","deployment":"managed","serverless":true,"consistency":"strong","geo_spatial":"none","replication":"consensus","sql_support":true,"engine_family":"postgresql","extensibility":false,"json_document":false,"license_class":"source_available","managed_cloud":true,"pricing_model":"tiered_plus_usage","deployment_type":"independent_multi_cloud","horizontal_scale":"distributed_native","acid_transactions":"full","automatic_failover":true,"horizontal_scaling":true,"private_networking":true,"wire_compatibility":"postgres","self_host_alternative":true,"multi_region_replication":true}` | `{"hosting":"both","isolation":"serializable","sql_model":"full_sql","data_model":"relational","deployment":"self_hosted","serverless":true,"consistency":"strong","replication":"async","sql_support":true,"extensibility":true,"json_document":true,"license_class":"copyleft","vector_search":true,"horizontal_scale":"distributed_native","acid_transactions":"full","automatic_failover":true,"wire_compatibility":"mysql"}` |
| integrations.count | 6 | - |
| integrations.list | `[{"name":"Datadog"},{"name":"Splunk"},{"name":"Dynatrace"},{"name":"New Relic"},{"name":"Terraform"},{"name":"Vercel"},{"name":"HashiCorp"},{"name":"pgvector"},{"name":"AWS"},{"name":"GCP"},{"name":"Azure"},{"name":"Kubernetes"},{"name":"MOLT (Migration Tool)"},{"name":"PostgreSQL drivers"},{"name":"SQLAlchemy"},{"name":"Google Cloud","native":true,"category":"cloud"}]` | - |
| language.primary | Go | C++ |
| license.spdx | - | GPL-2.0 |
| market.availability | `{"primaryMarkets":[],"availabilityScope":"global","availableCountries":[],"notAvailableCountries":[]}` | `{"primaryMarkets":[],"availabilityScope":"global","availableCountries":[],"notAvailableCountries":[]}` |
| platform.support | `{"cli":true,"web":true}` | `{"web":true}` |
| pricing | `{"type":"usage","plans":[{"free":false,"name":"Standard","summary":"From $0.057/vCPU-hr, 99.99% SLA","features":["99.99% availability SLA","Single- or multi-region on AWS and GCP","Row-level security","Column-level encryption","Private connectivity","CDC add-on available","1-hour P1 support response"],"components":[{"per":{"qty":1,"unit":"vCPU-hour"},"kind":"metered","amount":0.057,"currency":"USD"},{"per":{"qty":1,"unit":"GiB-month"},"kind":"metered","amount":0.155,"currency":"USD"}],"description":"For most applications, quick to start and less to manage.","contactSales":false},{"free":false,"name":"Mission Critical","summary":"$0.162/vCPU-hr, 99.999% SLA","features":["99.999% availability SLA with multi-region","Egress controls","CMEK","PCI DSS & HIPAA compliance","All add-ons available","30-minute P1 support response"],"components":[{"per":{"qty":1,"unit":"vCPU-hour"},"kind":"metered","amount":0.162,"currency":"USD"}],"description":"For production applications that need the highest availability and support.","contactSales":false}],"addOns":[{"name":"Change Data Capture (CDC)","components":[{"per":{"qty":1,"unit":"vCPU-hour"},"kind":"metered","amount":0.006,"currency":"USD"}]},{"name":"Physical Cluster Replication (PCR)","components":[{"per":{"qty":1,"unit":"vCPU-hour"},"kind":"metered","amount":0.023,"currency":"USD"}]}],"summary":"From $0.057/vCPU-hr. Free 30-day trial with $400 credit.","currency":"USD","freeTier":true,"sourceUrl":"https://www.cockroachlabs.com/pricing/","retrievedAt":"2026-10-05T10:08:18.278Z","freeTrialDays":30,"startingPrice":{"unit":"vCPU-hour","amount":0.057,"currency":"USD"},"billingPeriods":["month"]}` | `{"type":"open_source","plans":[{"free":true,"name":"MySQL Community Server","description":"Free open source database","contactSales":false},{"free":false,"name":"MySQL Enterprise Edition","description":"Advanced features, management tools, and technical support","contactSales":true},{"free":false,"name":"MySQL Standard Edition","contactSales":true},{"free":false,"name":"MySQL Classic Edition","contactSales":true}],"summary":"Community edition free; Enterprise/Standard/Classic editions require contacting sales","freeTier":true,"sourceUrl":"https://www.mysql.com","retrievedAt":"2026-07-08T12:01:40.782Z"}` |
| pricing.free_tier | yes | yes |
| pricing.model | freemium | open_source |
| pricing.price_level | low | free |
| pricing.starting_price | `{"amount":0.057,"currency":"USD"}` | - |
| pricing.transparent | yes | no |
| release.cadence_days | - | 90 |
| reliability.sla_pct | 99.99 | - |
| security.certifications | `[{"name":"SOC 2 Type II","level":"Type II","status":"active","auditor":"AICPA"},{"name":"SOC 3","status":"active","auditor":"AICPA"},{"name":"ISO 27001","status":"active"},{"name":"ISO 27017","status":"active"},{"name":"ISO 27018","status":"active"},{"name":"ISO 42001","status":"in_progress"},{"name":"HIPAA","status":"active"},{"name":"PCI DSS","status":"active"}]` | - |
| security.disclosure_policy | yes | - |
| security.gdpr | yes | - |
| security.hipaa | yes | - |
| security.iso27001 | yes | - |
| security.pci | yes | - |
| security.scorecard | 5.1 | 5.1 |
| security.soc2 | yes | - |
| security.trust_center | https://www.cockroachlabs.com/trust-center/ | - |
| security.vulnerabilities | `{"count":0,"source":"https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=go&package_name=github.com%2Fcockroachdb%2Fcockroach&per_page=100","last_12m":0,"max_severity":null}` | `{"count":0,"source":"https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=homebrew&package_name=mysql&per_page=100","last_12m":0,"max_severity":null}` |

## Capabilities (Relational Databases)

| Capability | CockroachDB | MySQL |
|---|:--:|:--:|
| **Core** |  |  |
| SQL model | Full SQL | Full SQL |
| **Transactions** |  |  |
| ACID transactions | Full | Full |
| Highest isolation level | Serializable | Serializable |
| **Consistency** |  |  |
| Consistency | Strong | Strong |
| **Scale** |  |  |
| Horizontal scale | Natively distributed | Natively distributed |
| **Replication** |  |  |
| Replication | Consensus (Raft/Paxos) | Async |
| **Availability** |  |  |
| Automatic failover / HA | ✓ | ✓ |
| **Deployment** |  |  |
| Deployment | Managed | Self-hosted |
| Serverless / scale-to-zero | ✓ | ✓ |
| **Compatibility** |  |  |
| Wire compatibility | Postgres protocol | MySQL protocol |
| **Extensibility** |  |  |
| Extensions / plugins / UDFs | ✗ | ✓ |
| **Licensing** |  |  |
| Licence class | Source-available (BSL/SSPL) | Copyleft |
| **Data types** |  |  |
| JSON / document support | ✗ | ✓ |
| Geo / spatial | None | - |

*Source: vioscaleAI. Generated 2026-10-16T19:22:04.029Z. "-" = undocumented, not absent.*
