Took a while to work this command out. Hopefully it can save someone else some time.

sudo port install mysql5-server
sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/opt/local/bin/mysql_config5
written by
Craig
published
2010-03-02
Disagree? Found a typo? Got a question?
If you'd like to have a conversation about this post, email craig@barkingiguana.com. I don't bite.
You can verify that I've written this post by following the verification instructions:
curl -LO http://barkingiguana.com/2010/03/02/installing-the-mysql-gem-on-osx-106-snow-leopard-with-macports-mysql5.html.orig
curl -LO http://barkingiguana.com/2010/03/02/installing-the-mysql-gem-on-osx-106-snow-leopard-with-macports-mysql5.html.orig.asc
gpg --verify installing-the-mysql-gem-on-osx-106-snow-leopard-with-macports-mysql5.html.orig{.asc,}