When pdo is enabled in php, multiple attempts fail.

Source: Internet
Author: User
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?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.