


MySQL on Windows - Good Idea? 61
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?"
Re:Can't resist (Score:4, Insightful)
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
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.
Re:Can't resist (Score:4, Informative)
Re:Can't resist (Score:2)
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.
Re:Can't resist (Score:2)
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.
Re:Can't resist (Score:4, Informative)
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.
Re:Can't resist (Score:2)
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
You should experience no problems (Score:3, Informative)
Re:You should experience no problems (Score:3, Funny)
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
Re: (Score:2)
Re:You should experience no problems (Score:2)
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 situa
Re: (Score:2)
Re:You should experience no problems (Score:2)
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.
Re: (Score:2)
Re:You should experience no problems (Score:1)
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.
Re:You should experience no problems (Score:2)
...a hell of a lot better than MSSQL, at any rate.
MySQL? WIndows? (Score:2)
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. :
I use it (Score:3, 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.
Lame. Very, very lame. (Score:2, Insightful)
Re:Lame. Very, very lame. (Score:2, Interesting)
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.
Re:Lame. Very, very lame. (Score:2)
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 peop
What about 2 servers? (Score:5, Interesting)
You _probably_ don't have to worry... (Score:2)
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.
Re:What about 2 servers? (Score:2)
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 usi
Important Consequence of MySQL for Windows (Score:5, Informative)
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 [mysql.com]
Re:Important Consequence of MySQL for Windows (Score:2)
Re:Important Consequence of MySQL for Windows (Score:2)
Re:Important Consequence of MySQL for Windows (Score:2)
two cents (Score:2, Interesting)
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 conectio
Re:two cents (Score:2)
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.
Re:two cents (Score:2)
It works pretty well (Score:3, Interesting)
Wouldn't that lead to many instances of... (Score:1)
(Yes, it's a lame joke. But seriously, friends don't let friends expose their data...)
Does this mean... (Score:2)
Re:Does this mean... (Score:2)
Does this mean...
DROP DATABASEYou cannot drop a database that is in use by some thread.
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.
Avoided (Score:1, Redundant)
Ok, bad example. Haven't tried it since, lol. (Hey, it ran ok on a simular linux server!)
MS SQL Server Express is free. (Score:2, Troll)
MS SQL Server Express is free for a reason (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.
A little more info would be necessary... (Score:3, Insightful)
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 [sun.com] 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.
Re:A little more info would be necessary... (Score:1)
I am actually not that concerned about converting the SQL code, but I am really just concerned about performance. Thanks for the comm
Re:A little more info would be necessary... (Score:2)
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 do
I'd stick with SQL Server now, move later (Score:2)
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 [databasejournal.com] comparing MySQL 4.1 with SQL Server 2000. MySQL 5 is meant to be a lot better than 4
My server does okay... (Score:2)
Think inside the box (Score:4, Funny)
"Anecdote" is not the singular form of "Data"... (Score:2)
well... (Score:1)
No problems with me either as a web developer (Score:2)
ASP on Windows, MySQL on Linux (Score:3, Informative)
No matter the harware, keeping your database on a different machine than your public-facing web server is always a good idea.
Postgresql on Windows (Score:2)
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.
Well... (Score:2)
Too expensive? (Score:3, Informative)
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/co
Easy to use MySQL for Windows (Score:2)