MySQL Workbench and XAMPP on OSX
For the sake of convenience, I've been using various flavors of XAMPP for the past couple of years. Only occasionally have I had to manually upgrade bits and pieces of the package (to get past a bad/buggy version of PHP for example). And and also as a matter of convenience, I'm a bit of a fan of two pieces of software that make managing my local/development databases easy, Sequel Pro (I should note that Navicat is a great, though not free GUI for *SQL administration for those who aren't on a Mac.) and MySQL Workbench.
MySQL Workbench comes with a bunch of different default configurations for hooking up to a local or remote server. Whether you're on Windows (32 or 64 bit), *nix, or OSX, there are configurations to get you started... This is however, unless you have a setup with non-standard paths.
If you're on MAMP, XAMPP, WAMP, or any other similar distribution/installation of Apache/MySQL, your paths are jacked. If you're on OSX, your default paths may still be technically correct, but since you're using XAMPP (or similar), selecting the MacOS_X_(MySQL_Package) profile when adding an entry to the server administration area of MySQL Workbench, may not throw errors, but it'll be speaking to another MySQL install than the one you're intending to use.
I should note that there is an available profile called "Linux_(Custom)", however the UI doesn't provide you with any way to set the correct paths, so it still won't work for us.
Creating a new server profile in MySQL Workbench
First, we'll want to go to the Applicatons folder and control-click on MySQLWorkbench.app, in the context menu you'll select "Show Package Contents". This will open a new Finder window showing the contents of the file.
Next, navigate to Contents > Resources > mysql.profiles. This is where all of the profile that come packaged with MySQL Workbench are located.
Copy and paste the file MacOS_X_(MySQL_Package).xml and then rename your copy to MacOS_X_(XAMPP_Package).xml.
Open MacOS_X_(XAMPP_Package).xml in your favorite text editor (I use TextMate) and edit to suit your environment. Here's my setup for XAMPP's default paths.
-
<?xml version="1.0"?>
-
-
<data>
-
<value type="dict">
-
</value><value type="string" key="sys.config.path">/Applications/XAMPP/xamppfiles/etc/my.cnf</value>
-
<value type="string" key="sys.config.section">mysqld</value>
-
-
<value type="string" key="sys.mysqld.start">/Applications/XAMPP/xamppfiles/xampp startmysql</value>
-
<value type="string" key="sys.mysqld.stop">/Applications/XAMPP/xamppfiles/xampp stoppmysql</value>
-
<value type="string" key="sys.mysqld.status">ps xa | grep "/Applications/XAMPP/xamppfiles/bin/[m]ysqld"</value>
-
<value type="int" key="sys.usesudo">1</value>
-
<value type="int" key="sys.usesudostatus">0</value>
-
<value type="string" key="sys.sudo">/usr/bin/sudo -p EnterPasswordHere /bin/sh -c</value>
-
-
<value type="string" key="sys.system">MacOS X</value>
-
<value type="string" key="serverVersion">5.5</value>
-
-
</data>
If MySQL is running, you should now be able to add and connect to it under the Server Administration in MySQL Workbench.



dear woot.com,

About two months ago or so the "bulk unfollow" functionality was removed and this friendly little note was posted to explain.
Each profile listing still has it's own link to unfollow that user, but since Dossy removed the automation, I figured I'd recreate it with a super simple bookmarklet.
