Getting PDO_MYSQL running in PHP on OSX has been a nightmare. I tried about half a dozen suggestions on other forums with no luck. Often, everything looked good, but wasn't actually working.
Anyone else with a similar problem, I suggest you try this: http://drewish.com/node/110.
It means reinstalling everything, but its still faster than troubleshooting a bunch of broken driver installs. All told, it took me about 1.5 hours, and I can now run Yii with MySQL.
Notes that might help some:
-
Should go without saying, but backup your stuff before you start
-
After installing wget et. al. via macports, make sure your path is updated (mentioned in the comments)
-
When creating the Databases after the MySQL install, if you error out, retry with "–user=root" instead of "–user=mysql" (also in the comments).