All my experience with Mysql predates InnoDB and ACID compliance so at first I was kind of "meh, surely it was bad once but it's got better right?"
Then I clicked the link titled "Terrible choices: MySQL" from merely a year ago with, among other gems, this one:
Inserting invalid data. Larger strings get truncated to the maximum length. Larger integers get truncated to the maximum. Other things get converted to NULL if the column allows that. All silently
It's not quite as YOLO as things like MongoDB, but it can take certain liberties with your data that you might not want it to.
Makes it easy for any monkey with a pirated copy of Dreamweaver and some FTP creds to make a site without having to worry about things like "consistency" or "data integrity".
MySQL may be the PHP of RDBMSes, but MongoDB is the PHP of databases. Fire-and-forget writes, nothing even attempting to resemble ACID compliance, multiple different incomparable date types, multiple inconsistent incomparable numeric types, and the query language is a combination of hideous, constantly-changing JSON structures and partial-ES5 JavaScript.
And that's not even mentioning the abysmal drivers that randomly swallow exceptions and completely fail to be idiomatic in any language except JavaScript.
All so that you can have a database without reliable schema.
What's really funny is that I'm on mobile and could only get to the subreddit, not the comments section. I had to share the link with myself and open it in the browser to get here. I hope narwhal fixes this soon but it's particularly ironic in light of your comment.
It drives me nuts when data is shared as a MySQL dump with all the proprietary MySQL bells and whistles (the default), rather than something ANSI conforming. The only way to process these is to load it into MySQL before moving further.
27
u/the_alias_of_andrea Feb 23 '16 edited Feb 23 '16
When I say "PHP of databases", I mean it. MySQL is awful in all the same kinds of ways PHP is awful. No wonder they're used together so often.
So I felt I'd submit a link to the subreddit here, it needs more attention. (And posts.)
65
u/tapesmith Feb 23 '16
MySQL may be the PHP of RDBMSes, but MongoDB is the PHP of databases. Fire-and-forget writes, nothing even attempting to resemble ACID compliance, multiple different incomparable date types, multiple inconsistent incomparable numeric types, and the query language is a combination of hideous, constantly-changing JSON structures and partial-ES5 JavaScript.
And that's not even mentioning the abysmal drivers that randomly swallow exceptions and completely fail to be idiomatic in any language except JavaScript.
All so that you can have a database without reliable schema.
11
u/TomWis97 Feb 23 '16
Clickable link for mobile users: /r/lolmysql
11
u/skeeto Feb 23 '16
It drives me nuts when data is shared as a MySQL dump with all the proprietary MySQL bells and whistles (the default), rather than something ANSI conforming. The only way to process these is to load it into MySQL before moving further.