Apple Removes MySQL From Lion Server 303
sfcrazy also noticed that Apple has officially
removed MySQL from Lion Server, opting instead to include PostgreSQL, albeit in command line only form. The article speculates that the change is because MySQL is now Oracle property, and Apple is concerned about IP issues following all the legal issues surrounding Java.
Much better anyway (Score:5, Interesting)
I just wish it was a little more user friendly. That was the one thing MySQL had going for it.. dead simple to use and admin.. and I imagine Apple's frontend probably made it even more so. Postgres isn’t as bad as oracle (by a long shot) but it certainly requires a little background reading to use. MySQL you can pretty much throw on a box and start using right away. This made it insanely newbie friendly (and cheap webhost admin friendly) and is probably the reason it became so prevalent.
For the record I’m no fan of Apple and I think using apple as a server is insane but I actually agree with Apple on this one.
Re: (Score:3)
Talk about "damning with faint praise"!
Re: (Score:3)
Moar liek praising with faint criticism. Oracle has many flaws but its manageability is reasonably tied to the complexity of setup being managed.
Re: (Score:3)
I agree. Been using PostgreSQL since 2004 and only occasionally use MySQL. I could see the writing on the wall when the mysql.com site kept moving the link for their documentation around, making it harder to find. My gripe about PostgreSQL is the same, its harder to admin, especially in a shared hosting environment.
Re:Much better anyway (Score:4, Insightful)
I keep hearing that Postgres is hard to admin. Yet Postgres integrates with the normal Unix user accounts so I don't have to worry about users and passwords, it uses sockets by default so I don't have to worry about networking (unless the SQL server is remote), it provides sane semantics without having to worry about table types...
I like SHOW CREATE TABLE from MySQL and the \-commands could use some aliases, but other than that Postgres is rather nice to admin and use.
Re: (Score:2)
I wouldn't say hard (oracle is hard!) .. just harder.
I agree once you get it up and running (and in my case, write a few wrapper scripts) .. postgres is not any more difficult than MySQL. And it's nicer to use for sure (I like being able to rely on transactions).
It's more that there is that initial learning curve which drives newbies away.
Re: (Score:2)
Re: (Score:3)
aid is a reference to a.id
bid is a reference to b.id
START TRANSACTION;
INSERT INTO a (id, bid) VALUES(1,2);
INSERT INTO b (id, aid) VALUES(2,1);
COMMIT;
Doesn't work.
Re: (Score:2)
Yet Postgres integrates with the normal Unix user accounts so I don't have to worry about users and passwords
You can also Kerberos Postgres, but not mysql... That will eventually be the death of mysql on my systems. "when I get around to it" I'm going to kerberized postgres.
Re: (Score:2)
So if your setup is using the build in logins and not using remote connects, then yes, pgsql is damned easy to set up.
But for those of us who wants to use usernames/passwords and groups to handle login it's a tad annoying to set up. (To be fair, it's by no means impossible, just annoying - it has some quirks that you need to man your way around).
Re: (Score:3)
Re: (Score:3, Informative)
Not true. Manual vacuuming is not needed since PostgreSQL 8.1, released 2005/11, that's almost 6 years ago. The functionality is called 'autovacuum" and it's fully automatic so you don't need to care about it anymore, and it was significantly improved in the following versions. In some cases you have to tune it a bit (to make it more aggresive for example), but in 99% it works fine out of the box.
Maybe your site was one of those 1% that needed a bit more tuning, or maybe changes at the application level (no
Re: (Score:3)
Re: (Score:2)
For the record I’m no fan of Apple and I think using apple as a server is insane but I actually agree with Apple on this one.
I think there are many that have been using mac minis as SOHO servers for businesses and that's why Apple offers a server version of that hardware. I do know that some colocation companies have used them because their small form factor made it possible to pack them densely.
Re: (Score:2)
Re: (Score:2)
Re:Much better anyway (Score:5, Insightful)
A PostgreSQL farm (Score:2)
I'm told the main difference between installation of postgres vs mysql is [which package to install]
Is this for one user and one database on a box, or potentially hundreds of databases, one for each hosting customer?
Re: (Score:3)
I'm told the main difference between installation of postgres vs mysql is [which package to install]
Is this for one user and one database on a box, or potentially hundreds of databases, one for each hosting customer?
A dozen boxes, more or less one admin, either one customer or a dozen departments or hundreds of users depending how you look at it, dozen databases, hundreds of tables.
Currently backup and deployment of new boxes are currently pretty tightly linked... bring up a new box, run a script to inject last nights backup of the schema and data from another box, run a script to tweak local box config values in the DB (just a bunch of SQL update table blah set blah = 'new' where blah='old'). Essentially bringing up
Re: (Score:3)
Installation is nothing as you said...
Main different is in managing users/databases/tables.
MySQL uses a dead simple system. You have a username and password possibly linked to a hostname.. and it has some global permissions and some database specific permissions.
Postgres has a much more robust (and as a result considerably more complicated) security setup.Authentication can happen through one or many different means.. most of which require a little configuration and more importantly you need to know they ex
Re: (Score:2)
* new database
Re: (Score:2)
Additionally where MySQL has an ultra friendly console app with built in help for creating users and databases.. postgres has a series of scripts. The default way ot creating a new table is to copy one from a provided template (called template1). Again, this is all stuff you need to learn before doing. Someone can run the mysql command, run help, see "CREATE DATABASE" and kinda go from there. To use postgres you need to know that this template exists, how to use it, and what the hell you are actually doing... and then you need to figure out how to control who has acess to it.
I'm fairly sure that there's a PostgreSQL equivalent of phpMyAdmin or such. All you need is a single user that has full access to the whole shebang (which you need to create new databases/set up their access from CLI anyway), and if you're paranoid about security, do what I do: put it in a non-web accessible directory that has to be enabled by creating a symlink when you actually want it, use .htaccess to restrict access to a single user when it even exists in the web-accessible part of the server, and nuke
Re: (Score:2)
pgMyAdmin (the equivilant you speak of) is actually difficult to set up, due to the way postgres does user auth. phpMyAdmin you just drop in a directory and it works, pgMyAdmin requires a fair bit of configuration.
Additionally pgMyAdmin isn't nearly as straight forward for the same reason the command line utilities arn't. Postgres doesn't have a "just give me a damn database" option .. you have to know what you want, which pretty much requires reading the same documentation, and _then_ learning how to do wh
Re:Much better anyway (Score:4, Informative)
pgAdmin3 [pgadmin.org] is the way to go, it works really well and pretty much has a "just give me a damn database" button.
I started with PostgreSQL and had to use MySQL for some projects later. I find MySQL and its tools to be cumbersome, but that's likely just due to my familiarity with PostgreSQL.
Re: (Score:2)
That actually looks decent.. I might check it out!
Re: (Score:3)
Postgres doesn't have a "just give me a damn database" option
Now I have a new db. Was that really hard? Well, it only works because I am a valid PostgreSQL user. For completeness, I'd also need to do something like:
Actually, the sudo part of this is not required if I am a user that is allowed to create users, but assuming a fresh PostgreSQL install from a standard package.
Re: (Score:2)
Postgres has a much more robust (and as a result considerably more complicated) security setup.Authentication can happen through one or many different means.. most of which require a little configuration and more importantly you need to know they exist/how they work! This also complicates connecting to the database.
For me that's a feature not a bug. Let face it, mysql has had kerberos as a todo for bout a decade now.. its just never gonna happen, and mysql is the only thing I have left that doesn't use kerberos...
One agony is mythtv absolutely does not and will never support postgres, according to the flames I've read from the developers, so I must keep a vestigal legacy install of mysql at home. Everywhere else, work and home, I can flush mysql.
Additionally where MySQL has an ultra friendly console app with built in help for creating users and databases.. postgres has a series of scripts. The default way ot creating a new table is to copy one from a provided template (called template1). Again, this is all stuff you need to learn before doing. Someone can run the mysql command, run help, see "CREATE DATABASE" and kinda go from there. To use postgres you need to know that this template exists, how to use it, and what the hell you are actually doing... and then you need to figure out how to control who has acess to it.
OK now I'm getting confused. Most of my apps do the rails thing or the
Re: (Score:2)
I've used PostgreSQL for years and never used templates the way you described. To create a database I've always used:
CREATE DATABASE mydatabase;
or the createdb command-line utility. Similarly, creating tables:
CREATE TABLE example ( myfield CHAR(16) NOT NULL );
The only things that are tricky by comparison are related to user authentication and authorization. At the server, level, there's host-based authentication rules and mechanisms that don't exist
Re: (Score:2)
There actually is a postgres equivilant of phpMyAdmin (or atleast, there was...). I seem to remember it being "ok" .. if you are into that sorta thing ;p
Re: (Score:2)
http://www.navicat.com/en/products/navicat_pgsql/pgsql_overview.html [navicat.com]
http://www.sqlmanager.net/products/postgresql/manager [sqlmanager.net]
In spite of this, I use mysql.
Re: (Score:2)
A google search for postgres gui should return http://www.pgadmin.org/ [pgadmin.org] on the first page. It seems largely equivalent to MySQL workbench (which I understand replaces the MySQL Admin gui / query browser?)
Re: (Score:2)
Re: (Score:2)
I hate apple mainly due to the way they do business and their "we control all" approach and rampant fanboy-ism. I can however admit they do user friendly software quite well.
For a newbie learning how database work, they don't (initially) care about relevant indexes .. they just want a database they can start creating tables in and running queries on. I've not seen the GUI frontend for MySQL .. but if it has a "create user" and "create database" button.. it succeeds in making MySQL even simpler.
Re: (Score:2)
You couldn't pass up the opportunity to use "Apple" and "Fanboi" in a comment, could you?
How is this relevant to the topic of Apple choosing PostgreSQL over MySQL? Qualifying your analysis with the word "probably" isn't exactly a ringing endorsement either.
Re: (Score:2)
I wouldn't .. lots would!
Look around... we live in a world where not just consumers, but the people who actually work with tech want stuff to "just work" without having to know how or why. Not saying this is a good thing (I happen to think it's a terrible thing), but it's a reality. People want simple lego blocks they can glue together.
I'm not a fan of Apple but... (Score:2)
Good choice.
Re: (Score:3)
No doubt. Anything with the Oracle logo I tend to want to back away from. That said, I like Virtualbox and I will be sad when Oracle finally pulls some stunt where I will have to quit using it and return to pirating VMWare Workstation -- I really don't like VMWare Workstation any longer -- just not as easy to use as VBox. (There was a time when VMWS was easier than VBox, but VBox matured greatly with Sun at the helm... fortunately, there is an OSE but it doesn't have the USB support as far as I know... o
Re: (Score:2)
I am using the OSX version of VMWare, and believe me it is easier to use than VBox.
VMWare Fusion that is.
Buy Apple Server Get Open Source Software (Score:2)
Is it though? Why would you buy an Apple server for open source software that you could install yourself?
Re: (Score:2)
Makes sense for home or small business use especially for all-Apple shops. Apple's big on using open source where it makes sense (and where the license is compatible), it permeates OSX.
Re: (Score:2)
You pay an awful lot for that privilege.
Re: (Score:2)
Based on what? TCO? Features vs. Cost? Beige Box vs. Brand Name? Please enlighten me.
Re: (Score:2)
A mac mini is pretty cheap, easy to hide away and has low power consumption. I never had one die on me either.
Lion server is only $49.99 (plus $29 if you need to upgrade to Lion first.) That's very reasonably priced in my book. I think it might be actually less than I paid for a SuSE boxed set I bought back in the day.
Re: (Score:2)
Re: (Score:2)
Samba has also been removed from server (Score:2)
SAMBA (Windows file sharing) in no longer included with OS X Server. This is a mixed blessing, as the version of SAMBA that Apple included was very old--and had a number of bugs and vulnerabilities, but it did make it eash to use the Mac as an sever in a PC environment. Although, I never used the frontend others report that Apple put a slick GUI on SAMBA to make it easier to use.
Instead of supporting SAMBA, Apple is going there own way with a competitive solution. I don't know what license Apple is using f
Re:Samba has also been removed from server (Score:5, Informative)
Re: (Score:2)
Last time I looked, there are no pre-built SAMBA downloads for the Mac. Perhaps someone will chime in if this is because no one wants one or it is hard to do.
Using the internets? You fail it. [finkproject.org]
P.S. I haven't even touched OSX in years...
Re: (Score:2)
Re: (Score:2)
They build themselves, though, so the objection that they are not binaries is fairly irrelevant. The oldness, of course, is an issue.
Re:Samba has also been removed from server (Score:5, Informative)
It's not prebuilt but Macports [macports.org] has ports for samba 3.2.15 and samba 4.0.0tp5. Installing from Macports isn't difficult for anyone with a modicum of unix savvy.
Re:Samba has also been removed from server (Score:5, Insightful)
Yes, the reason here seems to be GPL-related, and nothing to do with Oracle and Java. Postgresql uses an MIT/X11 style license. MySQL is GPL. This is a trend at Apple.
The reason, ironically, is probably the GPLv3's anti-patent clauses. My hypothesis is that Apple's lawyers have picked up on this and it's now company policy to avoid GPLv3 software in their stack, at any cost.
Re: (Score:3)
GPL3 is in response to companies that found a way to make money and secure a market using GPL2 technology. I would have been happier if GPL3 stated that if you put your patented code in a GPL program you are agreeing to allow you patent free and unencumbered use in all GNU/GNU Compatible code.
Re:Samba has also been removed from server (Score:5, Insightful)
More like "I don't like that you've taken software that I tried to make perpetually user-auditable and user-maintainable, and found a way to prevent users from having the capacity to audit or maintain it."
As soon as you look at the question in terms of "less free" or "more free" you will get it wrong. It's not about degrees of freedom; it's about whose freedom when there's a conflict. GPL3 looks at the situation where developers' and users' interests conflict, and like Tron, fights for the users.
This is dead simple to understand if you go back and look at the roots of all this stuff. RMS wasn't just a programmer; he was a guy who had a printer that he wanted to use. It is really cool that a lot of programmers have followed his ideals, but dudes, it's not for us. It's for them (the people who hire us) because we recognize that sometimes we're them. Unless you're totally building all your computers out of transistors from the ground up, you're always one of "them," to some degree.
Re:Samba has also been removed from server (Score:4, Insightful)
Creepy wrote:
"GPL3 is a (commercial) plague - anything that uses any GPL3 library MUST comply by GPL3 and any license that is not GPL3 becomes GPL3, so Apple had to abandon SAMBA - if they integrate a SAMBA interfacing gui into their OS (which they did under GPL2), they immediately are required to release the entire OS under the GPL."
Can I have some of your 'shrooms please, they must be *really* good :-).
This is so far from the truth it's easier just to point at this:
ftp://www.samba.org/pub/samba/slides/linuxcollab-why-samba-went-gplv3.pdf [samba.org]
and hope people read it than to try and rebut your ravings.
Jeremy.
Re: (Score:2)
There's also a big security push in Lion with encryption, sandboxing, etc. Since there seems to a consensus that Postgresql is more secure that might also be part of it.
Re: (Score:2)
You can get pre-built binaries of virtually every OSS server software for MacOS, and certainly for every remotely popular OSS server software. Fink [finkproject.org] is good, and I like it because I've used it a lot over the years. MacPorts [macports.org] seems to be more popular these days though. Since OSX is essentially just a POSIX compliant Unix variant with a fancy GUI, ports are extremely trivial to make. I will warn you that X-windows based software from these sources are a bit flaky sometimes, mostly becasue Apple's X overlay f
Will anyone use Lion 'server'? (Score:3)
Re: (Score:3)
Why pay Mac premiums for a server? Macs are great for carrying around (my preference) but I'm not sure why I'd put one in a rack.
The capex is pocket change compared to the labor expense, unless you're doing something absolutely huge or crazy. The "mac premium" is somewhere between one days salary for me, and one days consulting fee. Its to the point where "how quickly you can unpack the shipping box" is a major portion of the labor expense differential between apple vs PC.
I assume the local apple store provides fantastic support to server buyers just as they do for everyone else; for a small business owner this is vital.
Re: (Score:2)
Didnt apple stop selling the x-serve though? The only option for a (new) server running OS-X would be either minis or mac-pro's (only an idiot would be something with an expensive integrated screen for a server), both of which are consumer hardware and miss features which are pretty much a must once you get into serious server stuff.
a mini/mac pro as a fileserver for a small business might not be bonkers, but beyond SOHO use, why would anyone bother with a mac server?
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
As for Pixar, to my knowledge, they have always used Linux fa
Re: (Score:3)
The Army or Navy was using them with PPC Linux I believe.
Re: (Score:3)
They're used at Penn State fairly heavily, and I know so for the Education College. There's a lot of Macs used both by employees in the Education College, as well as by students, and the XServes are used in a rack to host the stuff for the Mac systems (using for example OpenDirectory pushing stuff from the Active DIrectory windows servers, as well as for DeployStudio and other uses)
Re: (Score:2)
Minis can be densely packed in a rack, making them pretty popular for some types of HPC applications and such. A few years ago, when I still had my hands a bit deeper into the HPC and simulation areas of computation I was also starting to see people use them for video clusters. I've been out of that game for a few years though (2008 was my last Supercomputing), so I dunno how any of that worked out or if it's still common.
Re: (Score:2)
Exactly. Apple's looking at serving the small-business and home server market, not the enterprise. They aren't pretending otherwise. Of course you aren't going to put a bunch of Apple-branded servers in your data-center as the center of your multi-national enterprise. You may, however, put one on the shelf in your real-estate office, or a closet at your catering business.
It's the 21st century. There's school-kids putting up servers for their scout troops, and servers in flower-shops, and print-shops. That's
Re: (Score:2)
Re: (Score:2)
Yes. RAID drives in a box that isn't really meant to be serviced by the end user.
That's exactly what a small business needs.
That's about the dumbest approach you could take. There are much better ways of going about this even if you choose to fixate on Apple products.
Re: (Score:2)
Re: (Score:2)
Wasting money is still wasting money, no matter how much you try to rationalize it.
Trivializing money is a mentality that just doesn't end well.
Re: (Score:2)
Wasting money is still wasting money, no matter how much you try to rationalize it.
Trivializing money is a mentality that just doesn't end well.
If the use of Lion Server saves time for an expensive employee or contractor, then it's not trivializing money and instead is making the smart financial choice. This is the point the GP was making.
Re: (Score:2)
Because management thinks that they're cool.
Re: (Score:2)
I've been running OS X Server for a couple of years now. Got a Mini, put Server on it, and the time it's saved me compared to doing my own admin on more conventional systems has totally been worth it. I like it.
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
The premium isn't that high for a SOHO setup.
If you are a MAC office and you want a server a mac mini server is $999 You get a quad core i7 4GB of ram and two 500 GB drives in a RAID. Yes you could build the same thing for about half the price and put freenas on it but that isn't cost effective for everyone.
The Apple server will be easy to configure, it has some pretty good software services right out the box, it will be small, silent, and will work really well with Macs right out of the box.
If you have a M
MySQL can still be installed (Score:5, Informative)
Re: (Score:3)
To be more clear, the server version of Lion can still have MySQL installed, but the server package doesn't include it by default.
Re: (Score:2)
Why not, as long as it's not started up by default what's the harm ? Disk space isn't exactly at a premium these days.
Not understanding the concern... (Score:2)
"The article speculates that the change is because MySQL is now Oracle property, and Apple is concerned about IP issues following all the legal issues surrounding Java"
Okay, but isn't MySQL open source? Are they bothered that Oracle might bring forth a patent war against them? Surely Apple need only point out that these things have existed in MySQL for years before Oracle acquired it..?
Also, couldn't Apple simply say they are supply an open source database for free with the server and therefore get away w
Re: (Score:2)
The Java engine was supposed to be open-source, too.
Re: (Score:2)
Re: (Score:2)
And I'm LOVING it. While the average Slashdot reader is more than familiar with how thoroughly fucked-up the American patent system (and IP law in general) is, the average Joe hasn't a clue as to how our own backwards legal system is helping turn us into a third world country. It's exactly these kinds of rang
Re: (Score:2)
I rather doubt ip is the problem, more along the lines that postgres is the db with the higher quality and really enterprise ready.
Re: (Score:2)
Oracle running on MAC hardware? (Score:2)
The article speculates that the change is because MySQL is now Oracle property
Can't Oracle fix this problem by offering Oracle on mac hardware?
They most likely won't (Score:2)
Re: (Score:2)
You can run Oracle's products on Mac hardware already. That's not the issue.
The article is speculating that Oracle, who bought MySQL, may sue Apple if they start including MySQL as a packaged and preinstalled part of their OS X server distribution. Silly, you say, because there's still an open-source branch of MySQL free to download and distribute. Apple certainly hasn't stated that they are worried about the possibility, it's just speculation in this article. However stupid it may seem, keep in mind that O
Re: (Score:2)
If patents are really the issue then it doesn't matter what RDBMS you choose to install by default.
That is kind of the whole problem with patents in general. They don't just relate to a particular product. They interfere with your ability to use or build a type of product in general.
People seem to be misunderstanding the scope of patents here.
Re: (Score:2)
The article speculates that the change is because MySQL is now Oracle property
Can't Oracle fix this problem by offering Oracle on mac hardware?
1. What "problem" would that be?
2. http://www.oracle.com/technetwork/topics/macos/whatsnew/index.html [oracle.com]
It is a bit telling that Oracle hasn't kept current on MacOS. Apple has never made heavy-duty servers suitable for Oracle, and has been falling behind in that space since Oracle 10 was the new hotness. The XServe wasn't a bad little box, but it was a *little* box that was really designed for Apple's existing customer population, not for heavy database users. Whatever else Oracle may be, they are not stu
Installation of MySQL server on Mac OS X Lion (Score:5, Informative)
http://www.djangoapp.com/blog/2011/07/24/installation-of-mysql-server-on-mac-os-x-lion/ [djangoapp.com]
1) Download the latest 64-Bit DMG Archive (Apple Disk Image) from MySQL Site (http://dev.mysql.com/downloads/mysql/). Current latest version is 5.5.14 which I’ll be using to install on my machine. /usr/local ) /usr/local/mysql/bin to your path by editing .profile file. (Optionally you can create alias to mysql and mysqladmin as mentioned in README File)
2) Mount the Disk Image (I mean open/double-click the DMG file) and install MySQL server by double-clicking the PKG file (in my case mysql-5.5.14-osx10.6-x86_64.pkg) and follow onscreen instructions. ( It will ask for Master password, as it installs MySQL server in
3) Add
4) You can start MySQL server by running “/usr/local/mysql/bin/mysqld_safe &” from terminal but Disk image you downloaded also consists of Startup Package & Preferences Pane which allows you to start/stop MySQL server from System Preferences and even Automatically Start MySQL Server at Startup.
Probably a wise choice (Score:2)
Oracle seems intent to milk other companies for "passive" revenue instead of continuing to innovate. They've added "lawsuit trolling" to their business model. Congratulations--your company has completed its transformation from industry-dominating innovator to a complete-joke.
Re: (Score:2)
Safari (Score:2)
Elephant puts Lion in its place.
Trendies (Score:2)
Jobs & Ellison : Best Friends (Score:2)
This just in... (Score:3)
This just in, MySQL is still free / open source and you can install it if you want.
A more appropriate headline would have been "Postgres becomes default OS X Server database"
Re: (Score:2)
I Prefer postgresql over MySQL myself... However having used both MySQL isn't bad, it is just different... MySQL does have some nice commands that makes doing some rather common actions much easier. But Postgresql has a lot more raw power, and customization. I have worked with people who are Die Hard MySQL Fans and you hear complaining when using Postgresql that it doesn't do this or it doesn't do that, and I need to write a stored function to do this...
A big one that is popular is the Replace INTO command
Re: (Score:2)