Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Has anybody gotten PDO_mysql working on the default PHP installation on a mac? It works with MAMP but that's inconvenient.

I'm developing for Zend Framework and mysql, and Zend_db uses PDO. The default php doesn't come with PDO_mysql.

share|improve this question
Yes, but I can't remember how... it took about a day of playing around though. – workmad3 May 30 '09 at 13:11
up vote 2 down vote accepted

I didn't get it working with the default PHP on the Mac. I had to install both MySQL and PHP from macports.

PS: Zend_Db also has database adapters for PHP's ext/mysqli. Your choice. Zend_Db is not limited to PDO adapters.

share|improve this answer
Ah, I guess if I'd read a bit further in the docs I would have figured out I can use mysqli. That seems like it should do the trick! – GoatRider Jun 1 '09 at 1:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.