Slashdot Mirror


MySQL 5.1 Released, Not Quite Up To Par

Mad Merlin writes "It's no secret that MySQL 5.1 has been a long time in the making, with the first beta release being in Nov 2005, but MySQL 5.1.30 has finally been released as GA. MySQL users can expect new features such as table/index partitioning, row based replication, a new plugin architecture, an event scheduler and a host of performance improvements from 5.1." Monty also had a blog post outlining some of the challenges faced in 5.1, including crashing bugs and a beta quality to most new features.

51 of 175 comments (clear)

  1. "Fair and balanced" summary?? by toby · · Score: 3, Interesting

    Ryan Thiessen, a long-time 5.1 user, strongly rebuts Monty on his blog.

    I would go further and suggest that the MySQL organization has if anything been too conservative about declaring 5.1 GA. ...

    I have been developing for and administering MySQL 5.1 production instances for 18 months, ... we have not seen *any* table corruption or random server crashes relating to mysqld, despite having tables with hundreds of million of rows. ...

    Obviously 5.1 is not a perfect release. Quality is critically important to a database and I hope MySQL/Sun takes note of Montyâ(TM)s concerns, ...
    However in my opinion MySQL 5.1 a very good release, long ready for general production usage.

    --
    you had me at #!
    1. Re:"Fair and balanced" summary?? by scribblej · · Score: 4, Insightful

      Obviously 5.1 is not a perfect release. Quality is critically important to a database and I hope MySQL/Sun takes note of Montyâ(TM)s concerns, ...
      However in my opinion MySQL 5.1 a very good release, long ready for general production usage.

      You call THAT a rebuttal? My goodness... it no wonder MySQL sucks if he can admit on the one hand it's bugridden (not in those words, sure) and then say at the same time, it's ready for general production usage. What the hell does that mean?! It just makes me ANGRY to think people like this are DBAs! Does he mean to suggest your "general production usage" server is OK with lost rows and table corruption... if the chances of it happening are rare enough? Does he mean to suggest "general production usage" is a separate category from "people who use the advertised features of the product?" Seriously.... arrrrgh..... I think I'm having a stroke, I need to go take a valium or something.

    2. Re:"Fair and balanced" summary?? by dfdashh · · Score: 5, Interesting

      With all due respect to Ryan, I agree with Monty here. Not just 5.1, but the whole MySQL 5.x tree has been shipping with release critical bugs. What's more, some of those bugs (like the one that has been open since 2003) have lowered priority now because "people know about them."

      It sounds like MySQL could benefit from a more debian-like release criteria.

      --
      df -h /my/head
    3. Re:"Fair and balanced" summary?? by theantix · · Score: 3, Insightful

      What you responded to was an out of context quote, which by omission seemed to combine two sentences. In context my words might be less valium-inducing to you.
      """
      Obviously 5.1 is not a perfect release. Quality is critically important to a database and I hope MySQL/Sun takes note of Montyâ(TM)s concerns, especially about core developers working on fun new projects like Drizzle and leaving relatively inexperienced developers fixing bugs in their core business product.

      However in my opinion MySQL 5.1 a very good release, long ready for general production usage. Definitely test it before you use it, like you should also test new kernels, Apache versions, distribution releases, etc. But do not alow this sensationalist blog post to overshadow what should be considered a solid engineering accomplishment by the MySQL team.
      """

      --
      501 Not Implemented
    4. Re:"Fair and balanced" summary?? by Em+Ellel · · Score: 3, Funny

      ...it no wonder MySQL sucks if he can admit on the one hand it's bugridden (not in those words, sure) and then say at the same time, it's ready for general production usage.

      I think that just brings it up to the major leagues. I mean Oracle managed to ship production versions of its DB with developer's home directory hardcoded into startup script which without modifications would not allow you to start DB. How does something like THAT pass QA?

      -Em

      --
      RelevantElephants: A Somatic WebComic...
    5. Re:"Fair and balanced" summary?? by Sleepy · · Score: 4, Funny

      >How does something like THAT pass QA?

      That's REALLY unfair to blame Oracle for QA processes... they outsource SQA process, so it's a SUPPLIER problem.

    6. Re:"Fair and balanced" summary?? by reginaldo · · Score: 2, Insightful

      I would really like to read about a specific bug Monty spoke of, but it looks like they secured this bug information from the public. Bug #37936 "Crash when executing a query containing date expressions" http://bugs.mysql.com/bug.php?id=37936 It seems to me like this is an extremely major bug, and would keep me from using 5.1 altogether.

    7. Re:"Fair and balanced" summary?? by Anonymous Coward · · Score: 2, Insightful

      >they outsource SQA process

      I gathered that, just from the username.

      I must say, I'm heartened lately, since several clients have become willing to admit that their outsourcing-to-India adventures have worked out to be net liabilities. I mark this as the end of a trent that I saw coming, warned about, experienced the first (and last) time I managed an offshore team, and I have a special little "I told you so" dance for the situation.

      Yeah, I know, you're reading this in Bangalore and I'm an insensitive clod.

    8. Re:"Fair and balanced" summary?? by mksql · · Score: 2, Insightful

      Wait a minute... outsourcing is now a valid reason for poor quality?

      That and the _massive_ cost savings should make anyone who suggests it a candidate for CEO!

      --
      I should have been a Geologist.
  2. well by stoolpigeon · · Score: 2, Interesting

    maybe they are just trying hard to be more like the commercial enterprise databases. my experience with oracle was that they have a lot more bugs than this - it's just you can't actually find out about them until you call support. Then you find out they have known about it for some time, they just don't publish it. They hide all this stuff instead and only let certain things out.

    --
    It's hard to believe that's how Micronians are made. Why don't we see it right now by having you both kiss one another?
    1. Re:well by stoolpigeon · · Score: 5, Insightful

      I'm not sure what you are trying to say. If we have to play car analogy - lets say both cars engines will fail if you go over 80 kmh on a sunday while wearing blue. One vendor will tell you before you buy the car - the other waits until you've been on the phone with roadside assistance for a couple days. The severity of the issue is the same - it's just how the manufacturer handles it that is different.
       
      To step away from the metaphor for a second - I have had severity 1 service tickets open with Oracle support for over a day that ended up being unpublished bugs that were fixed with a patch that was not available until you knew you had run into the bug. Sev 1 to be clear is production systems down.
       
      I worked on a project with an Oracle consultant who had been on his own before he joined Oracle. I asked why he made the switch and he told me it was for one main reason - so that he would get full access to all the documentation, including all the bugs and open issues.

      --
      It's hard to believe that's how Micronians are made. Why don't we see it right now by having you both kiss one another?
    2. Re:well by hey! · · Score: 4, Insightful

      Well, you'd be a fool to buy MS SQL for its enterprise capabilities.

      It has its strengths, of course, but it's most important strength is it is the default database slice of the Microsoft deployment stack and is well integrated with Microsoft development tools. For modest projects it provides the kinds of advantages MySQL does in the LAMP stack.

      I'm not saying it is a bad product, depending on your needs. Nor am I saying that you can't do "enterprise applications" (whatever those are) if you design around its limitations. I'm just saying that if I weren't developing around a completely Microsoft based solution, I wouldn't give MS SQL a second glance. There are cheaper (open source) solutions on the low end, and more scalable solutions on the high end.

      If maximum upward scalability from a PC host starting point was required, I'd go with Oracle. The fit on the low end is a bit awkward, but it's workable. You've got to be careful when you license Oracle because you can spend too much money very easily, but if you know what you're doing Oracle is scalable and cost-efficient. If you don't know what you're doing, that's a different affair altogether.

      --
      Post may contain irony: discontinue use if experiencing mood swings, nausea or elevated blood pressure.
    3. Re:well by Windows_NT · · Score: 2, Funny

      While we are using car analogies:
      If your car dies, just do what microsoft suggests, and close all of the windows. maybe the car will then restart?

      --
      Go go Gadget Nailgun!
    4. Re:well by nabsltd · · Score: 4, Informative

      To step away from the metaphor for a second - I have had severity 1 service tickets open with Oracle support for over a day that ended up being unpublished bugs that were fixed with a patch that was not available until you knew you had run into the bug. Sev 1 to be clear is production systems down.

      I'll second this. We just ran into such a bug when trying to restore a database.

      The application connecting to the database was upgraded, and something went wrong when it tried to modify the schema, so we rolled back to the backup taken immediately before the start of this. Normally, this would have been simple, but apparently there's a bug with our version of Oracle that caused the restore to fail. Luckily, it only took an extra couple of hours to work around and we were still in our planned outage window, but it still sucked that it was a bug known to Oracle.

      Of course, we didn't hit the Oracle bug in our development and test systems, because the application didn't fail in the schema update on those, thank's to Mr. Murphy.

  3. Wow by Whitemice · · Score: 5, Insightful

    Impressive, now MySQL can have features other databases (PostgreSQL among others) have had for *years*. I've never understood; people like MySQL because it is "light", "simple", "easy", blah, blah.... and yet they add all these enterprise features that then everyone will laud about how MySQL is "growing up" or some such. MySQL is one of the best examples of self redefined success I think I've ever seen.

    If you want these features why not use a database that has had them for a long time, where they are better tested, and possibly get better performance under concurrent load as a side benefit.

    --
    Using "Common Sense" is being either to arrogant or to ignorant to ask people who know more about something than you.
    1. Re:Wow by moderatorrater · · Score: 2, Insightful

      Because different people have different needs. At the beginning of an application's lifecycle, it's very likely that they'll want a simple database that anyone can set up and use. MySQL is very easy to use and configure the first time. Postgres isn't nearly as simple. However, as the application grows up and the developers get more experience and more experienced developers get hired on, they start to wish for some of the more advanced features.

      In addition, since MySQL got so popular so quickly, developers were coming into jobs with experience in it but not in other databases. If you have five developers, each of which has used MySQL and nothing else, you're probably going to go with MySQL unless upper management puts their foot down, and in that instance they're almost certainly going to choose Oracle.

      However, I see that changing more and more. The established programs and sticking with MySQL, but a lot of newer programs are using Postgres.

    2. Re:Wow by mooingyak · · Score: 4, Interesting

      I think his argument is more marketing/PR driven. His main point is valid, in that MySQL claims simplicity/lightness when they don't have the features, and claims maturity when they add them.

      --
      William of Ockham had no beard. The most likely explanation is that it was chewed off by squirrels every morning.
    3. Re:Wow by Anonymous Coward · · Score: 2, Insightful

      MySQL is very easy to use and configure the first time. Postgres isn't nearly as simple.

      On what do you base this statement? Having used both, I do not agree and think they are about the same. Would be nice to hear what other find hard with Postgres set up.

      However, I see that changing more and more. The established programs and sticking with MySQL, but a lot of newer programs are using Postgres.

      I would prefer if the programs were written so that you could use the RDBMS you already have installed. For me this is a small hint that the developers might have a thought when it comes to design.

    4. Re:Wow by TheRaven64 · · Score: 4, Informative

      MySQL is very easy to use and configure the first time. Postgres isn't nearly as simple

      I've heard this a few times. I've installed PostgreSQL on Windows, Linux, FreeBSD and OpenBSD. Every time, the process has been:

      1. Install from the package
      2. Run initdb to initialise a new storage location (sometimes done by the package - I think it was under RedHat).
      3. Run createuser and createdb for each DB user and each DB that needed to exist.

      How does MySQL simplify this?

      --
      I am TheRaven on Soylent News
    5. Re:Wow by moderatorrater · · Score: 2, Insightful

      On what do you base this statement?

      Experience. I've used MySQL for years and didn't have any problems with configuration. It worked out of the box for everything I needed. Just last night I was configuring Postgres and had some issues with the configuration that I had to look up in their manual. The same thing in MySQL would have taken me thirty seconds now, and no more than 15 minutes when I was starting out. With Postgres, it took me upwards of 20 minutes when it should have taken much less time. MySQL is more willing to hold new users hands and has a lot of easy shortcuts built into it. Postgres does things well and gives you a lot of options, but it's not as forgiving to new users. Things like "SHOW TABLES" are either considerably more difficult in Postgres or harder to find out.

      I would prefer if the programs were written so that you could use the RDBMS you already have installed. For me this is a small hint that the developers might have a thought when it comes to design.

      When you're using MySQL for applications that aren't being distributed and installed by your customers, but are running on servers you control, there's no real need to make it work with any database other than the one that you're using.

    6. Re:Wow by larry+bagina · · Score: 2, Insightful

      If they've used MySQL and nothing else, they're probably self taught and don't really understand what they're doing.

      --
      Do you even lift?

      These aren't the 'roids you're looking for.

    7. Re:Wow by larry+bagina · · Score: 3, Informative

      One thing I like about postgresql vs MS Sql is the triggers. MS SQL triggers are after-insert, per statement only, IIRC. Pg triggers are per statement or per row, before or after. There's also a rule system and the ability to rewrite the query, for updateable views or other tricks. The lacking features are clustered indexes, replication, and partitioning. I'll also mention hash indexes -- it has them, but they're not journaled, and they're not generally recommended. I'm not going to comment on MySQL since I haven't used it since 4.x and it sort of has triggers now.

      Oh, also, the pgpsql stored procedure language is similar to oracle's psql and fairly fun to program in.

      --
      Do you even lift?

      These aren't the 'roids you're looking for.

    8. Re:Wow by jmusits · · Score: 4, Informative

      .... Things like "SHOW TABLES" are either considerably more difficult in Postgres or harder to find out. ....

      More difficult? Harder to find out? Consult help by typing \? and you will see this:
      [snip]
      Informational
          \d [NAME] describe table, index, sequence, or view
          \d{t|i|s|v|S} [PATTERN] (add "+" for more detail)
                                        list tables/indexes/sequences/views/system tables
      [snip]

      Then type \dt to show the tables. To me that does not present it seld as more difficult or hard to find out.

      --
      -- 42 --
    9. Re:Wow by moderatorrater · · Score: 2, Informative

      That's only using the client which hides the actual queries from you. If connecting through code, \dt doesn't work; in mysql, show tables does.

    10. Re:Wow by cyber-dragon.net · · Score: 2, Insightful

      I think you proved his point... to an inexperienced user what you just posted is gibberish where "show tables" is plain english and something you might type as a guess.

      To someone very familiar with reading option syntax sure that makes sense... but that is a much smaller group. Just figuring out that \d{t|i|s|v|S} means /dt or /di or /ds etc assumes a certain level of knowledge.

    11. Re:Wow by aarongadberry · · Score: 2

      Pretty buttons that say next >>.

    12. Re:Wow by Kolargol00 · · Score: 2

      How does MySQL simplify this?

      3a. Install phpMyAdmin ;)

      --
      XML is like violence. If it doesn't solve the problem, use more. Junta
    13. Re:Wow by Zontar+The+Mindless · · Score: 2, Informative

      ... master/master replication is buggy and will frequently just stop replicating in one direction or the other. It's easy enough to fix (once you've learned how...the documentation could be a lot more thorough), but it's annoying that we have to do it so frequently.

      You can also file bugs against the docs (Category is "MySQL Server:Documentation"). Please do so.

      It would help resolve the issue more quickly if you could supply at least some of the information that you think is missing.

      Thanks for helping other MySQL users!

      --
      Il n'y a pas de Planet B.
    14. Re:Wow by LizardKing · · Score: 2, Insightful

      So now MySQL had two forms of replication, and Postgres still has... Log shipping. Call me a noob, but I'll take MySQL any day.

      Postgres has had Slony for replication, and has done so for years. As for MySQL, I haven't touched it since version 4.1, and while it may have come with replication in the same tarball as the DB engine (whereas Slony is a separate package) it proved very unreliable. The worst thing about MySQL replication was that when it crapped out, it would not issue any warnings and provided no mechanism for notifying us of problems.

  4. news flash by girlintraining · · Score: 4, Insightful

    Just about every major non-open source project that has shipped with major bugs, the /. crowd jumps on for releasing poor quality products due to bad planning, poor communication, legal reasons, marketing deadlines, oh and the list goes on. When an open source project is shipped with major bugs though, what do I hear? Excuses. Is it just possible that people who develop open source are human, and make the same decisions, for the same reasons, as their closed-source counterparts? Which might lead to the conclusion that different methods don't necessarily yield different results; ie, that open source innately presents no inherent technical advantage over closed source, only social and legal advantages. Uh oh... they're getting a duck and a large scale out. I think that's my cue to post and run now...

    --
    #fuckbeta #iamslashdot #dicemustdie
    1. Re:news flash by scribblej · · Score: 4, Interesting

      Oh, I agree, every product that's ever shipped has shipped with bugs.

      But you gotta put this all in perspective, some glib talk about how everyone is equal in the eyes of bugs just doesn't apply here.

      First off, the context. We're talking about a database, your warehouse for your most valuable asset. This is not a place where you want to encounter mistakes, and caution is the word. You might hear excuses for some, but those people are idiots. This is /inexcusable/.

      If you read the article, the things he says basically boil down to "this product is as stable as a house of cards and if you use it, treat it with all the care and caution you'd give a newborn child." I'd love to pick an excerpt from the article and copy it here, but it's just TOO RICH. Every single thing this "Monty" says would make your average MySQL apologist cringe, and makes normal people and DBAs stomachs turn.

      Honestly, I think I'm gunna be sick. I don't care if MySQL is a good product or a bad product as such, I only use it for stupid things that do not matter at home, like my MythTV, never ever on anything that could be called "production." But having read this article and gotten a picture of what is, evidently, the thoughts of the minds supporting the creation and use of MySQL, it makes me ill. These people should just come out and say "there's no explanation we can give, this is crapware and we're really sorry if you got hosed by it. Don't use it at all if you aren't already." Instead this guy bends over backwards to explain how this broken database is actually quite useable, and ready for "general production" - how that's different from just "production" is clear: apparently "general production" refers to systems with zero value (less than my MythTV box, which will NOT be getting an update to this version).

    2. Re:news flash by mmkkbb · · Score: 2, Insightful

      That's NOT the waterfall model.

      --
      -mkb
    3. Re:news flash by kwerle · · Score: 5, Funny

      Cognitive dissonance is a wonderful thing.

      No, it's a terrible thing.

      But I want it. Badly.

    4. Re:news flash by Fahrvergnuugen · · Score: 2, Informative

      Almost right. Oracle owns InnoDB, which is the useful part of MySQL.

      --
      Kiteboarding Gear Mention slashdot and get 10% off!
  5. MySQL x.1 releases gives me the creeps by julie-h · · Score: 3, Funny

    I'm I the only one that get the creeps when a 1 is followed after the . in the version?

    1. Re:MySQL x.1 releases gives me the creeps by Anonymous Coward · · Score: 2, Informative

      So, you're waiting for MySQL 5.11 for Workgroups?

  6. Re:Beta Quality by moderatorrater · · Score: 2, Insightful

    Everyone here knows what he's talking about when he says "beta". It'll be a few years at least before people who know the term "beta" will get confused by TFA's use of it, and it'll be much longer than that before anyone on this forum will get confused. It's entirely possible, even likely, that the trend will reverse itself in that time. I haven't seen any other site abuse the term as badly as Google, and most places use it properly.

  7. 5.0? that so? by toby · · Score: 2, Informative

    I've been using 5.0 in production for well over a year and found no 'critical' bugs. (For most of that time I had access to MySQL's paid support.)

    As Ryan said there is no such thing as bug free software but there is such a thing as production-ready software. MYSQL 5.0 HAZ IT.

    --
    you had me at #!
    1. Re:5.0? that so? by dfdashh · · Score: 4, Insightful

      You call software that can bring down multiple slaves with a drop table statement in a transaction production-ready? Have fun with that.

      --
      df -h /my/head
    2. Re:5.0? that so? by MindStalker · · Score: 4, Insightful

      If you allow your users direct access to SQL and rely on SQL permissions you probably shouldn't. Most MySQL setups have no way of allowing untrusted users to run SQL directly so they can't run a drop table statement. So yes, if your letting complete strangers run SQL on your database you might want to look somewhere else.

  8. Re:Not a question forum by Muad'Dave · · Score: 2, Informative
    Uh, if you're trying to interrogate a BLOB column on a particular row that you have criteria for, wouldn't this work?

    select count(myblob) from myTable where field1='criterion1' and field2='criterion2' ... and myBlob is not null

    If it returns 1, the column has data. If it returns 0, it's null.

    --
    Tiller's Rule: Never use a word in written form that you've only heard and never read. You will end up looking foolish.
  9. Heh by Trailer+Trash · · Score: 2, Insightful

    MySQL 5.1 Released, Not Quite Up To Par

    Depends on what you call "par", but for my values of "par", MySQL has never been there.

  10. PostgreSQL has the same issues by Sxooter · · Score: 4, Interesting

    It just has them on a different scale and there's a different release. If you look through the past release notes for pgsql, you'll see that occasionally one release would come out with some horrific server crashing bug, get reported and get fixed.

    Now, the timeframe is what is the key. For MySQL there are server crashing bugs that have been in place since 2003 or before.

    For PostgreSQL, once such a bug is documented and reproduce-able, it is generally squashed in hours, days, and occasionally, for really complex problems, in a week or so.

    --

    --- It is not the things we do which we regret the most, but the things which we don't do.
  11. The first time I used MySQL... by quantum+bit · · Score: 5, Interesting

    I've used MySQL for years...

    The same thing in MySQL would have taken me thirty seconds now, and no more than 15 minutes when I was starting out. With Postgres, it took me upwards of 20 minutes when it should have taken much less time.

    That's because you know MySQL, so of course something that works differently is going to be more work for you to figure out.

    I've used PostgreSQL for years, when I had to set up a MySQL database for some php app it took much more than 15 minutes to figure it out and get it running. The primary problem was MySQL's obtuse user management system.

    With PostgreSQL I know that it's secure by default -- the default user has no password, so even if you enable password authentication it won't work (because it has no password!). You log in locally with trusted authentication, and issue the very logical CREATE USER. Edit the self-documented config file to allow remote hosts to access the database using your preferred authenticaion method, and you're done.

    With MySQL, new users are automagically created by the GRANT command?! Huh? On top of that, passwords are apparently specific to a certain host string. Bizarre. Do I need to use localhost for the actual machine name for local users? What about remote machine without a reverse DNS entry? What's the order of precedence for '%' vs a more specific name?

    Oh, the default 'root' account has no password ...and allows access over the network. Wonderful. Okay, so to change that do I use root@% or root@computer? How do I know I changed the right one and there isn't still some root@something entry? SHOW TABLES is easy enough, how about SHOW USERS? Nope, that's not it.

    Time to check the startup guides. Well, one just has a single password change, another has 3 or 4 lines of 'delete from user...'. The reference for GRANT just has a bunch of caveats and warnings, and the "User Account Management" section goes on and on and somehow doesn't manage to tell me what I want to know.

    To this day I'm not 100% sure if the MySQL install is secure. I decided my time would be better spent eliminating the MySQL-isms from the app in question so that it can run on Postgres like everything else on the server. There are some very strange queries in there - a lot of GROUP BY expressions that make no sense and aren't valid SQL. Some of it I'm not sure how it ever worked.

    1. Re:The first time I used MySQL... by Doug+Neal · · Score: 2, Insightful

      You are both essentially in agreement, and what you're saying boils down to "I'm used to X, and when I tried to do the same thing with Y, which I'm not used to, it took me longer that it would have done with X". It doesn't really say anything about either MySQL or Postgres.

      I've used both systems a fair bit. As a sysadmin I find MySQL easier to work with, because the way the data files closely mirror the structure of the database, and it doesn't mind too much if you tar up a database, copy it over to another machine, and start it up. Postgres's on-disk format is by comparison pretty obtuse, and if you get data corruption it's a lot harder to recover from. (Of course if you're doing it properly you've got battery-backed RAID and periodic hot backups to restore from, but this isn't always within budget or the data isn't that important).

      When I've got my developer hat on I prefer Postgres because it's more strict and more predictable and feels a lot more refined.

      Preferences come down to what you're used to.

    2. Re:The first time I used MySQL... by Michael+Wardle · · Score: 2, Informative
      So you'll know for next time...

      On top of that, passwords are apparently specific to a certain host string. Bizarre. Do I need to use localhost for the actual machine name for local users? What about remote machine without a reverse DNS entry? What's the order of precedence for '%' vs a more specific name?

      The manual seems to describe this in the connection access and request access sections. It answers your question on precedence (most specific to least specific, first match wins), but not the others. You would assume that localhost or 127.0.0.1 would work for connections initiated over the loopback interface (i.e. where the client application connects to localhost or 127.0.0.1), but that you would need to use the real public host name if the application is connecting via that. That's how networking works. Interesting point about reverse name lookups not working. Hopefully it's getting the name from there, and not just using whatever hostname the client asserts when it connects. You'd want to use IP addresses rather than host names to be safer. They mention that wildcard and host/subnet notation is supported.

      Okay, so to change [the root password] do I use root@% or root@computer? How do I know I changed the right one and there isn't still some root@something entry? SHOW TABLES is easy enough, how about SHOW USERS? Nope, that's not it.

      Well, you now know the precedence. The pages I linked to before also tell you that MySQL determines these based on the values in the user table (i.e. mysql.user), so you could just do a SELECT * FROM user WHERE User = 'root' to see what entries exist. From there, you would either have noticed that the passwords were hashed, and so found the password hashing section and executed an UPDATE user SET PASSWORD = PASSWORD(password) WHERE..., or you would have found the SET PASSWORD documentation, or a quick Google search would likely have yielded the more common advice to just do mysqladmin -u root password NEWPASSWORD.

  12. Re:Pet peeves by quantum+bit · · Score: 2, Interesting

    -Does it silently accept CONSTRAINTS other than FOREIGN KEYs and then not use them? ...

    Why is ignoring FOREIGN KEYs okay? A constraint is a constraint, IMO.

    Last I checked FKs worked, if you're using InnoDB, and then only kinda (no deferred checking, which is the SQL standard default).

  13. too much adoration of personal database favorites by managerialslime · · Score: 3, Insightful

    There is too much adoration of personal database favorites and excessive condemnation of competing products

    While I'm currently a CIO for a small-to-mid-sized company, I've been using relational databases now for more than twenty years.

    For years, I've been HEARING about crash issues using MySQL for transactions. For as many years, I've been designing databases and supervising application design that use MySQL for small transaction systems without corruption problems at all. During this time, I've also designed many large read-only tables used by query systems with millions of records without corruption problems.

    For more than a decade, I experienced crash after crash when using SQL/Server for databases above a few million records and/or above a couple of hundred gig. Over time, the product got better. Today, my group uses SQL/Server for production applications with almost a hundred million records updated daily with no corruption reported in YEARS.

    I've been using Oracle since the 1980's on many platforms. Yes, the early days (pre version 7) were grief and suffering when building OLAP applications. However, each version since Version 7 (1995? 1996?) has been better than every alternative that my employers would consider (including IBM's DB2,) and I am still very comfortable betting my job on Oracle when data warehousing is involved.

    When faced with new challenges, I'm free to select any database application so long as I know my job is on the line when something fails. As a result, mission critical applications will still be coded in Oracle and non-critical applications that we can take our time stress testing are mostly done in MySQL.

    I still have to use SQL/Server as commercial tools our accountants use (MS Dynamics and Clarity) will work on nothing else.

    Instead of cursing every product with which a writer has had bad experiences, the key to reducing grief is to remain aware of the likely risks and rewards of each approach. Yes, Oracle is expensive, but the risks to one's company and personal employment often make it the right choice. Yes, using tools that cost the most will sometimes put a business at a pricing disadvantage and that is when looking at MySQL is sometimes a key to success.

    What I could really use is a grid that compares current versions of each product and recommends the likely characteristics of appropriate applications. (For all I know, my own preferences and rules may already be out of date.)

    --
    Live Long and Prosper - Thanks Leonard. You are missed.
  14. Re:too much adoration of personal database favorit by jadavis · · Score: 3, Insightful

    Instead of cursing every product with which a writer has had bad experiences, the key to reducing grief is to remain aware of the likely risks and rewards of each approach.

    We can be as relativistic as we want, as though every system is a snowflake with it's own beauty, but in the real world, sometimes value judgments are useful.

    For instance, if you design a truck and I design a car, we can both respect each others' designs, and differ on opinion. You might prefer towing capacity, and market that benefit to construction workers and farmers. I might market the fuel economy and handling to commuters.

    If someone designs a car that sometimes explodes when it rains and the steering wheel in the trunk, it's a bad design, period.

    --
    Social scientists are inspired by theories; scientists are humbled by facts.
  15. The bottom line is that it is embarrassing by smchris · · Score: 2, Insightful

    "Even if we have fixed a big majority of the bugs from 5.0 some really critical ones still haven't been addressed."

    That's the sort of attitude more than a few people still expect from this "open source stuff".

    The pivotal thing about MySQL is that they released a Windows version early and it got on CDs bundled with a ton of programming books. In my opinion, that's why we are talking LAMP instead of LAPP.

  16. MySQL join performance deficiency, 3 orders of mag by nluv4hs · · Score: 3, Interesting
    I know the subject sounds inflammatory but I have hard numbers and a simple, yet realistic example. I would like it if someone would show me how to coax MySQL to perform as well as PostgreSQL for this simple query. It's been over two months since I posted this problem in two very public forums, with no response from the MySQL community. Would someone please stand up for MySQL and save it from looking weak here?!