The php_pdo_mysql.dll
can\'t be enabled in machine. I have set extension=php_pdo.dll
and extension=php_pdo_mysql.dll
enabled in php.in
Check with phpinfo() to ensure that the path for the php.ini is the same one being set. On Windows machines it is common for multiple instances of php.ini to be created and cause confusion.
Also, calling php from the command line will give you an error message with more details as to why it may not be loading. It might be that the extension that you are trying to include is not compatible with your PHP installation. i.e. it is a non thread safe dll with a thread safe binary or there is a compiler mismatch somewhere where vc9 and vc6 were both used.
If you're using PHP Manager with IIS, do the following:
Open IIS (I usually open it by typing IIS in start);
Double-click "PHP Manager";
Click "Enable or disable an extension";
Scroll down to find your driver of choice (in my case php_pdo_mysqll.dll
), and click "enable";
After that the driver should show up, and work.
Done! Hopefully this helped someone, because the other answers did not work for me.
PHP error PDO not exist on 5.4
Fatal error: Class 'DigitalToolBox\PDO' not found in C:\SERVER\www\MyAPP\DigitalToolBox\MysqlConnectionTool.php on line 19
you can see pdo is loaded because is in list with this comand:
print_r(get_loaded_extensions());
this error happens for the use of namespaces, we need to add at the beginning of our code the instruction:
use PDO;
IF ($this->works) $voteForThis++;
PDO Drivers no value - your dll entries cannot orderized in php.ini file. Check the list of dll extension entries.
extension=php_pdo_mysql.dll
entries must be placed next to all pdo entries. Same as
extension=php_mysql.dll
entries must be placed next to all without pdo entries.
Hops it helps..