Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Can't get PDO driver to work :(

edited January 2011 in Vanilla 2.0 - 2.8
Trying to install Vanilla 2 locally using MAMP but get the error:
"You must have the MySQL driver for PDO enabled in order for Vanilla to connect to your database".

When I check phpinfo() I see:


When I go and check out those paths I find the files:

When I check my php.ini file I see:
; Extensions

In php.ini the path to the extension is correct (checked it manually):
extension_dir = "/Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/"

In this folder I find the file:

So everything seems to be fine, but can't get it working :(


  • Options
    LincLinc Detroit Admin
    That's very odd since PDO installs with MAMP by default I believe.

    Can you do a phpinfo() file and confirm the PDO section is present?
  • Options
    phpinfo() gives me two sections:

    PDO drivers: sqlite, sqlite2


    SQLite Library: 3.6.22
  • Options
    TimTim Operations Vanilla Staff
    Until your phpinfo()'s PDO section contains the word 'mysql', you wont have any luck:


    Vanilla Forums COO [GitHub, Twitter,]

  • Options
    Thanks for the screenshot Tim! No, I don't have 'mysql' in there :(
  • Options

    phpinfo() showed:
    Loaded Configuration File : /Applications/MAMP/conf/php5.3/php.ini
    but that folder did not exist (instead /Applications/MAMP/conf/php5/php.ini) did exist.

    I've simply renamed the /php5/ folder to /php5.3/, restarted MAMP and everything worked!
Sign In or Register to comment.