PHP: How to enable PDO and PDO_MySQL extension _ PHP Tutorial

Source: Internet
Author: User
PHP enables the PDO and PDO_MySQL extensions. The PDO extension method for PHP to enable the PDO and PDO_MySQL extensions defines a lightweight and consistent interface for PHP to access the database. It provides a data access abstraction layer. in this way, whether using PHP to enable PDO and PDO_MySQL extensions

The PDO extension defines a lightweight and consistent interface for PHP to access the database. It provides a data access abstraction layer so that no matter what database is used, you can use consistent functions to query and obtain data.

In some PHP management systems, you need to enable the PDO and PDO_MySQL Extensions. the method is simple:

1. find the php. ini file.

2. search extension = php_pdo.dll and extension = php_pdo_mysql.dll, and remove the comment.

The configuration of the two rows is as follows:

Extension = php_pdo.dll

Extension = php_pdo_mysql.dll

After you restart apache or iis, check whether it is enabled in the phpinfo function.

The PDO extension defines a lightweight and consistent interface for PHP to access the database. It provides a data access abstraction layer...

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.