Re:Ask HN: What are pros and cons of PostgreSQL and MySQL?
by SloppyStone on Sunday April 09, 2017 @06:31AM
(#14071536)
Would you say learning SQL (or relational databases in general) with mySQL is easier than starting out with PostgreSQL?
[ Parent
| on HN ]
Re:Ask HN: What are pros and cons of PostgreSQL and MySQL?
by a-saleh on Sunday April 09, 2017 @07:31AM
(#14071758)
I have learned SQL with Postgres, provided by my university,
and found the "explain analyze" and "explain cost" to be a god-send :-) Especially when I was trying to learn the impact of various things on the query-execution time.
When I used MYSQL, I found its EXPLAIN counterpart much more rudimentary.
But if I were to teach somebody SQL, I would probably just use sqlite because it just uses a simple binary file as a backend and doesn't need a running process :)
I am not really OPS or DB guy, so I can't comment on meirts of the databases in production.
Re:Ask HN: What are pros and cons of PostgreSQL and MySQL?
by chvid on Sunday April 09, 2017 @06:38AM
(#14071566)
Yes - it seems that MySQL is easier to set started with and there is more information available online. Also a lot of cheap hosting uses MySQL which is plus for hobby projects.
Re:Ask HN: What are pros and cons of PostgreSQL and MySQL?
by floatboth on Sunday April 09, 2017 @07:09AM
(#14071688)
More like, a lot of garbage outdated tutorials available online. Copy and paste to get SQL injection vulnerabilities! Easy!
Seriously, what is "not easy" about Postgres? Just read the official documentation, which is actually readable and good.
About hobby hosting… there is Heroku Postgres, but no Heroku MySQL. (There are third party addons for everything, yeah). Cheap shared Apache hosting is TERRIBLE. It should NOT be used for any new projects.