Getting Perl DBD::mysql working on OS X 10.7?
After quite a bit of frustration, I eventually found a simple solution that works.

The salient details are that you need to update the DYLD_LIBRARY_PATH to include /usr/local/mysql/lib. The easiest way of doing that is to add the following to your ~/.bashrc file:

export DYLD_LIBRARY_PATH="/usr/local/mysql/lib:$DYLD_LIBRARY_PATH"


I went into a little more detail in a blog post here: http://www.bartbusschots.ie/blog/?p=2186