Connection Failed:could not find driver occurs when creating a PDO object

Source: Internet
Author: User
To create the code for the PDO object:
 
 GetMessage ();}? >


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



Reply to discussion (solution)

1. Check whether the php.ini is in effect (the correct location of the files you have modified)
2, php5.3 has no Php_pdo.dll (PDO object has been built-in), if the Extension=php_pdo.dll will fail due to the failure of the pdo_mysql caused by failure
3, php5.2 and previous PDO extremely unstable, not recommended to use

 
 


See if there are any PDO.

The use of php5.2, it seems that due to the stability of the problem caused by the test last night can not be, this morning to create a successful.

  • 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.