When pdo is enabled in php, multiple attempts fail. I am using the wamp development environment. Php version 5.25extension _ dir: c: wampphpext & nbsp; php_pdo.dll & nbsp; & nbsp; php_pdo_mysql.dll & nbsp; & enable pdo in php. failure in multiple attempts. ask the reason.
I am using the wamp development environment.
The php version is 5.25
Extension_dir: c:/wamp/php/ext
Php_pdo.dll in this path
Php_pdo_mysql.dll
.....
And so on.
In php. ini, there is no error in the extension path as above.
Then enable
Extension = php_pdo.dll
Extension = php_pdo_mysql.dll
Restart apache
Create a page: phpinfo () to view the pdo enabling status. As a result, many people fell short:
The page is shown as follows:
PDO
PDO support enabled
PDO drivers sqlite, sqlite2
No matter how I try it, no mysql exists in PDO dirvers. Only sqlite
How to solve the problem !!
------ Solution --------------------
Have you enabled mysql extension?