Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×
Databases Programming Software IT

8 Reasons Not To Use MySQL (And 5 To Adopt It) 288

Esther Schindler writes "Database decisions are never easy, even — or maybe especially — when one choice is extremely popular. To highlight the advantages and disadvantages of the open-source MySQL DBMS, CIO.com asked two open-source experts to enumerate the reasons to choose MySQL and to pick something else. Tina Gasperson takes the 5 reasons to use MySQL side, and Brent Toderash discusses 8 reasons not to. Note that this isn't an 'open source vs proprietary databases' comparison; it's about MySQL's suitability in enterprise situations."
This discussion has been archived. No new comments can be posted.

8 Reasons Not To Use MySQL (And 5 To Adopt It)

Comments Filter:
  • by DaleGlass ( 1068434 ) on Friday May 25, 2007 @05:00PM (#19275783) Homepage

    In these situations, if the BSD license of PostgreSQL is still too "open," a commercial license is preferred.
    This is plain bizarre. How can a closed license be preferrable to BSD, when BSD is basically "do whatever you want with it", including closing the source?
  • by Rycross ( 836649 ) on Friday May 25, 2007 @05:04PM (#19275817)
    Obviously giving the author credit for originally writing the code is just too demanding.
  • by RingDev ( 879105 ) on Friday May 25, 2007 @05:06PM (#19275841) Homepage Journal
    And another gem FTA... "Whatever one might say about the strength of MySQL's backers, the fact that the company is not publicly traded means the financials are not required by law to be a matter of public record."

    So we're going to have to trust the software company that won't show us their code, but will show us their books instead of the company that will show us the code, but not the books?!?

    The 8 reasons are completely bunk, I thought I might actually learn something reading that article as we are about to increase our MySQL presence here, but that was a complete was of time.

    -Rick
  • by DarkSkiesAhead ( 562955 ) on Friday May 25, 2007 @05:10PM (#19275903)

    Warning: mysql_connect(): Too many connections ?
    That warning should really read: "Warning: crappy sysadmin" No reason to see it on a well-run site.
  • by iknownuttin ( 1099999 ) on Friday May 25, 2007 @05:20PM (#19276019)
    --Innodb scaling across multiple processors (MySQL bug ID 15815, still not completely fixed).....

    The audience for both articles are for IT (upper)mangers. Most of your argument above would be better off for the technical lead whose doing the report for his immediate manager (maybe technical) who'll then give a report to the CIO or even to a manger below him that would say:

    MySQL (GOOD)
    Oracle (GOOD but expensive)
    Excel (BAD)
    Not that those managers inherently stupid (hope not), it's just that their more concerned with the bigger picture and the resultant budget.

  • by CodeMunch ( 95290 ) on Friday May 25, 2007 @05:25PM (#19276087) Homepage
    FTFA:

    One trend I have observed but for which I have no hard data is that formally trained DBAs tend to prefer a proprietary RDBMS such as (most commonly) Oracle. I suspect that those with formal training and experience as a DBA (rather than as a software developer) tend to have a bias toward proprietary systems.

    Due to tue relative low incidents of formally trained Oracle DBA's being mauled by Tigers, you could also infer that formal Oracle DBA training will also protect you from Tiger attacks. (To re-use & mash up that old cliche).

    What a lame argument. Of course there may be some bias, but the fact is that: Oracle kicks every other RDBMS at pretty much everything: Stability, speed (optimizations up the wazoo), features, consistency.

    To be able to manage these systems efficiently & keep a "Q9" system up & running, the formal training certainly does help but I would argue is not required as the documentation is pretty damn helpful unless you get one of those wonderful ORA-600 errors (is that the magic "WTF" Oracle error? I can't recall).

    Sure - the woo of mega bux will entice many into Oracle DBA training but the weaker resources fall off quickly. You can't fake it when your production system is down.

    IANAODBA

  • by Doug-W ( 165055 ) on Friday May 25, 2007 @05:29PM (#19276145)
    The article is in CIO magazine, none of the downsides you mention is of a concern for a CIO. A Product manager? Maybe, even then probably not.
  • Re:oooo, goody (Score:4, Insightful)

    by Ucklak ( 755284 ) on Friday May 25, 2007 @05:37PM (#19276233)
    The 5 reasons to use it are far more informative than the 8 stupid reasons not to use it.

    It boils down to corporate culture.
  • by DragonWriter ( 970822 ) on Friday May 25, 2007 @05:39PM (#19276259)

    And another gem FTA... "Whatever one might say about the strength of MySQL's backers, the fact that the company is not publicly traded means the financials are not required by law to be a matter of public record."

    So we're going to have to trust the software company that won't show us their code, but will show us their books instead of the company that will show us the code, but not the books?!?


    In business, this often makes some sense. The purchaser doesn't want to see and maintain the code, that's not their core competency. They want to be assured that, however, the vendor they get support from will be around to provide support in the future. So they are more concerned with the financials than the code.

    Its just outsourcing in its original sense (before what used to be either "overseas outsourcing" or "offshoring" became the dominant definition): focus your company on its primary mission, and contract out for everything else.

  • by knarfling ( 735361 ) on Friday May 25, 2007 @05:48PM (#19276379) Journal

    It is painfully obvious from the article that this writer was or is a consultant. All of the reasons not to use MySQL are PHB reasons. Not one is based on actual abilities or inabilities of MySQL. He seems to be intent on agreeing with a position that he doesn't understand or didn't want to take. "...I'd be hard-pressed to tell a conservative IT manager making a platform decision for a mission-critical application based on this factor that he's doing the wrong thing." Yes, it does sound like he would be hard-pressed to tell any IT manager that the stupid decision he was making was the wrong thing.

    The info at the end of the article says that he guides many projects based on MySQL, but it is hard to believe that he has ever used it. It sounds like all of his research was with PHB's or admins that have never really given MySQL a good try. A good admin knows both the pros and the cons of the software he uses, and hopefully, the good out weighs the bad. Many people that use or even swear by MySQL could give you some good reasons not to use it, under the right circumstances. Obviously, this guy could not find any. Either that, or he did his research in the wrong area.

    I realize that this is the CIO magazine, and that some CIO's really are PHB's. However, Tina was able to write a good article on why a CIO should pick MySQL and give good reasons that were understandable to both technical people and PHB's. The only other conclusion I can come to was that Brent was trying to steer people towards MySQL and thought a badly written article against MySQL was the best way to do that.

  • Re:Ready...Set... (Score:5, Insightful)

    by jrockway ( 229604 ) <jon-nospam@jrock.us> on Friday May 25, 2007 @05:53PM (#19276435) Homepage Journal
    These two articles were some of the worst pieces of literature I've ever seen in my life. The GPL and BSD licenses are "too free"? "Ajax" is a programming language powered by MySQL? Etc., etc. Oh my God... what crap!
  • by dthulson ( 904894 ) on Friday May 25, 2007 @05:59PM (#19276479) Homepage
    I'm a little concerned about MySQL and the GPL... Here are some thoughts of mine about MySQL AB and the GPL: http://www.crownandcutlass.com/blog/2007/01/15/mys ql-ab-and-the-gpl/ [crownandcutlass.com]

    The link I have there for the MySQL internals doc seems to be invalid... It has moved to here: http://forge.mysql.com/wiki/MySQL_Internals_Client Server_Protocol#Licensing_Notice [mysql.com]

    Here is a quote:

    Because this is a GPL protocol, any product which uses it to connect to a MySQL server, or to emulate a MySQL server, or to interpose between any client and server which uses the protocol, or for any similar purpose, is also bound by the GPL. Therefore if you use this description to write a program, you must release your program as GPL.
    I don't think that's a valid use of copyright, but I'm not a lawyer. Can anyone explain to me how that's a valid use of the GPL?
  • by BrandonReese ( 1055794 ) on Friday May 25, 2007 @06:00PM (#19276485)
    MySQL comes prepared to support all the most popular Web 2.0-ish languages, such as Ruby, Ajax and, of course, PHP.

    I've got the php_mysql.so library, but I can't seem to find the MySQL library in my Ajax installation... Oh wait, ajax isn't a programming language. I'm sorry little things like that really get under my skin (e.g calling the CPU "the hard drive", "I've got the Internet on my computer", calling excel spreadsheets databases). In case the author of the article didn't know, postgreSQL also comes prepared to support Ruby, and PHP.

    I also didn't see where they listed phpmyadmin as a reason to use MySQL. Seems like they always use that as one of the reasons.
  • by EsbenMoseHansen ( 731150 ) on Friday May 25, 2007 @06:00PM (#19276491) Homepage

    The article is in CIO magazine, none of the downsides you mention is of a concern for a CIO. A Product manager? Maybe, even then probably not.

    If you are in any position where you are choosing between databases, you have three cases:

    1. You understand these issues
    2. You have delegated the decision to someone who does
    3. You are incompetent
    4. You are toying around

    Sorry about the M.P. reference there :o)

  • Seriously (Score:3, Insightful)

    by Vexorian ( 959249 ) on Friday May 25, 2007 @06:16PM (#19276699)
    For the article writer a product's maturity solely depends on its age.... *thumbs down* I wanted an interesting read and got this?
  • by TopSpin ( 753 ) * on Friday May 25, 2007 @06:37PM (#19276961) Journal
    Does MySQL still truncate data that doesn't fit? I recall similar lists of criticisms posted here and elsewhere about MySQL and one of the entries is that numbers 'too large' or strings 'too long' for a given column are just silently whacked down to size. I thought then and persist in thinking that this behavior is pretty damning.

  • by Evets ( 629327 ) on Friday May 25, 2007 @06:48PM (#19277105) Homepage Journal
    Agreed. Another point to be made is that many enterprise applications use the database layer as a storage mechanism and either don't optimize for the database platform or don't take full advantage of optimization capabilities on individual platforms.

    When it comes down to it, most enterprise apps would not see a significant performance shift in either direction based on platform and in those situations it is better to go with the database vendor with which your staff has the most experience. Enterprise applications rarely support MySQL or even Postgres except via slow ODBC connectivity.

    For those applications that do maintain extraordinarily large data sets and see very high traffic levels there is still the factor of familiarity and experience to deal with. For a cost differential adding up to 100s of thousands of dollars in those scenarios it is unwise to not to at least take a look at open source platforms.

    I could go into which platform I prefer in different scenarios but it's really not a very black and white thing. From a CIO perspective the best thing that you can do is to push software vendors to support open source DB platforms out of the box.
  • Why Not Use MySQL (Score:2, Insightful)

    by smist08 ( 1059006 ) on Friday May 25, 2007 @07:16PM (#19277483)
    From my own experience one of the main problems is a misleading feature set. When you choose MySQL you then have to choose one of five or so ISAM packages for it to sit on. This is a problem since they all have difference features. Do you want the one that supports multi-user, the one that is fast or the one with transactioning. Personally I want all of those and can't get them. Then we had problems with a number of queries where we had the where clause specify fields in the primary index and the optimizer cleverly would always do a table scan. Asking MySQL support led to the answer that we should edit the source fix the optimizer and submit it back to the project. A bit beyond the scope of our little project. Seem that MySQL is good for web applications where a web server talks to it with one connection and each exchange is atomic, so multi-user and transactioning support isn't needed, so you can use the fast/light isam package.
  • by tomhudson ( 43916 ) <barbara,hudson&barbara-hudson,com> on Friday May 25, 2007 @08:47PM (#19278409) Journal
    My point was that its stupid to continue to be locked into one tech because you're "already using it." Or are you still browsing the internet using Chameleon on Compuserve with an old 286 and Windows 3.0?
  • by Ed Avis ( 5917 ) <ed@membled.com> on Friday May 25, 2007 @09:31PM (#19278757) Homepage
    That is great to hear. The only question I have is why on _earth_ the safe (and standards-compliant) mode isn't the default, with the weird MySQL-only accept-Feb-30-as-a-valid-date kind of behaviour enabled with a special option for those who really want it.

    It's this kind of thing that makes me still suspicious of MySQL. I hope that for the next release - 6.0 or whatever it is - they can make a clean break with historical stupidity, and release a DBMS that gives safe, ANSI-compliant behaviour out of the box. However, there's nothing wrong with letting the sysadmin deliberately loosen some of the transactional constraints in cases where ultra high speed is important, although note that for all its supposed emphasis on speed over correctness, MySQL is slower than Postgres [blogspot.com].
  • by SavvyPlayer ( 774432 ) on Friday May 25, 2007 @10:53PM (#19279237)
    You left out a case:

    5. You have delegated the decision to a well-funded, trusted team of veteran IT decision makers.

    Businesses live and die by information, so the severity of your list of relatively insignificant defects rather depends on the criticality of the data in question. When lives are at stake (economically, physically or medically), when every hour of system downtime costs your operation tens or hundreds of thousands of dollars, decisions are based on higher level concerns. The integrity of the data is paramount. Data moving between mart and warehouse needs to cost as little as possible.

    I'll then hire DBAs who appreciate the chosen technology for reasons that matter to them. If it's MySQL, maybe these are DBAs looking for an opportunity to not only use but enhance the product, and that's fine with me.

    Not to rain on your parade, but _you_ are the suspect DBA the author recommended CIOs ignore when weighing the facts -- that is not to vet his weakly argued list of criticisms, I just couldn't let these posts sit at +5 unchallenged.
  • by Anonymous Coward on Friday May 25, 2007 @10:57PM (#19279259)
    Ah, the digg DBA. Thus running a *damn bloody simple* news aggregation site, you're well position to comment on the relative strengths and weaknesses of complex RDMSs. Sure.

    Also, I'm a rubber chicken. Squeak.
  • Re:Easy To Use (Score:1, Insightful)

    by Anonymous Coward on Friday May 25, 2007 @11:41PM (#19279531)
    Its just as easy to install sqlite or postgresql. Sqlite is either to admin than the other two since its not a daemon, just a lib to read/write the files. Use sqlite for single user or small stuff. Use postgresql when you need a database server. Mysql just doesn't fit in at all.
  • by Just Some Guy ( 3352 ) <kirk+slashdot@strauser.com> on Saturday May 26, 2007 @12:05AM (#19279683) Homepage Journal

    Because this is a GPL protocol, any product which uses it to connect to a MySQL server, or to emulate a MySQL server, or to interpose between any client and server which uses the protocol, or for any similar purpose, is also bound by the GPL.

    Fiction: the protocol is GPLed. Frankly, that's just dumb; the GPL's scope doesn't include protocols.

    Fact: the MySQL client libraries are GPLed. If you use the official MySQL libraries and wish to distribute your program, your choices are to buy a commercial license or release your code under the GPL. I am unaware of any non-GPL client libraries for MySQL, although I've never had a reason to actually look for them.

    Basically, the author was mostly right, even if for the wrong reasons.

  • by spyowl ( 838397 ) on Saturday May 26, 2007 @12:45AM (#19279995)
    It's a sad day when a comment implying Google and Yahoo search engines are "powered by" MySQL gets a +5 moderation; and then puts Digg in the same category. I thought it was +5 funny, not interesting.
  • Not sure what you mean by "faster". In my post, when I say fast, I mean the humble act of selecting data, which is 90% of the queries in I'd bet most traditional web applications. I care less about insert, updates, and deletes because those just don't happen as much.

    Oracle run by a good DBA is fast fast fast. I don't have benchmarks for you. But I have personally migrated an application from MSSQL 2000 to Oracle 9i. I have more experience with MSSQL than I do Oracle (and so you could rightly infer that at first, my coding practice was optimized toward MSSQL which is in many cases the opposite of how you code for Oracle), and yet my application runs much, much faster on Oracle. I chalk it up, in part, to the efficiency of the indexing. The b-tree indexes in Oracle are just awesome. And now that I actually understand how to really tune a query in Oracle like I do in MSSQL, I have to say that Oracle provides better tools to enable you to tune. The explain plan alone, when you really understand it, is hands down better than, say set statistics io on and set statistics time on in MSSQL. And that's not even getting into TKPROF.

    Maybe your real world experience says the opposite of what I just said, but in the corporate environment (like at work) I wouldn't even think of using anything other than Oracle, not out of prejudice, but based on years of experience. I'd like to try MSSQL 2005, though. Always willing to give them another shot.

    But I have also used Oracle DBs admined at let's just say, a less-than-competent level, and it's quite horrid. Oracle has to be done well, and paying a real DBA is costly. Enter MySQL.
  • Re:oooo, goody (Score:5, Insightful)

    by einhverfr ( 238914 ) <chris...travers@@@gmail...com> on Saturday May 26, 2007 @02:22AM (#19280649) Homepage Journal
    Interestingly, despite the fact that I almost never recommend MySQL, I do agree that the 8 arguments opposed were not that wel thought out.

    My comment to the article was:

    First, I do not recommend MySQL frequently and I figured I would explain why. Although I have no formal training in database design I consider myself more educated in these matters than the average developer.

    The basic issue is that, until recently, MySQL has avoided being a classical RDBMS. Instead, it has been developed as a quick and dirty data storage system with an SQL interface. While this is great for some kinds of applications (light-weight web content systems), it breaks down quickly when you need to have many different applications (some commerical, some inhouse) running against the same database. Even MySQL 5 does not get away from this concern entirely (even though the features now exist, enforcing them by the RDBMS is still problematic).

    Basically-- if you want a rapid development storage device with an SQL interface for a single application, there is no reason not to use MySQL (aside from the standard Gotchas). If, however, you want to have a more intelligent database which mathematically represents your data as well as possible, and displays these properly to many different client apps, it is still not adequate. Note that the former case has a nasty habit of evolving into the latter case.
  • by Heembo ( 916647 ) on Saturday May 26, 2007 @04:41AM (#19281205) Journal
    I only use the most recent version of MySQL, and I have the exact opposite perspective. MySQL does what a database is suppose to do really well - simple relational queries onto data. MySQL's transactional processing; the ability to set a savepoint and then commit or rollback, seems flawless to me.

    Oracle on the other case, seems to be doing exactly the opposite of what a database is supposed to do - it's encouraging you to push more and more of the application layer into the database (first plsql, and now Java at the database layer?).

    I just want to create tables, select, insert or update data. Not much else. That's what Codd truly intended. Codd would roll over in his grave if he saw the bloated mess that Oracle is today. And you can design a horrible denormalized schema in Oracle just as much as MySQL - neither force any form of normalization at the RBDMS level. (Some applications merit denormalization)

    Not to even mention the absolute shameful way Oracle considers, manages and patches security issues.

    MySQL is a simple, free relational cruncher. I can't believe a true finance architect considers Oracle more robust that MySQL, especially when its comes to security.

Real Programmers don't eat quiche. They eat Twinkies and Szechwan food.

Working...