“pdo_mysql” is disabled and I can't get it enabled. I have MAMP v. 3.0.4 installed on my iMac 7.1 OSX 10.6.8. On my phpinfo page I can see that the only PDO enabled is sqlite. If I look in my php (5.5.10) extensions folder I do see the pdo_mysql.so file (as well as one ending with .a). But if I go to the php.ini file the both the extensions folder path and the extension=pdo_mysql.so are there and correct. It feels like maybe my Mac is using another php.ini file but how do I find that out? Does anyone have any tips on how I can get the PDO enabled?
Php – “pdo_thesql” is disabled and I can’t get it enabled. I have MAMP v. 3.0.4 installed on the iMac 7.1 OSX 10.6.8
macosmampMySQLpdoPHP
Related Topic
- Php – PDOException “could not find driver” on MAMP
- Php – Fatal error: Class ‘PDO’ not found ( but it is installed and works on the terminal )
- PHP PDO Mysql not loading. extension is in extensions.ini, php_thesql.so exists, but phpinfo only shows sqlite and dblib
- Zend framework Connect Error: could not find driver pdo thesql
Best Answer
I've been struggling with this the whole weekend and finally solved it. Turns out that the php.ini is pointing to a non-existing "extensions dir". Create a phpinfo() file and look at the value of this field:
I noticed that in the mamp php installed folder there is a no-debug-non-zts-20131226 folder, which is different from the value shown in the phpinfo(). What I did was to clone this folder and changed the name to the value of the phpinfo(). Probably you could modify the php.ini file but I didn't want to.
Hope this helps.