The uber geeks

Tips for upgrading MAMP

Written by Colin Devroe on Thursday, December 20th, 2007 at 6:56 pm. Colin is the founder of ChanceCube and the Community Evangelist for Viddler.

A few days ago I needed to upgrade my local install of MAMP, the application that installs Apache, MySQL, and PHP locally on your Macintosh for testing purposes, and I hit a bit of a snag. I accidentally deleted all of my databases!

Being on Leopard, and having setup Time Machine the moment I upgraded to the new Mac OS, meant that I didn’t have much to worry about. I clicked on Time Machine, and restored the version of MAMP I had installed less than an hour before upgrading. Quick, simple, and a heckuva time saver.

So I had to figure out how to upgrade MAMP without losing any of my testing databases, their structure, or the data therein. So here is a quick and dirty list of tips for upgrading MAMP that you might find useful.

  1. Stop the Apache and MySQL services via MAMP.
  2. Quit the application.
  3. Copy the /Applications/MAMP/db/mysql/ directory to your desktop*.
  4. Upgrade MAMP per the included instructions.
  5. Drop the copied MySQL directory back into /Applications/MAMP/db/mysql/.
  6. Restart MAMP and the Apache and MySQL services.

This worked for me, your mileage may vary. I also tried to export all of the data via PHPMyAdmin though I wouldn’t recommend that method since this seems so much easier. Anyone have any tips to add?

* If you are using SQLLite you will want to copy that directory as well.

Previous and next posts

« Top 10 Incredible Recordings

Zoho Show 2.0 released »

Reader feedback


  1. Warning: Missing argument 2 for httprequest() in /home/.eastwood/cdevroe/theubergeeks.net/wp-content/plugins/gravatars2.php on line 320

    Warning: Missing argument 2 for httprequest() in /home/.eastwood/cdevroe/theubergeeks.net/wp-content/plugins/gravatars2.php on line 320
    Gravatar

    Great tip. I do have one question. If you replace the MySQL directory do you also lose the version upgrade of MySQL that is built in with MAMP?

    michael on December 30th, 2007 1:41 pm

  2. Gravatar

    michael: Good question. It appears that the actual mysql service is kept elsewhere in the package - so - my version of MySQL was indeed upgraded.

    Colin Devroe on December 30th, 2007 2:48 pm

Leave feedback

(required)

(required)

Note: Comments are heavily moderated. If the comment does not add to the above discussion, it will not be approved.

RSS feed for comments on this post. TrackBack URI

Related sites

Recent features

Song of the week

Sara Bareilles - Between the Lines
Sara Bareilles' "Between the Lines" is the Song of the Week for April 20 to 26.

The Deal Log