MySQL VS PostgreSQL

Compare MySQL vs PostgreSQL and see what are their differences.

MySQL

MySQL Server, the world's most popular open source database, and MySQL Cluster, a real-time, open source transactional database. (by mysql)

PostgreSQL

Mirror of the official PostgreSQL GIT repository. Note that this is just a *mirror* - we don't work with pull requests on github. To contribute, please see https://wiki.postgresql.org/wiki/Submitting_a_Patch (by postgres)
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
MySQL PostgreSQL
190 510
11,525 18,031
0.8% 2.2%
9.9 10.0
3 months ago 3 days ago
C++ C
GNU General Public License v3.0 or later GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

MySQL

Posts with mentions or reviews of MySQL. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-06-25.
  • How to add Bug Tracking to your Apps (Free Open Source Tool) - Bugsink 🐞
    4 projects | dev.to | 25 Jun 2025
    You can find detailed installation instructions in the docs. We will choose the Docker installation and use a MySQL database as a persistent data store.
  • MySQL vs MongoDB - Visual Design with Real Data Models
    1 project | dev.to | 13 Jun 2025
    DbSchema is not a database itself. It’s a visual tool that connects to your MySQL or MongoDB server and works directly with your database. Once connected, it shows you the real structure of your data - the tables or collections, the columns or fields, and even the relationships between them. You can explore the data, edit the schema, and understand your database more clearly, all in one place.
  • Database Sharding vs Partitioning: What’s the Difference?
    3 projects | dev.to | 26 May 2025
    MySQL MySQL natively supports partitioning, but sharding needs add-ons like Vitess to run platforms like YouTube.
  • Open Source: A Goldmine for Indie Hackers
    6 projects | dev.to | 6 May 2025
    Open source software is built on the democratic idea that everyone should be able to inspect and contribute to the source code. Major projects like Linux, WordPress, and the Apache HTTP Server have shown how collaborative efforts can produce robust, scalable solutions. Indie hackers, often working with limited budgets, gain access to highly dependable tools such as Python and MySQL, which were originally developed and maintained by global communities.
  • How I Got x311 Faster Analytics on 110M Rows
    6 projects | dev.to | 6 May 2025
    Hey everyone! I recently got fed up with waiting minutes for simple analytics queries to finish, so I threw together a little demo to see how SingleStore, MySQL, and PostgreSQL stack up against each other on a 110 million‑row banking transactions dataset.
  • Every Database Will Support Iceberg — Here's Why
    10 projects | dev.to | 22 Apr 2025
    Traditional databases — PostgreSQL, MySQL, etc. — store their data in proprietary formats. That format is optimized for that engine and can’t be directly accessed by anything else. Even if something like Trino can connect to Postgres, it’s still running queries through Postgres itself, not reading its storage directly. You’re just a client.
  • Introducing Iceberg Table Engine in RisingWave: Manage Streaming Data in Iceberg with SQL
    5 projects | dev.to | 9 Apr 2025
    Propagating changes from operational databases (Postgres, MySQL, etc.) via CDC into Iceberg requires careful handling. Since Iceberg tables typically lack primary key enforcement at the storage layer, updates and deletes must often be implemented via equality deletes: deleting the old row version and inserting the new one. A streaming ingest engine must reliably:
  • Database Protocols Are Underwhelming
    1 project | news.ycombinator.com | 26 Mar 2025
    MySQL X protocol solves some of these

    * Notifies a client when a session variable has changed. Though I haven't used it so possibly not implemented.

    https://github.com/mysql/mysql-server/blob/trunk/plugin/x/pr...

    * Allows sending parameterised SQL and a collection of values together without preparing.

    https://github.com/mysql/mysql-server/blob/trunk/plugin/x/pr...

  • Corgi: The CLI That Tames Your Local Microservices Chaos
    18 projects | dev.to | 24 Mar 2025
    mysql
  • Which Go Web Backend Framework Is Right for Your Next Project? A Detailed Analysis of Features and Performance
    11 projects | dev.to | 16 Mar 2025
    Additionally, Beego includes a robust Object-Relational Mapper (ORM) that simplifies database interactions. Instead of writing complex SQL queries, developers can manipulate data using Go objects while the ORM handles the translation to and from the database. It supports popular database systems such as MySQL, PostgreSQL, and SQLite.

PostgreSQL

Posts with mentions or reviews of PostgreSQL. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-07-16.
  • NestJS Multi-tenancy API Key Authorization
    4 projects | dev.to | 16 Jul 2025
    PostgreSQL as database
  • Strategies for Fast Lexers
    5 projects | news.ycombinator.com | 14 Jul 2025
    > As introduced in the previous chapters, all identifers are hashed, thus we can also hash the known keywords at startup and make comparing them very fast.

    One trick that postgres uses [1][2] is perfect hashing [3]. Since you know in advance what your keywords are, you can design such hashing functions that for each w(i) in list of i keywords W, h(w(i)) = i. It essentially means no collisions and it's O(i) for the memory requirement.

    [1] https://github.com/postgres/postgres/blob/master/src/tools/P...

    [2] https://github.com/postgres/postgres/blob/master/src/tools/g...

    [3] https://en.wikipedia.org/wiki/Perfect_hash_function

  • Create ER Diagrams for PostgreSQL with a Free Design Tool
    1 project | dev.to | 10 Jul 2025
    Understanding a database starts with understanding its structure. For PostgreSQL users, one of the most effective ways to visualize and manage your schema is by using an Entity-Relationship Diagram (ERD). Either if you're working with a large legacy database or starting something new, an ER diagram shows how your tables are connected and how your data is organized.
  • How to Use JSONB in PostgreSQL
    1 project | dev.to | 8 Jul 2025
    PostgreSQL supports two ways to store structured data in a column: JSON and JSONB.
  • How to build a reliable web application with Elm, GraphQL, PostGraphile and PostgreSQL
    11 projects | dev.to | 22 Jun 2025
    On PostgreSQL create a database. In this tutorial, we will name it imageboard.
  • Save time with sumsummary.com!
    11 projects | dev.to | 8 Jun 2025
  • Database Sharding vs Partitioning: What’s the Difference?
    3 projects | dev.to | 26 May 2025
    PostgreSQL and Partitioning PostgreSQL versions 10 and after have advanced native partitioning, making it ideal for time-series data, logs, and historical datasets. For example, a fintech app partitioning by month to improve query speeds.
  • SCRAM Authentication in PostgreSQL and SCRAM Pass-Through Authentication
    1 project | dev.to | 26 May 2025
    The following commit was added to the PostgreSQL master branch (REL_18_BETA1):
  • OMOP Odyssey - InterSystems OMOP, The Cloud Service (Troy)
    2 projects | dev.to | 19 May 2025
    We got a database for free when we provisioned last time, but if we want to target another database, we can surely do that as the service at this time of writing supports transforming to flavors of Postgres as well.  For this we will outline how to wrangle an external database, via Amazon RDS, and connect it to the service.
  • Create a simple REST application using Quarkus
    4 projects | dev.to | 7 May 2025
    This quick start guide gets you up and running with Quarkus on macOS, including necessary tools. You will build a basic database application using Quarkus, Java 17, PostgreSQL, and Hibernate ORM Panache. While Hibernate ORM is the standard, powerful Jakarta Persistence implementation capable of complex mappings, it doesn't always make the most common tasks trivial. Hibernate ORM with Panache is Quarkus's solution to this, focusing specifically on making your data entities and repositories simple, straightforward, and fun to write by reducing boilerplate code for common persistence operations.

What are some alternatives?

When comparing MySQL and PostgreSQL you can also consider the following projects:

d3 - Bring data to life with SVG, Canvas and HTML. :bar_chart::chart_with_upwards_trend::tada:

ClickHouse - ClickHouse® is a real-time analytics database management system

phpMyAdmin - A web interface for MySQL and MariaDB

Apache - Mirror of Apache HTTP Server. Issues: http://issues.apache.org

MariaDB - MariaDB server is a community developed fork of MySQL server. Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry.

InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured