Slashdot Mirror


MySQL on Windows - Good Idea?

mikeballer asks: "We currently run our website from a shared hosting environment, with ASP and MS SQL Server. We will be moving to a dedicated host, and to save money, we are considering transitioning to MySQL while remaining in a Windows environment. I had read the Windows-vs-Unix section of the MYSQL documentation, but what is Slashdot's perspective on the performance of MySQL in a Windows environment?"

61 comments

  1. Can't resist by denissmith · · Score: 0, Troll

    Nothing on Windows is a good idea :-). Conversely MySQL on anything is a fair idea, though I admit to a Postgres tendency. If any of that meant something to you, you are sick.

    --
    I have nothing to hide. So, why are you spying on me?
    1. Re:Can't resist by jilles · · Score: 3, Insightful

      Actually mysql works fine on windows. I've seen it being used in production and I've run it for about two years for testing purposes. Windows is quite a good choice for running mysql. You get a nice installer which makes configuration easy; there's several good mysql frontends (e.g. mysqladministrator) that make configuration easy and there's commercial support available if you need it.

      In general, most oss stuff that makes linux popular runs on windows as well these days (quite often with very good commercial support available and user communities that dwarf their linux counterparts). Basically all of the commandline stuff is likely to already have at least an cygwin port. The more important packages generally have windows specific versions as well (e.g. apache, mysql, openoffice, firefox, python, perl, gaim, php ....). Some of the desktop stuff actually works better on windows (e.g. firefox, eclipse).

      I'm a big OSS fan and I use windows almost exclusively. Aside from the OS and office (at work), most stuff I use is open source. I prefer linux for server environments, though, but performance or stability are not the reasons. Managability is the big reason for me.

      Despite this I'm pragmatic enough to see that you don't want linux unless you have a capable sysadmin available to run it. Putting linux in an environment with a few windows wannabe sysadmins (i.e. most small companies) is just asking for trouble.

      --

      Jilles
    2. Re:Can't resist by Anonymous Coward · · Score: 0

      I'm a big OSS fan and I use windows almost exclusively.

      You're a sad fuck. Turn in your geek card now please.

    3. Re:Can't resist by phenix927 · · Score: 4, Informative

      I'm a big OSS fan as well, and administer Windows Servers. I also use every single platform I can get my hands on. I found from experience it can be more difficult to install most OSS Apps on windows than on what they were natively written for. A true geek can use whatever they are given. But back to the point at hand .. MySQL and Postgres runs perfectly fine on Windows. I've been running it in production for about 4 years.

    4. Re:Can't resist by SanityInAnarchy · · Score: 1

      Putting linux in an environment with a few windows wannabe sysadmins (i.e. most small companies) is just asking for trouble.

      Having an environment with a few Windows wannabe sysadmins is asking for trouble no matter what you're running. If you can't afford one decent Linux admin to replace your 5-10 Windows admins -- for instance, you only had 1 wannabe Windows admin in the first place -- you're much better off outsourcing the whole thing anyway.

      --
      Don't thank God, thank a doctor!
    5. Re:Can't resist by LWATCDR · · Score: 1

      "In general, most oss stuff that makes linux popular runs on windows as well these days (quite often with very good commercial support available and user communities that dwarf their linux counterparts)"
      often? Except for the Mozilla projects and OpenOffice I really kind of doubt that. Your right about a lot of OSS being available for Windows but I find that most still have a better linux user community.

      --
      See my blog http://ilovecookes.blogspot.com/ for light hearted technical information.
    6. Re:Can't resist by Zontar+The+Mindless · · Score: 3, Informative

      What's germane to the current discussion is that MySQL for Windows does exist, runs fine and fast, and MySQL AB provide both unofficial and official support for it same as for MySQL on most other platforms.

      The MySQL win32 mailing list and forum are plenty active, and MySQL AB are generally quite happy to sell you paid support for your servers running their product regardless of the OS that happens to be on them. Even if it's Windows. ;)

      MySQL works pretty much the same on Windows as it does anywhere else, the one major exception to this being MySQL Cluster, which is currently supported on Linux, Solaris, and OS X only.

      I'd personally rather see people switch to an OSS operating system and run MySQL on that, but that's just my 2 öre. But if you really want to run it on Windows - go for it.

      --
      Il n'y a pas de Planet B.
    7. Re:Can't resist by LWATCDR · · Score: 1

      Oh I do agree with just about everything you said except the point about the windows OSS communities. Running MySQL on windows for development kind of makes some sense since you can also run Apache and PHP on windows. For deployment I am a big fan of keeping the database server on a seperate box.
      If cost is a problem then the recipe for a good cheap MySql server is this.
      One old P3 800+ Mhz is good enough.
      As much ram as you can afford to stick in it.
      A cd-rom.
      A small boot hard drive.
      To good sized HDs for the database.
      One copy of CentOS
      Set up the two good sized drives as a RAID 1 and us that for the Database. You can use the Linux Software RAID to save some money.
      This should work for MySQL, Postgres, or Firebird. I personally prefer postgres over MySQL and I have used both but that is just me. YMMV.
      A minimal install of CentOS will make for a quick and inexpensive database server that should be as secure as a well run windows sever with a lot less effort. I find maintaining and updating Linux server to be easier than Windows Boxes. SSH and yum make it very easy and since Linux seems to have fewer remote exploits and is targeted less I find it more secure.

      --
      See my blog http://ilovecookes.blogspot.com/ for light hearted technical information.
  2. You should experience no problems by WebHostingGuy · · Score: 2, Informative

    While I believe MySQL works better and has more support for the *nix platform you should have no major problems with running MySQL on Windows. I have seen it done lots of times without problems.

    --
    Quality Hosting e3 Servers
    1. Re:You should experience no problems by slughead · · Score: 2, Funny

      While I believe MySQL works better and has more support for the *nix platform you should have no major problems with running MySQL on Windows. I have seen it done lots of times without problems.

      I agree, and in addition I'd like to add that MS Access' GUI is freaking painful to use. I took a course in it once...

      "OK click here, here and here, and type this here while keeping in mind case sensitivity"
      "Or I could just type in the SQL..."
      "SQL doesn't do that!"
      *remote access into professor's insecure computer*
      "It sure does, look here."
      "Take your 'A' and leave."

    2. Re:You should experience no problems by Southpaw018 · · Score: 1

      I'll second that. Our database is fairly light usage (in the relative sense), but with MySQL 4 or 5 and the latest admin tools (Administrator, Query Browser) it's very smooth and efficient.

      ...a hell of a lot better than MSSQL, at any rate.

      --
      ACs are modded -6. I don't read you, I don't mod you, I don't see you. Don't like it? Don't be a coward.
    3. Re:You should experience no problems by clifyt · · Score: 1

      "in addition I'd like to add that MS Access' GUI is freaking painful to use."

      Not really -- not if you don't want to have to keep a dozen tables straight in your mind and text it all out.

      I generally use Access's GUI to mock up my joins and otherwise in MySQL -- of course, you STILL have to know what you are doing because the Access code will not work out of the box 9 times out of 10 on a complicated query but it will get you close enough that the rest is pretty easy to solve.

      Then again, most of the nerds I've met that have made these same claims have all been looking at a single database with maybe two or three tables and of course its f'n easier to pull out the console and type from there instead of utilizing a GUI.

      And I have other tools at my fingertips that are much more in line with building queries for MySQL that have the proper syntax -- but those are generally not installed on clients machines while Access is and I can easily teach a client how to make the appropriate changes from Access to MySQL (pretty standard changes).

      If I were the Prof, I wouldn't have given you the A -- anyone can be a smartass. Teaching others to use the tools they use efficiently even if its not your tool of choice? That takes real knowledge.

      But all in all, back to the original topic I use MySQL on Linux, PC and my Mac with no problem...

    4. Re:You should experience no problems by Anonymous Coward · · Score: 0

      Clearly you know NOTHING about MSSQL... Or perhaps nothing about any DBs in general other than MySQL. Do yourself a favor, stop saying things like this, it only shows how ignorant you are about the subject.

    5. Re:You should experience no problems by cloudmaster · · Score: 1

      You can't keep the tables straight in your head? Maybe you should stop naming them "table1", "tbl2", etc and use meaningful names - it's not like the length of table/column names slows SQL down or anything...

      Yeah, the relationship view thingie is half handy, but only half, and only if you didn't create a proper ER diagram for this huge complicated database beforehand like you and/or the developer / DBA should have. Yes, if it's too big to keep in your head, it oughtta be written down. In almost any situation, that holds, but esp. in anything database related.

    6. Re:You should experience no problems by clifyt · · Score: 1

      The problem I have, is that I'm dealing with several hundred tables -- a lot of which are almost redundant but that they have ONE piece of information different than the other.

      I have to collate data from 8 college campuses, including legacy and current systems -- and it'd be really nice if there were diagrams for this, but it would require administrators from these varying departments and campuses to all be in agreeance about what they need and don't need and how its presented.

      It would be much easier if I were afforded the ability to download a snapshot of the data and go from there but I can't...

      But yes, these tables get written down before collated and formatted...and if I used the bulk of tables more than once a year to create a new report and throw it out for the administrators -- I'd probably be comfortable with doing it all in paper.

      So its nice that you believe this, but alas, I work in the real world and just because I work for academics, it doesn't mean what is taught in class actually makes it out to the DBAs I have to work with -- and this is a small part of my job -- I don't claim to be an expert at databases and don't want to be...I do, however, know that anyone that claims that they can remember all the tables and deal with everything through the commandline probably isn't working with anything all that complicated...and at the same time, knowing that just because everything isn't printed out, it isn't because any DBA was slacking -- it could be that the information wasn't intended to be connected (you can't imagine every scenario).

    7. Re:You should experience no problems by cloudmaster · · Score: 1

      So you use access to "join" data from a bunch of disparate databases, probably mostly designed by people who didn't know what they were doing. You know that an SQL "join" isn't something you do across multiple databases on multiple systems, right? Sure, the verb's the same, but it's not the same thing... If you'd used "collate" to begin with, it would've made more sense.

      Also, working at an academic institution is not the real world. I've worked in IT for a college - it's very much *not* real-world. ;)

    8. Re:You should experience no problems by clifyt · · Score: 1

      No -- I use Access to organize my thoughts and nothing else -- sometimes its paper and pen drawing lines. Sometimes its notepad or otherwise after I've dumped the data defs.

      I pull in small extracts of the tables so that I can see what the fuckups are and where the problems are and use it to see how I'm going to write it out for the real applications (which I 'handcode' from the quick and dirty). Its simply a visualization tool as much as VisualBasic or RealBasic are RAD tools (that should never be used to ship actual product).

      As for collate -- I wasn't meaning it in a technical term -- but in the term of collecting and compiling for distribution. Again, I'm not a DBA nor do I want to be...I solely want information so I can validate the effectiveness of various institutions :) Though at the same time, my original note to the kid that was pissing all over his instructor was that some of us that realize that they know little compared to a real DBA still understand far more than he seems to know with his smarmy attitude (and yeah, it irks me a little because I see that same attitude here -- I've had student workers piss on my limited technical skill and try to prove they are smarter...until I let them take over a project on their own and watch them fail miserably...I don't do so to be a jerk but so that they understand technical know how is actually only maybe 25% of the entire project -- seeing the entire picture is far more important than knowing the code).

      And honestly, the technology I have my hands on here rivals that which I've used in the corporate world. I still do a bit of consulting, though almost all of it is of a research / assessment end for these guys -- but occasionally I have to get my hands dirty in the technology when their staff isn't up to my demands. This campus is one of the most highly technical ones in the nation and is used as a testbed for a lot of future corporate technologies -- so I'm generally ahead of the curve than my corporate brothers (it really is a dangerous place to be when you are trying NOT to be a geek and put that life behind you).

      But yeah, most university IT is a joke -- just not at this institution.

    9. Re:You should experience no problems by cloudmaster · · Score: 1

      Ohhhh.... That makes more sense (Access as a rapid protyping tool). :)

      My University IT comment was more directed to the amount of politics involved than the level of technology, if that helps put it in perspective at all. Though, there are certainly several with crummy technology, too.

  3. I use it by SocialEngineer · · Score: 2, Informative

    I've used it for testing and whatnot, as well as running on dedicated servers (had to have it running in our techlab at college, which is Windows only). In both environments it performs fairly well, however, I must say that we weren't really putting much load on it.

    --
    "Better to be vulgar than non-existent" -Bev Henson
  4. Lame. Very, very lame. by Saeed+al-Sahaf · · Score: 1, Insightful

    Lame. Very, very lame. A lame joke based on out-dated and irrelevant issues long since addressed, many of which are not unique to MySQL. Funny thing, when examples of MySQL implementations by major players in heavy load environments is brought up, the cliché wielding nay-sayers become strangely quiet.

    --
    "Who are in control, they are not in control of anything - they don't even control themselves!" - Glen Beck
    1. Re:Lame. Very, very lame. by voice_of_all_reason · · Score: 2, Interesting

      I don't know what the error means, I just copy and pasted from the first google hit for "mysql error"

      My beef is with websites (forums, image boards) that grovel before the altar of MySQL only to have their site completely hosed for a good hour or two every day because of some error or another. When HTML bugs up, it doesn't also take out every other server in a 40-foot radius with it.

    2. Re:Lame. Very, very lame. by Saeed+al-Sahaf · · Score: 1
      My beef is with websites (forums, image boards) that grovel before the altar of MySQL only to have their site completely hosed for a good hour or two every day because of some error or another. When HTML bugs up, it doesn't also take out every other server in a 40-foot radius with it.

      I don't see that. At least every day. I dom see a lot of MS SQL errors on a fairly regular basis... Maybe it's not MySQL, maybe it's the shitty web app that uses MySQL? Most smaller web sites are not coded by the smartest people in the world...

      --
      "Who are in control, they are not in control of anything - they don't even control themselves!" - Glen Beck
  5. What about 2 servers? by alta · · Score: 4, Interesting

    I read the doc you mentioned and that 4000 port limit thing seems like it may be killer, depending on the type of connection you have. I know a lot of hosting companies sell both Linux AND windows servers. Have you considered keeping a windows server for the ASP and getting a linux box to run SQL? You'd also have the advantage of seperate servers/seperate functions.

    --
    Do not meddle in the affairs of sysadmins, for they are subtle, and quick to anger.
    1. Re:What about 2 servers? by Bios_Hakr · · Score: 1

      Another possibility is to get a single Windows box with a shit-ton of RAM. 1GB for general testing and maybe 4GB for production. Also get at least 6 physical drives divided between 3 seperate RAID controllers configured for RAID1. Redundant power supplies would be nice, but only if your environment also provides seperate power feeds in a rack.

      Install whatever OS you are comfortable with. Regardless of what Lin or Win fanboys think, you'll get more uptime and beter security with an OS you are used to using.

      Next, install VMWare. Create a VMware image for WinXP or 2k3 on the second RAID controller. Create a VMware image for Linux 2.4 Kernel on the third RAID controller.

      Install Windows and all its server stuff on one image and install Debian stable on the other image.

      Now, at first, this may seem like overkill. But you save a lot of overhead by using a single box. The actual price is comparable to a two servers. The CPU and RAM costs are cut considerably because the two servers will keep a single CPU in constant use. Compare this to dual servers where the CPU may sit idle for the vast majority of the time. Power usage for this setup will be less than dual servers and heat generation will be lower.

      --
      I'd rather you do it wrong, than for me to have to do it at all.
  6. Important Consequence of MySQL for Windows by Randolpho · · Score: 4, Informative

    I can't really quote performance stats; I've never dealt with a server that gets enough traffic to make a difference.

    What I can tell you is that there is a major, important consequence to using MySQL for Windows rather than *nix. It stems from the way MySQL stores table data: the name of the table is the filename of the file used to store that table. Ditto for database names.

    On Windows, filenames are case insensitive. The filename "MySQL" is the same as "mysql" is the same as "MysqL", etc. Consequently, table and database names on MySQL windows servers are case insensitive. Case is preserved on *nix, because filenames are case sensitive.

    That's not to say that you shouldn't use MySQL for Windows, just be prepared for portability issues if you happen to migrate from *nix.

    MySQL documentation on the subject

    --
    "Times have not become more violent. They have just become more televised."
    -Marilyn Manson
    1. Re:Important Consequence of MySQL for Windows by Anonymous Coward · · Score: 0

      Whenever I do migrations, I have problems going from Windows to Unix when it comes to filenames. Don't loss the disipline of making sure all the filenames match case, which will save you a huge headache down the road if you ever migrate back. Migrating to *nix is always a posibility with server applications, even if they are ASP.

      Peace out.

    2. Re:Important Consequence of MySQL for Windows by kosmosik · · Score: 1

      Actually NTFS (filesystem that Windows NT uses) can be case sensitive. It is that by default shell and kernel is configured to be case insensitive. This is due to POSIX compatibility which requires case sensivity.

    3. Re:Important Consequence of MySQL for Windows by afidel · · Score: 1

      Actually NFTS is case preserving, not case sensitive. You can not have both Foo.c and foo.c in the same folder but Foo.c will retain the capital F.

      --
      There are 4 boxes to use in the defense of liberty: soap, ballot, jury, ammo. Use in that order. Starting now.
    4. Re:Important Consequence of MySQL for Windows by chasingporsches · · Score: 1

      if they're moving FROM sql server TO mysql, then they shouldnt have much of a problem. AFAIK, SQL server doesnt support two tables with the same name, regardless of case. and if they keep their data in tact, case should be preserved. its really not a big deal. actually doesn't MySQL still search a table no matter what case you use? like if you do "select * from releases" it will search the Releases table if its there? i would hardly call it a "major, important consequence", assuming they are half decent database admins.

  7. two cents by ghinckley68 · · Score: 2, Interesting

    Having run MySql under both winows2000/2003 and Linux. I prefer Linux. The only real problem i run into is case senistivity, when running on windows i can be more lazy ie

    given a table called UserNames

    under windows i can do select * usernames where as unde *nix i have to UserNames. No big deal just my only problem. Now as for as 4000 socket limit if you run up agisnt it move to db2 or Oracle on a RISC box, x86 hardware is not going to deal with a load like that. Also if you have that many concurent conections agaisnt your database you may want to look in to better codding practice.

    But it work fine.

    --
    Linux modi 2.6.26-2-parisc
    1. Re:two cents by seanellis · · Score: 1

      The easiest way to avoid problems with case sensitivity is to use a consistent case rule. The easiest one, from a typing point of view, is "all identifiers are lower case". This seems to be the general rule in all the MySQL examples I've seen, too, so you at least have convention on your side...

      As for the Windows/Linux thing, I'm just starting to use MySQL, and haven;t noticed any real differences. However, I am just running a couple of little websites, not Slashdot or the IRS.

    2. Re:two cents by Gothmolly · · Score: 1

      Are you typing while drunk, or surfing slashdot from your cell phone?

      --
      I want to delete my account but Slashdot doesn't allow it.
    3. Re:two cents by Kragen · · Score: 0, Troll

      Hi sorry this is completely off topic but I need to ask Seanellis a question and don't know how to start my own thread. @ Seanellis - I have been searching for reviews on the Yakumo Hypersound Car which I intend to buy for myself, and I found an archived article which stated you had bought one and were quite happy with it. I have only found one other review which said that the CD player packed up after 2 months. Do you still use this item? If yes how would you describe the quality If no can you say why i.e. upgraded, unreliable etc many thanks and again apologies for being completely off topic

  8. It works pretty well by rabbit994 · · Score: 2, Interesting

    You may need to modify the my.ini to get better performance out of it but otherwise, MySQL seems to work about the same on both Windows and linux. If your moving from a shared environment to dedicated environment, you might still be able to get MSSQL out of your dedicated server provider for a decent price. Just don't get lazy about the lack of case sensitivy and 4000 connection limit, I wouldn't worry about, if you hit it, you either need to redo your sloppy code and look at upgrading to a beefier DB software.

  9. Wouldn't that lead to many instances of... by Zaurus · · Score: 1

    ...all MySQL are belong to us!

    (Yes, it's a lame joke. But seriously, friends don't let friends expose their data...)

  10. Does this mean... by Nutria · · Score: 1
    DROP DATABASE
     
    You cannot drop a database that is in use by some thread.
    ... that in Linux I can drop an open MySQL database?
    --
    "I don't know, therefore Aliens" Wafflebox1
    1. Re:Does this mean... by Phreakiture · · Score: 1

      Does this mean...

      DROP DATABASE

      You cannot drop a database that is in use by some thread.

      ... that in Linux I can drop an open MySQL database?

      I think that you are being a smartass (which I respect and it is in keeping with Slashdot tradition), but just in case, the answer would be no.

      --
      www.wavefront-av.com
  11. Avoided by hords · · Score: 0, Redundant

    We had bad luck with a Windows NT server hosting about 50 websites and running MySQL databases. It was slower than pulling out of Iraq! Man that Pentium 150 processor was smokin!

    Ok, bad example. Haven't tried it since, lol. (Hey, it ran ok on a simular linux server!)

  12. MS SQL Server Express is free. by GeorgeMcBay · · Score: 1, Troll

    As with the C#, C++, VB.NET, etc IDEs, the "Express" edition of MS SQL Server is available for free. Since I have no idea what your database usage is like, I can't say whether MS SQL Server Express will meet your needs, but it is worth looking at since it would certainly be easier to transition to than MySQL as you're already using SQL Server.

  13. A little more info would be necessary... by blorg · · Score: 2, Insightful

    ...number one probably being what is your code division between SQL and ASP, e.g. how much of your code is SQL and how much is ASP? Number two would then be whether you use any SQL-Server specific features or other SQL that isn't supported (or doesn't work the same) on MySQL. So the first thing for you to do is to test your application on MySQL and see if it works, (highly unlikely off the bat) or if it doesn't, work out how much fixing is required, and how much will this cost (time/money). This is not specific to a move to MySQL, it would be the same going between any two DBMSes.

    If you are moving from a shared environment, I presume you aren't massively high volume but you should bear in mind that using ASP with MySQL you will have to go through ODBC which will have a performance penalty. With SQL Server you can use a native driver as I believe you can if you use MySQL with certain application servers other than ASP.

    Also remember you can move entirely to Linux while still using ASP if you want.

    You should also look at what you are storing in your database - is it highly transactional, updated continually with absolutely essential information (I am thinking orders/financial transactions) or is it mainly SELECTs on data that is updated infrequently. With the former, data integrity should be top of your shopping list while with the latter you just need to make sure that you back up regularly and you shouldn't lose anything important even in case of a disaster. MySQL 5 is meant to be much better on this matter and many other issues that were problematic for MySQL in the past but bear in mind that v5 is only out a few months.

    Bottom line is - if you have a relatively low-traffic website with relatively simple code, moving shouldn't be too much of a problem. If you have a high-traffic website with complex SQL, moving will likely cost more than a SQL Server license. BTW, SQL Server is a decent database, I wouldn't move off it just for the heck of it.

    1. Re:A little more info would be necessary... by mikeballer · · Score: 1

      The site is a price comparison engine for books, movies, music, and video games (http://getcheapbooks.com/ ). The site receives about 200k visitors (2M hits) per month. The code split is probably 80% ASP, 20% SQL. For each new (not cached) price comparison, we do insert the price data into the database, so the database access is really a combination of inserts and selects.

      I am actually not that concerned about converting the SQL code, but I am really just concerned about performance. Thanks for the comments.

    2. Re:A little more info would be necessary... by NutscrapeSucks · · Score: 1

      I am actually not that concerned about converting the SQL code

      I'm kind of curious about this. A MS-SQL Internet license runs around $2500. That's only about one week of a database developer's time. Unless you were very careful when writing the application, that cost is easily going to get soaked up in QA and development.

      As for performance, there's some load testing packages out there which could simulate your user load on your application on your hardware. But then again, they cost a lot more than MS-SQL does. Other than that, you pretty much don't have much to work on except generalities, a blind leap, and hopefully a fallback plan.

      --
      Whenever I hear the word 'Innovation', I reach for my pistol.
  14. You _probably_ don't have to worry... by blorg · · Score: 1

    ...about the 4000 port issue; your application should be keeping the database connections open rather than closing and reopening constantly anyway. So you should only be using a handful, for whatever number of concurrent connections there are to the DB.

    Note: I don't use ASP myself and I don't actually know how ASP handles this. I _presume_ it doesn't only have an open and close repeatedly option, because that would be braindead.

  15. My server does okay... by diamondmagic · · Score: 1

    If there is a reason to run it on the same computer, there shouldn't be a problem. I would recommend a dedicated linux server, though.

  16. Think inside the box by Halvard · · Score: 3, Funny

    So why not run MySQL under Cygwin or use a VM and run Linux and/or Windows under the VM. That way one machine is two and you get to separate the services.

  17. "Anecdote" is not the singular form of "Data"... by sootman · · Score: 1

    ... but my company runs several substantial Intranet sites off one Windows box (2k server, IIRC) and all are MySQL-backed. (I myself have been using this box for about 3 or 4 years.) And it's not just reads to build content for the front page--lots of surveys, calendars, inventory databases, etc. If you're concerned about performance, test and benchmark. Overall, I'd say it's fine. It's not like there's some inherent 500% benefit you get from running MySQL under *nix. And, unlike older versions of Postgres, it doesn't even require Cygwin or anything weird like that. Runs native, runs fine, and has for years.

    --
    Dear Slashdot: next time you want to mess with the site, add a rich-text editor for comments.
  18. well... by schmu_20mol · · Score: 1

    ...essentially the question is: what do you really want?

    --
    "Nae Kin! Nae Quin! Nae laird! Nae master! We willna be fooled again!"
  19. No problems with me either as a web developer by cecil36 · · Score: 1

    I do web development on the side and I use MySQL and PHP running off of Windows' IIS (WIMP). Only problems I see with portability is making sure the username/password and DB name for the database gets changed between my test environment and the production environment (Linux in most cases) and (in one instance) the code works with an earlier version of PHP that was never upgraded by the hosting provider.

  20. ASP on Windows, MySQL on Linux by Omega1045 · · Score: 2, Informative
    At a past company I worked at, we ran ASP pages on an NT machine which connected to MySQL databases on a Linux machine. We used dual NICs on the NT machine, one that was connected to the database machine on a privately addresses network and one faced into the DMZ. This seemed to work fairly well as we were able to use an older server with Linux. All we really needed was a minimal Linux install and plenty of RAM and disk. Back then we also used IPFW to firewall up the database machine. It only allowed SSH connections from a few IP addresses, and database port connections only from the web server. I thought it performed well, but this was a few years ago. I guess a modern solution would probably use something faster that the full-duplex 100 mb NIC we were using. You could probably hook up gigabit over copper with something as simple as a crossover cable from the NT machine to the Linux machine.

    No matter the harware, keeping your database on a different machine than your public-facing web server is always a good idea.

    --

    Great ideas often receive violent opposition from mediocre minds. - Albert Einstein

  21. MySQL? WIndows? by spaceyhackerlady · · Score: 1
    ...no major problems with running MySQL on Windows. I have seen it done lots of times without problems.

    I took a MySQL training course last August, and the rented computer training facility (in Portland, Oregon) only had Windows XP available. So we had to run MySQL on Windows XP, whether we liked it or not.

    Not one of the people in the class had ever used MySQL on XP, so there was lots of head scratching over where Windows hid things. We compared notes on our favourite Linux distros and read Slashdot. :-)

    ...laura

  22. There is a SQL Server Solution by Chabil+Ha' · · Score: 0, Redundant

    Depending on how big your database is, SQL Server 2005 Express Edition may be a 'free' alternative. While there is nothing wrong with switching to MySQL ( I mean hey, this is /., if I didn't give OSS a plug, well... ), if you want to stay with MS technology, while not having to pay for the DBMS, then this might fit the bill. The only drawback with this solution is that you're basically limited to a 4GB database. Try it out, you might like it.

    --
    We're all hypocrites. We all have hidden parts, it's the contrast between them that make us more a hypocrite than others
  23. MS SQL Server Express is free for a reason by supergumby · · Score: 1

    MS SQL Server Express is just the database engine. That's it. It comes with a very basic configuration GUI, so you will be doing all database management directly through SQL or other Microsoft API functions. I tried the Express edition and actually couldn't figure out how to make Access connect to it, let alone make a database.

    You'll save money but you won't save time or effort.

  24. Postgresql on Windows by brennz · · Score: 1

    Mysql on Windows? .......

    While I would prefer to be running Postgresql on Linux/UNIX, i can personally attest to the performance of Postgresql on Windows.

    I started using Postgresql on Windows when the 8.0 beta releases were coming out. Wow, talk about stable and mature! What was labeled beta software, felt like a stable version instead.

    Rather than going with gotchas, go with Postgresql.

  25. MySQL works on WIN for me by Anonymous Coward · · Score: 0

    I've benchmarked my MySQL servers with Quest's Benchmark Factory using the TPC-C and Scaleable Benchmark Tests and find very little, if any, varying results on my WIN and Linux (Red Hat) boxes. MySQL is very easy to use on WIN and runs very well! And no slam on MS - I like SQL Server...

  26. I'd stick with SQL Server now, move later by blorg · · Score: 1

    So you do have constant inserts, but you are basically just using the database as a cache. In that case it really wouldn't matter at all if you had to go back to last night's backup, as material would just be cached again as queries came in. So MySQL would look like a good fit there.

    It's difficult to find up-to-date comparisons as the latest versions of both (SQL Server 2005 and MySQL 5) are quite new, but here's an example comparing MySQL 4.1 with SQL Server 2000. MySQL 5 is meant to be a lot better than 4; SQL Server 2005 is also better but it is more of an incremental thing over 2000 compared to the advances with MySQL.

    You should also consider SQL Server Express, which is free. Just bear in mind the limitations: 1 CPU, 1gb RAM, 4gb database size (data files, not including logs.) Other than this I believe it has the performance of the full version (e.g. it would be as fast as the full version running on a 1 CPU machine with 1gb RAM.)

    To be honest if you are planning on just a single machine which is going to share the web server, application server and database the Express edition will likely be more than enough. The 1 CPU/1gb RAM limitation is what SQL Server is limited to use; if you have 2 CPUs/2gb RAM the rest of the system will still be using these.

    The one to watch is the 4gb max database size; you would want to be a good bit below this (half?) to allow for expansion - and your application sounds like something that would potentially produce a very large amount of data to store (although maybe not as I presume you need to flush stuff out regularly to keep the info fresh.) Also, the 4gb is per database; you can have as many as you like.

    You'll also be more familiar with SQL Server administration though, so staying with that might be easier than trying to migrate to MySQL now. What I would probably do myself would be to stick with SQL Server (if the free Express edition is enough) for _this_ move (you will have other issues with the move rather than trying to complicate it) and then when you have expanded to the point where you need a seperate database machine (which is very much to be recommended anyway) look into MySQL on that then. You can set up MySQL on that new machine independently while your app runs happily on the other, and only switch over when you are sure everything is working OK. MySQL (v5+, which many would think the first version that is a real DBMS) will have been around for a bit longer then as well which can only be an advantage.

    To be honest performance is likely to depend a lot more on your database design, good SQL (e.g. thinking in sets, reducing queries per ASP page), proper use of indexes, appropriate caching, etc. You can speed up a badly implemented database by several orders of magnitude looking at these things, whereas either actual engine will be in the same ballpark. I'd say either DBMS will do in that regard.

  27. Well... by Bazman · · Score: 1

    It's got to be better than having an Access file on a share :)

  28. Too expensive? by PornMaster · · Score: 2, Informative

    Depending on the features you need, you could probably get away with MS SQL Server 2005 Workgroup Edition, which is ~$800.

    Recoding takes time and introduces risk. It's up to you to evaluate those against the $800.

    Here's the edition matrix, in case you're interested.
    http://www.microsoft.com/sql/prodinfo/features/com pare-features.mspx

  29. Easy to use MySQL for Windows by PGillingwater · · Score: 1

    If you are looking for a nice, free and easy way to install MySQL for Windows, then I strongly recommend XAMPP. I used it for installing my Open Source Information Asset Register, the Database of Managed Objects.

    --
    Paul Gillingwater
    MBA, CISSP, CISM