Slashdot Mirror


MySQL A Threat To The Big Database Vendors?

geekinexile writes: "Bloomberg is running a story on the growth of MySQL as an alternative to the big commercial database systems." The story mentions PostgreSQL as well, and presents a generally positive view of both.

30 of 469 comments (clear)

  1. GPL of MySQL 4 is big obstacle for non-OSS dev by News+for+nerds · · Score: 5, Insightful

    1.4.3.1 Using the MySQL Software Under a Commercial License
    (snip)
    When you link a program with code from the MySQL software or from GPL
    released clients and don't want the resulting product to be GPL, maybe because
    you want to build a commercial product or keep the added non-GPL code closed
    source for other reasons. When purchasing commercial licenses, you are not
    using the MySQL software under GPL even though it's the same code.

    -----

    This means you can't use libmysql in your closed source code.

  2. Not yet. by MissMyNewton · · Score: 3, Insightful

    If you have a need for the scalability, reliability, high-availability in Oracle (or similar), then MySQL isn't even a consideration.

    Maybe someday. But not today.

    --

    ---

    Information wants...you to shut your pie hole.

    1. Re:Not yet. by curunir · · Score: 5, Insightful

      The irony here is that your very post is being stored in a MySQL database on a site that is pretty famous for its high-availability/reliability. /. has about a half million user accounts and is known for overwhelming other sites by simply linking to them. It seems to be working pretty well on this site.

      You might have had a point if you'd mentioned that Oracle was more flexible than MySQL. MySQL doesn't have all the features that Oracle has. But if MySQL has the features that are needed for a given project/implementation, then it is a valid option.

      --
      "Don't blame me, I voted for Kodos!"
  3. Still Some Roads to Conquer by Scotch+Game · · Score: 5, Insightful

    I love MySQL, love the speed, the accessibility, the ease of deployment and its suitability for small and medium-sized projects. I'm an advocate.

    But -- it can be a tough sell to the big fish.

    I was hired by a Fortune 500 financial services and real estate company to do an internal project that really was not challenging development. Essentially, the requirements boiled down to a very hobbled version of Slashcode. I bid the project at X dollars, spec-ing PHP and MySQL, figuring that I was going a bit high for the actual hours involved and that I would make a nice roll of dough if they accepted. But I still knew that given the sheer size of the company, that my bid would be considered a bargain, if not a lowball.

    What threw it? MySQL and PHP. What are they? (WHAT ARE THEY?!?!?!) Well, we're going to have to get through Standards and Compliance, issue an exception, and well, we'll see, we just don't know. Okay, said I, I'll do it for four times the cost and implement it entirely from scratch using ASP and SQL Server.

    Great! Sold. Damn. And you have to understand I really TRIED. I wrote two papers, directed them to a bunch of links ... Nope. ASP and SQL Server. I cried my way to the bank.

    I believe inroads will continue to be made for open source. I have faith. But I think there's still some time and a lot of tireless advocacy to come ...

    1. Re:Still Some Roads to Conquer by samael · · Score: 3, Insightful

      And choose PHP+MySQL, and who is going to look after it when you go?

      If I already have 5 SQL databases, I can deal with it with one admin. Add a MySQL database and a PostgreSQL database and an Oralce database and suddenly you need a specialist in each one.

    2. Re:Still Some Roads to Conquer by Electrum · · Score: 3, Insightful

      Maybe this is why MySQL isn't as popular for database(for things other then a website)?

      If you are a real DBA, then having to use a SQL console or command line tools to administrate a database shouldn't be a problem. If you need to point and click to make a backup or create tables because SQL is too hard, then there is no way you can be a DBA. Besides, there is a good web based GUI, phpMyAdmin, that lets you do most things without knowing everything about SQL. There are also GUI interfaces to MySQL.

      Also, PHP more popular then ASP? Possibly. But name anyone who makes money running a huge website (Slashdot excluded, they don't make money) with MySQL. There may be some, but anyone who is doing serious business isn't going to be using MySQL.

      That's complete FUD. Say, do you work for Microsoft or Oracle? I can say first hand that directNIC.com uses MySQL for everything. They are a very popular domain registrar (sold over half a million domains) and are certainly making money. Many other companies use MySQL and not just for running websites. You should rethink your myths.

      Fantastic is such a subjective word. Let's just say they are good.

      Apache is obviously not fantastic (see my previous posts for why I think that), but it works well for many people. PHP is a good and I personally really enjoy using it, but I certainly wouldn't call it fantastic, mainly due to its quirks and because the developers refuse to fix certain bugs. MySQL is fantastic. It is easy to use and does what it is designed to do very well.
  4. Re:hasn't crashed yet by TheTomcat · · Score: 3, Insightful

    Mind you, feeding a bunch of data into a read only system to be queried in a high deterministic way is hardly a real demanding task for a database system

    Maybe it's not "demanding" from a RDBMS point of view, but that's what almost all sites do -- read data from a database, and MySQL fits this niche perfectly.

    S

  5. Re:hasn't crashed yet by miratrix · · Score: 4, Insightful

    You have to remember that this is the kind of thing that MySQL is designed for. Lots and lots of SELECTs, almost no INSERT or UPDATEs.

  6. Re:Really Good Advertising by TheAncientHacker · · Score: 3, Insightful

    Which says a lot more about ESR than it does about Big Unix, Linux or Microsoft...

  7. dirty secret of big databases by g4dget · · Score: 5, Insightful

    The dirty secret of big databases is that most people don't know how to program them, how to configure them, and don't need most of the features. And even if they get everything right, they still end up with a very costly and complex solution, a solution that likely doesn't perform very well and needs a special DBA to keep it all running. That's why MySQL is successful.

  8. In other news: Vi still no threat to MS Word by wirefarm · · Score: 4, Insightful

    They are two different products with two different uses.
    MySql came along and took away the appeal of using text files as data stores for web applications and such - it gave perl scripters a simple, easy-to-understand database that works pretty darn well.

    MySQL is a great product, but only for the things it does well. If you try to make it do things that it can't, of course you're gonna get burned.
    If you actually *like* databases, you'll probably like PostGres better anyway - don't bother with MySql.

    MySql has found its niche. Linux, Apache, Perl/PHP and MySQL are powering thousands of websites right now. I have a few myself and they work well - There is absolutely no need for me to change the database - it just works.

    I wouldn't want American Express to start using it today though - they actually *need* the features that Oracle offers.

    Not all databases need the kind of bomb-proofing that you can do with Oracle - some applications just need to be able to pull data quickly from simple tables.

    The thing that I don't understand though, is why MySql has so much more popular appeal than PostGres - It seemed that one day, everybody just seemed to be using it. Why was that?

    Cheers,
    Jim

    --
    -- My Weblog.
  9. Re:challenge? by gmack · · Score: 3, Insightful

    Yahoo is using it for exactly what it's good at: Running websites. Why does it worry you they run their fintantial site? I cam't imagine why that needs something high end. Data comes in one way and gets read many times and that's the sort of use MySQL's raw speed will blow both postgres and oarcle away at.

    If it was on something that needed replication, or writes were the common case I could see a problem. But I doubt either is true in this case. Instead it looks like it's being used for an application tht it will handle well.

    Yahoo is only being smart; the high end databases
    comsume a lot of resources and shouldn't be used where they aren't needed. It would be foolish to run the entire company on a single vendor's software.

  10. To be fair... by Pseudonym · · Score: 5, Insightful

    ...most people don't need Oracle.

    Oracle has been used for a lot of projects where it doesn't really need to be used, usually because the company already had a licence, but sometimes because the project was way over-spec'd.

    Don't get me wrong, MySQL doesn't even come close to challenging the benefits of Oracle or DB2 in replication, scalability and so on. However, in applications where you don't need them, MySQL is perfect, especially because it requires no monetary investment. (It requires other kinds of investment, of course, but everything does.)


    --
    sub f{($f)=@_;print"$f(q{$f});";}f(q{sub f{($f)=@_;print"$f(q{$f});";}f});
  11. Criticize MySQL and get modded down by kpharmer · · Score: 5, Insightful

    It's sad how all criticisms of MySQL on slashdot are consistently modded down. Although MySQL is a fine product with a lot going for it - there is plenty to be *legitimately* critical about.

    Is it that the MySQL supporters on slashdot are only familar with application programming interfaces to relational databases - and so don't understand the differences between a modern relational database and MySQL? Or are they simply pushing the product that they are most familiar with?

    I've been involved in purchases of millions of dollars in relational database software over the last sixteen years; been a DBA on Oracle, Informix, and DB2; and developed on those as well as Sybase, SQL Server, Adabas (SAP-DB), Dbase IV, and Access. And I can say that there are plenty of traditional IT applications that I would try Postgresql out on - just about everything in the OLTP arena that doesn't require massive scalability. And unfortunately, there are far fewer traditional IT database applications that I would recommend MySQL for - it simply lacks too many features that are already available in postgresql, and that in the RealWorld(tm) save your bacon.

    Ok, you can mod me down now.

    1. Re:Criticize MySQL and get modded down by mgv · · Score: 3, Insightful

      If something's informative and deserves modding up, it gets modded up

      Yes, it usually does. However, uninformative M$ bashing often gets modded up on slashdot too. (Not to say that the multitude of M$ problems shouldn't be mentioned, just that ignorant slanging doesn't add to the cause much at all)

      Well, yes. MySQL doesn't do that, you're right

      Yes, MySQL has problems. The biggest issue is often scalability - just because it will work fine on a small project doesn't mean that its going to scale to the enterprise level. A similar comment could be made of the M$ Access & the Jet DB - perfectly fine for a single user app, doesn't scale well at all.

      In fact, while I think that MS Access provides a nice RAD environment for (very) small projects, I have no doubt that the future for MySQL and PostgreSQL is much brighter because of their open source nature. There are no artificial constraints on their functionality, in stark contrast to M$, who want you to upgrade to (& pay for) SQL Server as soon as possible. So I can see both MySQL and PostgreSQL improving over time much faster than M$, who want to tie improvements in functionality with a similarly improving revenue model.

      Of course, when it comes to databases, really there is no competition bewteen Oracle and PostgreSQL. If you want the most frequently used small database program in the world, look no further than Microsoft Excel. :-)

      (Technically I think that last paragraph is a high level troll - but I'm sure alot of DB people would see the humour)

      Michael

      --
      There is no cryptographic solution to the problem where the intended receiver and the attacker are the same entity.
  12. Re:challenge? by Tablizer · · Score: 3, Insightful

    (* Having said that, I think that is absolutely ludicrous. PostgreSQL is a serious database system, but, regardless of future potential, mySQL is not. Reading about it running the Yahoo Financial site says more about the quality of the Yahoo Financial site than it does about the quality to the mySQL DBMS. *)

    You don't even know what their requirements are! Don't bash something until you see the requirements and environment it will be in. mySQL tends to favor read-intensive activities but is a little weak on write-intensive and transaction stuff.

    Perhaps their needs are mostly reading. Maybe some other system dumps the data into mySQL once every midnight, and people query on it all day with little writing.

    The point is that you are prematurely dismissing something without looking into specifics.

    It is rarely X is always bad and Y is always good. Things have various strong points and weakpoints.

    You are acting like a PHB.

  13. Pick A DB That Suits Your Needs by Not+The+Real+Me · · Score: 5, Insightful

    You need to pick a database that suits your needs. For some people MySQL is all that they will ever need. For others, referential integrity, transactions, stored procedures and triggers are a requirement not an option.

    I've seen instances where an app was done in Oracle when it should've been done in something like FoxPro v2.6 for DOS, and I've seen apps done in M$ Access97 that should've been done in PostGres/Oracle/Sybase/SQL Server.

    Each has its place and should be chosen to fit a business model. Picking a database just because it has the most features is not always the correct solution. Picking a database because it has the least initial cost is also not always the correct solution.

  14. The DBASE III of its time? by Greyfox · · Score: 4, Insightful

    Sure, MySQL is simple. Sure it doesn't do everything Oracle can do. But there are a huge number of small businesses, Churches, scools, etc which don't have huge budgets, have to work with a very limited IT department (In some cases volunteer labor) and need some sort of database capability. Used to be DBase III (And I've seen some HUGE apps implemented in DBASE.) MySQL provides the right combination of features, stability and price to compete really well in that arena.

    --

    I'm trying to teach myself to set people on fire with my mind... Is it hot in here?

  15. Not for a while. by Twillerror · · Score: 4, Insightful

    I wish TPC www.tpc.org would do some MySQL tests and show just how it really perfoms when compared, to DB2, Oracle, and MS SQL Server.

    Why can we not put an end to this debate. I wish slashdot would just refuse to repost this crap that people keep saying to see their words be pubilshed.

    It is simple, MySQL is a simple db system well suited to web-sites and application where it doesn't really fucking matter. Suppose if slashdot lost a couple of days worth of stories. Is the world going to end, NO, people will be, well whatever that feeling is when you loose data, but life will go on.

    If I lost 5 minutes worth of production data, I'd probably have to find another job. People would not get their orders, we might loose a client. If I worked for the NASDAQ, it might mean real $ figures.

    People who work in these high stress database positions understand the debate, and probably won't even post anything beause they are tired of it. I know I am. Learn Oracle, or SQL Server and MySQL postgres and then post your ideas, just don't learn MySQL.

    Now that is not to say there is no hope for open systems, I sure hope there is because Oracle is expensive, and I hate most big companies. There is a large list of things that Postgres and MySQL have to do. Here are the big ones.

    Log based transactions.
    Whenever something happens to the data, the change is stored in another file, along with the data file. This way transactions can be rolled back or restored from transaction log backups without a need to restore the whole database. Get a copy of the datbase backup from a certain time and restore every transaction log backup after that and your back to your last transaction log backup. It also helps to replicate a database, and makes true "live" backups possible while a system is live without a huge performance impact, because the transaction log is also backed up, but at the last second, so when you restore the db, you also restore that log backup that was made at the last second while the database was locked.

    One data file for multiple tables.
    Having a seperate file for each table is like using dbase or paradox. Hell even Access has one file folks. It is needed for mysql and postgres to manage their own "file system within a file".
    I think Postgres is going to do this soon according to some of the discussions.

    Complete SQL-92 support.
    for all the bitching we do about not supporting standards, MySQL seems to think it is all right to say, "oh they'll make it slower". Give me a break.

    Locking, Locking, Locking.
    This is imperitive for true transaction support. It is also complicated, deadlocks are no fun. But we must be able to do db, table, row, and key locking. This way you can lock down a row for editing, and not allow anything else to mess with it until your current transaction is done. The classic example is the checking to saving account transfer by two people at the same. MySQL and postgres are not as good of Multiuser system as the big boys. Right now postges sends a message to the application saying, this is locked retry transaction, this is just not up to real enterprise levels.

    XML support.
    This is a new one, but one that is going to rock the DB world. The crappy thing about current tech is that all record sets are 2 dimensional. But if you've ever done more than 3 or 4 one to many joins this can be a big bitch to scroll through. It also replicates data in the result set leading to more memory consumption, network bandwith, etc. MS SQL as part of the whole .NET crap is doing this. Imagine XML results sets with heirachy. Tree based joins may also be in the works with this kind of power.

    Stop saying we will take over Oracle, and take the steps needed to make it a reality.

  16. Whether MySQL or PostGres... by LinuxParanoid · · Score: 3, Insightful

    Whether MySQL or Postgres, I don't care as long as open source ends up being a platform for databases. Microsoft can try to portray Linux as a niche webserver platform now, but with a solid foothold as a database platform, open software, as a platform, will be substantially harder to dislodge.

    --LinuxParanoid

  17. Re:Sorta OT question... by Chagrin · · Score: 3, Insightful
    • If there is a bug in package A, the corp would have monetary incentive + engineers to fix it. (This is hypothetical, so spare me real world scenarios...) If there's a bug in package B, what exactly is the incentive to get it fixed in a timely manner?

    For package A, it's not really clear that there is a monetary incentive to fix it. Is the bug likely to generate fewer sales or not? The company is motivated by profit only and has to consider the opportunity cost of fixing the bug -- not the needs of the consumer. Package B (almost) always has motiviated engineers and an incentive (whatever that incentive might be) to maximize the package's utility. Package B exists because this is true.
    --

    I/O Error G-17: Aborting Installation

  18. What MySQL is... by coupland · · Score: 3, Insightful

    MySQL is basically a database as powerful as Access and others with no performance hit whatsoever. It's not that MySQL is an amazing feat of programming (a good one, but not an amazing one) but it shows what a simple database can do when performance is key. Consider /. which is run on MySQL. A personal database powers one of the best sites on the web, bar none...

  19. My poor experiences with a large MySQL db by eyeball · · Score: 3, Insightful

    I jumped at the chance to use MySQL for a large project as a win for opensource. I carefully designed a db that would hold one billion records, as required for my project at work. Well, after a week of importing, when it came time to reindex a field, MySQL's technique was to freeze the table and make a fresh copy (thankfully I had enough room), although the copy took 3 days (during which the db wasn't available). I switched to Oracle and life has been so much better.

    In the end, MySQL might handle the raw numbers that some of the big players do, but when you're working with large data sets, Oracle (and presumably others) give you more power. Take the actual physical data structure that Oracle allows you to work with: each database comprises of dynamic multiple variable length data files that can allow tables to span physical disks. MySQL will get there someday, but they're still a little behind.

    --

    _______
    2B1ASK1
  20. Comment removed by account_deleted · · Score: 4, Insightful

    Comment removed based on user account deletion

  21. If you don't understand your problem... by pHDNgell · · Score: 3, Insightful
    Well, sorry, but it is worthy. It's not a "full" database like you'd like for your work, but it's more than enough for a huge number of problems.

    mySQL is the right tool for *far* fewer jobs than those to which most people believe it applies. Many people end up writing code to deal with various aspects of data management that the database is supposed to take care of because they don't know that the database is supposed to take care of the data.

    If you only know mySQL, you will attempt to solve your problem within the limitations of the tool. The problem is that many things can't be done in multithreaded or worse, multi-process application code to ensure integrity. If the DB won't do it, and it doesn't support transactions, then you've just gotta hope people don't ever use your application in a way that will make your data invalid.

    I just don't get the appeal of mySQL. The last time I tried it, it seemed more difficult to use than postgres, and it supports a subset of the functionality. I have not done a project that doesn't require at least some basic database feature that mySQL doesn't have in years. Sure, I suppose I could've written code to emulate some of those parts of the database, but certainly not all. For the parts I could emulate, the application would most certainly run more slowly (multiple queries to emulate a subquery or what I do in a stored procedure), and the ones I couldn't would just have to be left out, which would make the applications more buggy (lack of transaction support on applications that run on multiple front-ends would simply cause the apps to fail).

    Anyway, basic point is that if you don't understand your problem and/or the tools that are out there to help you solve it, you will solve it incorrectly. It may seem like it's working, but those types of implementations fail really quickly when they go multi-user.

    --
    -- The world is watching America, and America is watching TV.
  22. True but by Betcour · · Score: 3, Insightful

    MySQL (or even Postgresql) don't claim to be drop-in replacement for DB2 or Oracle. But they claim to be good enough for simple database tasks, which happen to represent a huge share of the business market (for every high-availability banking application there are a 1000 small databases storing employee holidays, classroom affectation, etc.). These small databases are not only a bigger market in term of quantity (if not in value), but some of them also grow into big databases someday.

    Remember when Microsoft was doing MS-DOS, no Unix vendors would have been worried, they had much better capabilities. When millions of PCs were sold with MS-DOS they started worrying. When Windows came out they growed gray hair. Now SQL Server and Windows Server have eaten the market of smaller servers and high-end workstation. This is the strategy of eating your way from the bottom to the top, and it will also work for MySQL and Postgresql : as time passes and as they mature they eat out an ever larger chunck of the database market.

  23. Many byers missled by this kind of discussions by sedna · · Score: 5, Insightful

    Most database-systems set up by scientific projects I've seen, have been using either Oracle or Microsoft systems. This is of course completely insane considering the need they have, and a total waste of money. Unfortunately many people read a little about databases on sites like /. and start to belive that they are setting up a large database. After reading this thread, one can easily think that American express is running an averaged sized system with normal demands on security... The truth is that almost no school systems, museums, scientific projects etc. etc. ever need an enterprize solution. An example of the problem is an institut for Marin research in Colombia where they used Oracle. They paid $15.000 each year in licence fees to set up a database for their collections. They wanted to put it on the web and needed to pay $5.000 more. This is a simple task that Mysql, with all it's flaws, easily could manage, and without the need of an experinced Oracle techincian. There are Highschool Linux geeks in Colombia as well... The overkill in usage of database systems around is probalby enrmous and a very good source of revenue for Oracle and Microsoft. Think about this when you are bashing the lack of advanced features in Mysql. Someone might actually belive you and buy an Oracle licence to run the member database for their local bridge club...

  24. Re:Still couple of years away... by Tony-A · · Score: 3, Insightful

    Methinks you're onto something with the idea of circular dependence. Views can ameliorate the effects of bad database design. Whether or not this is a good idea depends. Hiding implementation details can be good, but. Hiding soil conditions from architects does not make for good skyscrapers. IMNSHO MySQL does an excellent job of picking the right point of abstracting. Solving business logic within the database seems like it could get counterproductive in a hurry.

  25. Re:Why don't they use dBase IV... by letxa2000 · · Score: 4, Insightful
    Everytime someone slobbers off about how MySQL is the greatest thing since sliced bread, what they really are doing is yelling "I AM IGNORANT! I AM A FOLLOWER!". I'm not kidding.

    You might not be kidding, but you also don't know what you're talking about.

    MySQL is the greatest thing since sliced bread for those that find that it DOES THE JOB. MySQL has done everything I need it to for my applications and does it fast. I run several websites using MySQL and it works great. I wouldn't even THINK of using SQL Server, Oracle, or any commercial software instead. In fact, the MyPhpAdmin intetrace is much BETTER than what I had to deal with when I worked with SQL Server 6.5--the last version of SQL Server I've had the misfortune to use.

    Many of the features that make the big commercial databases are bloat for many of us. I prefer not to use stored procedures--keep the data in the database and the program in the program. I don't like triggers, especially during the development process. I'd rather have a subroutine that does everything that needs to be done rather than rely on a database (and tie myself to it) to trigger certain actions. I'm not fond of database-enforced relationship constraints. I'd rather my code insert the right data than have the databse reject a transaction with an error because something went wrong.

    Sure, if you are Citibank and have a dozen offices around the country that all write their own scripts that modify the same data underneath then you might need stored procedures, triggers, and constraints to make sure no-one messes up the data. But for 95% of the database applications, stored procedures, triggers, and even constraints are bloat. If I can SELECT, INSERT, DELETE, and UPDATE, MySQL serves my needs.

    You also seem to be missing the point. The U.S. Government is already using MySQL successfully. It has never crashed (in the case cited by the article). Yahoo is already using it and is thinking about migrating the rest of the site to it. Last I checked, Yahoo is one of the highest-traffic site on the web. I don't think they'd make a decision like this without some real investigation. If MySQL is good enough to even be considered by Yahoo, it's definitely good enough for 99.9% of the websites out there--despite your well-informed, expert opinion. I personally believe Yahoo's decision has a little more weight than soem rant by an anonymous coward on Slashdot.

    Oracle and SQL Server might have their place on 0.1% of the databse applications out there. But, believe me, they aren't going to be able to run a profitable business on that 0.1% of the database market. And the rest of the market CAN consider MySQL. Or, in the case of your relgion, PostgreSQL.

  26. You're almost right... by schon · · Score: 3, Insightful

    The dirty secret of big databases is that most people don't know how to program them, how to configure them

    This is correct.

    and don't need most of the features

    This is where you're wrong.

    They do need the features - they just don't know they need them... so they implement the features themselves in the apps..