thoughts.sort_by{|t| t[:topic]}.collect

Reducing MySQL's memory usage on OS X Mavericks

Recently, I found myself re-installing everything from Homebrew and began to notice that MySQL was consuming nearly half a gig of memory. Given that I don’t do too much with MySQL on a regular basis, I opted to override a handful of default configuration options to reduce the memory footprint.

As you can see, a fresh MySQL install via homebrew was consuming over 400mb of memory.

Here is how I reduced my memory footprint:

$ mkdir -p /usr/local/etc

Unless you already have a custom MySQL config file, you will want to add one into this directory.

About me...

Hello, my name is Robby Russell. This blog was started back in March of 2005, a few months after I joined the Ruby on Rails community. Most of the technical content on this site is based on earlier versions...so be gentle on me if the solutions don't work as efficiently as they did a decade ago.

These days, I spend my time working on Oh My Zsh and running Planet Argon, a web design and development agency based in Portland, Oregon USA. If you're looking for help with your project, drop us a line.