Looks like you need to install the DBD::mysql module, see Installing Modules from the tutorials section of this site, you also may want to read this post regarding Apple's XCode package.
Hope this helps
Martin
Comment on Re: Mac OS X 10.5.2 web server cannot connect to mysql
Thanks for yr reply.
I have installed DBD::myql package; otherwise I wdnt be able to connect from the command line.
The problem only occurs on my local web server in Mac OS X 10.5.2. On my other Mac running 10.3 the code runs fine, as it also does on my remote site.
Regards,
Sarpedon Jones