MySQL is the more common of the two in our index: it runs on 282,371 websites against 2,073 for PostgreSQL, and 170 sites use both. Counts come from real scans of each site's home page, not vendor claims, and cover the sites in TechLookup.app's index rather than the whole web.
MySQL is an open-source relational database management system.
PostgreSQL, also known as Postgres, is a free and open-source relational database management system emphasizing extensibility and SQL compliance.
Among sites in the Tranco top 10,000, MySQL appears on 825 and PostgreSQL on 6; across the top million it is 161,869 against 1,405. Within the databases sites we have indexed, MySQL holds 94% and PostgreSQL 0.7%.
MySQL: 282,371 sites, on 94% of Databases sites
Indexed sites in the countries where the two are most used. A site's country is read from its domain ending, or from its own server for .com and other generic endings. Sites behind a shared CDN or cloud on a generic ending have no country and are not counted here.
| Country | MySQL | PostgreSQL |
|---|---|---|
| United States | 19,955 | 43 |
| Germany | 13,634 | 79 |
| France | 9,692 | 81 |
| United Kingdom | 7,117 | 24 |
| Japan | 6,467 | 14 |
| Russia | 6,452 | 12 |
| Netherlands | 6,205 |
170 sites run both MySQL and PostgreSQL. That is 8% of the sites using PostgreSQL, the smaller of the two.
Want to know which one a particular site uses? Look it up and see its whole stack, or compare two sites side by side.
| 50 |
| Italy | 5,170 | 23 |
|---|
Export all 282,371 MySQL sites as CSV on the Business plan, $99 a month. Export on Business → or download a free 5-row sample CSV.
Export all 2,073 PostgreSQL sites as CSV on the Starter plan, $19 a month. Export on Starter → or download a free 5-row sample CSV.