Assumes OSX Server 10.3.8+ MySql as installed by Apple.
Before you install DBD-mysql you will need to build through CPAN "Bundle::DBI".
sudo cpan install Bundle::DBI quit
Enable MySql to run. Create a database called "test" (if you don't already have one) and make sure that "root" or whatever username you're using is able to access the "test" database with your MySql password. Login as "root" during the installation. Be sure to edit below "testuser" and "testpassword" otherwise your installation will not be successful.
curl -O http://cpan.binarycompass.org/authors/id/C/CA/CAPTTOFU/DBD-mysql-2.9005.tar.gz gunzip DBD-mysql-2.9005.tar.gz tar -xvf DBD-mysql-2.9005.tar cd DBD-mysql-2.9005
perl Makefile.PL --testdb=test --testuser=root --testpassword=whatever make make test make install