- way easier to install
- way easier to maintain (not vacuuming, etc)
- and had a replication story.
So you had startups which created their MVP on some shared webhost, which had MySQL and nearly non had pg. as those startups graduated into enterprise fame, they never left MySQL but instead fixed its problems along the way.
PostgreSQL was more esoteric and lots of stuff wouldn’t directly support it or would only do so half heartedly.
So MySQL took off. But people programming against a database would lean towards pSQL.
Perhaps what you are remembering is a particular OS or installer's packaging.
I think I'm remembering the Win32 binaries. At https://museum.php.net/win32/ the PHP3 binaries only have MySQL.
Shared hosts settling on MySQL probably made the difference.
Postgres also had a reputation for being correct but slower. The perf differential disappeared a) as postgres got faster and b) mysql got more reliable/robust.
Galera kinda improved the MYSQL replication story for certain specific use cases, at the expense of (a lot of) extra complexity and way more foot-guns. I couldn't recommend galera even when the use case matches up. It took us years to get it operating relatively safely, and that was after a heap of near-misses with customer data. (Yeah, a bunch of us thought it was folly to use it but we weren't decision makers at the time)
Even back then, I found that mysql was faster for “select * from table where primary_key = 42”, but with even the slightest complication (joins, functional queries, subqueries), postgres pulled ahead.
I guess a huge percentage of SQL queries are really just key-value lookups though, so I can’t blame people for using mysql too much (this was before memcached, let alone redis et al)
Postgres has the safety of the data as its utmost goal, while people will just rename genes because Excel automatically misinterprets them as dates.
https://www.youtube.com/watch?v=b2F-DItXtZs
Edit: what happened to highscalability.com?
The fact that it was the M in the LAMP stack gave it a huge edge too. What was at one point an all day, if not multiday setup and configuration process became a simple install script once LAMP became a thing.
MySql was the "default" for a long time until Oracle muddied the waters just enough to make devs look around a bit.