Connectionfailed: couldnotfinddriver appears when you create a pdo object

Source: Internet
Author: User
When a pdo object is created, the Connectionfailed: couldnotfinddriver code appears to create a pdo object:
 GetMessage () ;}?>


The php. ini configuration file has been changed:
Extension = php_mysql.dllextension = php_pdo.dllextension = php_pdo_mysql.dll



Reply to discussion (solution)

1. check whether php. ini is effective (whether the file location you modified is correct)
2. php_pdo.dll is no longer available since php5.3 (the pdo object has been built in). If extension = php_pdo.dll, pdo_mysql will fail due to loading failure.
3. php5.2 and earlier pdo are extremely unstable and are not recommended.

 


See if there is any PDO.

Php5.2 is used, which seems to be caused by stability issues. it was not allowed to be tested last night. It was created this morning.

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.