MAMP and Yosemite PDO driver error
I installed Yosemite and now when I use MAMP I get this Fatal error:
Fatal error: Uncaught exception 'PDOException' with message 'could not find driver' in
/Applications/MAMP/htdocs/CRUD/pdo.php:3 Stack trace: #0
/Applications/MAMP/htdocs/CRUD/pdo.php(3): PDO->__construct('mysql:host=loca...', 'fred',
'zap') #1 /Applications/MAMP/htdocs/CRUD/index.php(2): require_once('/Applications/M...')
#2 {main} thrown in /Applications/MAMP/htdocs/CRUD/pdo.php on line 3
Any ideas?
+3
Elana
source
to share
1 answer
Here's how to fix it:
- Launch MAMP
- In the upper left corner go to "MAMP" β "Settings"
- Click on the PHP tab.
- Check PHP 5.5.17 (or whatever you have) instead of the default checkbox (5.6.1 -> 5.5.17 with latest MAMP version)
+3
l3aronsansgland
source
to share