Try our new research platform with insights from 80,000+ expert users

CockroachDB vs IBM Db2 Database vs MySQL comparison

 

Comparison Buyer's Guide

Executive Summary

Review summaries and opinions

We asked business professionals to review the solutions they use. Here are some excerpts of what they said:
 

Mindshare comparison

As of April 2025, in the Relational Databases Tools category, the mindshare of CockroachDB is 3.7%, up from 2.5% compared to the previous year. The mindshare of IBM Db2 Database is 7.1%, up from 6.6% compared to the previous year. The mindshare of MySQL is 8.5%, down from 8.8% compared to the previous year. It is calculated based on PeerSpot user engagement data.
Relational Databases Tools
 

Featured Reviews

Antonio Tringali - PeerSpot reviewer
Open source with extensive documentation and a University for training
I am a freelancer. A client of mine wanted a solution that would allow them to scale yet not abandon the familiar PostgreSQL front-end (and rewrite a part of their source code). Scalability aside, CockroachDB is a fine way forward from PostgreSQL and is not changing the client source code part of the system. If you are lucky and you do not use newer features from recent versions of PostgreSQL or PostgreSQL extensions, it's fine. There are nice-to-have features for big organizations like regional tables. At the moment, my client simply does not use these. However, the serverless offer from CockroachDB is reacting well as data grows.
SimonHiggins - PeerSpot reviewer
Very scalable with high availability and excellent technical support
The good thing is that there are improvements coming with later function levels for the z/OS Db2. I'd like it if, with the operating system that we've got, z/OS, on the mainframe, it would allow us to refresh the hardware to run Linux dockers on the mainframe. This means this might give us opportunities for different ways of coming into the Db2 environment in the future. We just want a bit more integration with Linux. That said, we are already seeing Linux more readily available on the mainframe environment. Not only have we got the premium operating systems on OS. We can run LPARs on the same mainframe footprint that is also supporting Linux. This is what has improved and made the mainframe environment more competitive. We're also looking at AI for Db2 as well, and machine learning for the future. We know that AI has come out, that we're going to get that, and we're going to evaluate that product next year for Db2. That said, I haven't got any real complaints about Db2 on the mainframe. For the most part, a lot of the problems we have nowadays are to do with communication between the various teams that you would class as stakeholders.
Muzzamil  Hussain - PeerSpot reviewer
Native encryption ensures secure data management with a simple deployment
The most valuable feature is the on-premises data encryption facilities. By default, we can provide encryption, and this feature in MySQL is why we prefer it over other databases. The native encryption in MySQL encourages us to use this database model more frequently compared to Oracle and other databases. With Oracle, we have to buy another solution for encryption and masking, but MySQL supports native encryption, which enhances our return on investment. It perfectly supports our ROI, and we have no issues with its functionality.

Quotes from Members

We asked business professionals to review the solutions they use. Here are some excerpts of what they said:
 

Pros

"CockroachDB is highly reliable."
"The most valuable features of the solution are its resiliency features and the geo-partitioning capabilities."
"The product has valuable security features."
"The availability and the easy to use feature is the most valuable. The documentation is also good."
"The initial setup and deployment are simple."
"I use CockroachDB to test big data samples and to create the best structure for databases. We have four users and required 10 people for deployment and maintenance."
"What I like best is its ability to solve data residency issues. The main advantage is auto geo partitioning, built into the product. This means we don't have to spin up separate servers in each region, which would be much more costly."
"The most valuable feature is that CockroachDB is a distributed database, which can deploy nodes running in different regions."
"It has a good feature called pureScale, which is just for scalability. It is a perfect solution for environments where scalability is going to be an issue."
"Db2 Database has given us good results since we have started to use it. We predominantly use IBM hardware, and this is one of the reasons why we started to use Db2 Database. Db2 Database has a very good HADR capability. High availability resilience is also good in this solution. It also has pureScale, which allows you to upgrade one node to get very good and high-level resilience. If you are using a database on five nodes, you can take one node down, upgrade that, and let that node up. You can then bring the second node down, upgrade that, and so on."
"IBM Db2 Database has good performance."
"Db2 database scalability and performance capabilities match our database needs. It covers pretty much everything a database administrator or engineer might need."
"The most valuable feature of this solution is the integration with other IBM products."
"IBM DB2 pureScale Feature is valuable."
"As part of your licensing with IBM, you get access to their case system, which lets you raise incidents related to software or hardware. This system is helpful for problem determination and quickly identifying issues."
"Scalability-wise, I rate the solution a nine out of ten."
"The fact that it is free is what appeals to me the most."
"Fully scalable and stable SQL-based RDBMS, with a straightforward and easy setup."
"I rate the solution's stability a ten out of ten since it has been running flawlessly."
"Apart from the features that are in the enterprise part, we find the database to be valuable. The connectors and the backup features are valuable as well. We use the basic database. We don't really use the extra features. Our clients like the security features in the database."
"However, it is easy to scale MySQL using the functions provided with the product."
"We use it as a data store and from that perspective, we get everything we need."
"The tool is open-source and there is no cost involved in its use."
"It is free, which is probably its most valuable feature. It is a pretty full-featured relational database. It really does everything we need it to do."
 

Cons

"I find the serverless offer a bit confusing."
"The closer they can make CockroachDB to being completely compatible with Postgres, the better. It's almost compatible, but not completely. If it was, it would be nice to just be able to use Postgres libraries without any fiddling."
"The product must improve its disaster recovery features."
"CockroachDB needs to improve store processes."
"I think the engine itself could be improved. If you miss a partition key, it should be able to be modeled. This is where AI could be really helpful. For example, if a user is from Australia, the system should know to look for their data there first instead of searching in the US or another continent."
"The initial setup and pricing could be improved."
"The platform could be more extensible."
"Cockroach does not support all types of protocols. I need to improve it myself to support a CouchDB on my network."
"I would like to see some artificial intelligence brought into the solution."
"End-to-end encryption specifically is something the solution needs to have in the next release."
"They should simplify the management of Db2 as a relational database system. There should be the simplification of management. This is probably one of the most important asks for being successful in the future."
"The technical support can be faster."
"The pricing could be improved, it's expensive."
"There could be more user-friendly tools with features such as drag-and-drop functionality, visual basics, and low-code capabilities."
"Its process of building up queries could be more accessible."
"IBM's support isn't as strong as it used to be, especially when it comes to providing fixes."
"The user interface could be more user friendly. Mainly because most of the times we see black and white digital lines. Something like Python."
"It would be helpful if there were a graphical user interface to administer, configure, and tune it."
"It could be a little bit simpler to use."
"Sometimes, I get lost in the toggles and buttons, and a better visual design would be nice. The layout is not user-friendly or efficient."
"The performance, stability, and security are areas with shortcomings in MySQL, where improvements are required."
"I would like to have the ability to cancel a query in SQL Developer."
"It could be more secure."
"There should be more tools to manage the on-premises version and more automation features."
 

Pricing and Cost Advice

"The product's price depends on the user's company and the contract model they enter into with CockroachDB. Depending on the contract model one enters into with CockroachDB, the product may or may not be expensive."
"The solution's pricing is not cheap. However, the good thing is that customers are willing to pay for it if they want it."
"I've used CockroachDB at a small scale on the free accounts because we are only testing."
"The platform is affordable even for the enterprise version. It provides value for investment in terms of performance."
"The pricing is good but can be made cheaper. I would rate the pricing a five out of ten."
"It's very expensive."
"The solution's hardware and subscription model for support are very expensive."
"Licensing fees are on a yearly basis."
"I rate the price of the IBM Db2 Database an eight out of ten."
"Compared to other databases, Db2 is relatively cheaper."
"It is expensive when compared to other products."
"I would rate the pricing a five out of ten. It's not super expensive, but also not cheap."
"They are competitive and honest (compared to how peer firms approach licensing conversations). ​"
"We are using the licensed version of MySQL."
"We're using the open-source version right now, which is free. I do see some value in some of the more enterprise functions. We're using the open-source version right now, and I was interested in the MySQL Enterprise version really for the tools that they provide, but we decided not to make the purchase."
"MySQL Enterprise Support is not cheap, though might still be cheaper than Oracle or SQL Server. They may not have local support depending on where you’re based, but there are many smaller agencies out there that will readily provide support. You’ll need to spend some time looking around."
"The solution does not come with a licensing fee."
"I would rate the solution’s pricing a six out of ten. The solution is not cheap but it’s a fair value. The pricing depends on the use cases of our customers. Some of our customers use the community edition which is license free and a good fit for their use cases. However, we encourage our bigger customers to sign up because of the scalability issues. The paid versions get direct technical support from Oracle."
"There is no cost involved, no licensing fees."
"It is open-source."
"My company uses MySQL's corporate licenses."
report
Use our free recommendation engine to learn which Relational Databases Tools solutions are best for your needs.
849,190 professionals have used our research since 2012.
 

Top Industries

By visitors reading reviews
Financial Services Firm
37%
Computer Software Company
13%
Educational Organization
5%
Manufacturing Company
5%
Educational Organization
60%
Financial Services Firm
9%
Computer Software Company
4%
Government
4%
Computer Software Company
16%
Financial Services Firm
12%
Manufacturing Company
7%
Educational Organization
6%
 

Company Size

By reviewers
Large Enterprise
Midsize Enterprise
Small Business
 

Questions from the Community

What do you like most about CockroachDB?
The subset of SQL that my client is using is completely supported.
What needs improvement with CockroachDB?
I would like CockroachDB to have more compatibility with PostgreSQL, especially with the connection string and techni...
What is your primary use case for CockroachDB?
I am studying how to deploy CockroachDB and YugaByteDB, and learning some basic information about them. I am testing ...
What do you like most about IBM Db2 Database?
Db2 database scalability and performance capabilities match our database needs. It covers pretty much everything a da...
What is your experience regarding pricing and costs for IBM Db2 Database?
IBM Db2 is an expensive solution. While I am not heavily involved with pricing, additional companies provide capabili...
What needs improvement with IBM Db2 Database?
The user interface is old and needs to be improved. It doesn't match the responsive and suggestion-rich UI of cloud s...
Why are MySQL connections encrypted and what is the biggest benefit of this?
MySQL encrypts connections to protect your data and the biggest benefit from this is that nobody can corrupt it. If y...
Considering that there is a free version of MySQL, would you invest in one of the paid editions?
I may be considered a MySQL veteran since I have been using it since before Oracle bought it and created paid version...
What is one thing you would improve with MySQL?
One thing I would improve related to MySQL is not within the product itself, but with the guides to it. Before, when ...
 

Comparisons

 

Also Known As

No data available
DB2
No data available
 

Overview

 

Sample Customers

Baidu, Kindred, Tierion, Heroic Labs, Gorgias
Knorr-Bremse, Mizuho Bank Ltd., Australian Government Department of Defence, SCHWENK Zement, Friedhelm Loh Group, YAZAKI Europe Limited, Ekornes ASA, Baldor Electric, VSN Systemen BV, Lion Brewery (Ceylon) PLC, PLANSEE Group, TE Connectivity, Hansgrohe SE, Openmatics, University of Toronto
Facebook, Tumblr, Scholastic, MTV Networks, Wikipedia, Verizon Wireless, Sage Group, Glassfish Open Message Queue, and RightNow Technologies.
Find out what your peers are saying about Microsoft, Oracle, SAP and others in Relational Databases Tools. Updated: March 2025.
849,190 professionals have used our research since 2012.