What follows are instructions for building and installing MySQL 5 on Ubuntu. These instructions should work perfectly on both Feisty (7.04) and Gutsy (7.10).
If you’re a pro at this type of thing already, if you’re impatient, or just feeling lucky, just shut the fuck up and read through to the end. It’s not that complicated, and nobody cares about your l33t skillz anyway.
None. That’s right, none. Your Ubuntu “desktop” is fully capable of installing and running hundreds of different “server” programs. You don’t need to buy a special “server” version for $1000. Other things you don’t need: a compiler or a bunch of developer tools. And you sure as fuck don’t need to sign up for some confusing “developer program” that forces you to surrender your rights and your personal information.
We’re not going to be typing archaic commands into a window like they do in the movies. Sorry to disappoint you. That shit’s reserved for impressing boy toys and dumb blondes. Have you ever been fucking a blonde up the ass and then, like, pushed her face into your monitor filled with a maximized terminal window and shouted “SUDO MAKE ME A SANDWICH, BITCH!” That’s hawt. But I digress…
Do not skip this step! Most everything else will fail if you do.
No, I’m just kidding. There’s nothing to this step either.
Run Synaptic Package Manager. Click Search and type mysql server. Select the mysql-server-5.0 package. A dialog will pop up saying that installing the MySQL Server package requires installing a bunch of other packages too. See how it did that? It’s called dependency management, and it’s built into all modern Linux distributions. Computers are smart like that. Click Apply and Ubuntu will download, extract, and install everything for you. Along the way it will ask you to enter a password for the MySQL “root” user. You should do that. Blank passwords are bad, mmkay?
Nothing to do here. Ubuntu set this part up for you too, because, you know, it’s a server thingie, and server thingies are supposed to start automatically. Computers are smart like that.
From your System menu, run Services and check or uncheck Database server (mysql). Sorry, still no terminal required.
The package installer automatically set up MySQL so that it can only be accessed from your local machine, which is almost certainly what you want. Don’t go fucking around with strange configuration files. They won’t respect you in the morning.
Your installation of MySQL Server is automatically integrated with Ubuntu’s update manager. If there is a security problem with MySQL Server, Ubuntu will notify you with a cute little bubble alert as soon as a fix is available. Don’t be a dumbass; always install security updates promptly. The updater will take care of stopping and restarting your MySQL service and all that shit. Just clicky clicky and go back to watching “Ow My Balls.”
Run Synaptic Package Manager, click Status, then Installed, uncheck the mysql-server-5.0 package, and click Apply.
…to Dan Benjamin, who is a very nice chap and doesn’t deserve this sort of snark. But Jesus H. Christ, it must suck giant wet donkey balls to be stuck on an archaic OS where you need to be dropping into the terminal and tweaking configuration files and compiling shit all the time. I hope the translucent menu bar is worth it. But please, please stay up to date with MySQL security patches; I wasn’t kidding about that, it’s really fucking important.
§
I am no longer accepting public comments on this post, but you can use this form to contact me privately. (Your message will not be published.)
§
© 2001–9 Mark Pilgrim