Home > Backend Development > PHP Tutorial > Using PDO MySQL extension in php

Using PDO MySQL extension in php

coldplay.xixi
Release: 2023-04-08 19:00:01
forward
2609 people have browsed it

Using PDO MySQL extension in php

Open PDO MySQL extension under PHP

The PDO extension defines a lightweight, consistent method for PHP to access the database interface, which provides a data access abstraction layer so that queries and data can be retrieved through a consistent version of functions, regardless of the database used.

Open PDO and PDO_MySQL extension

Method:

1. Find the php.ini file

2. After opening it, search for extension=php_pdo.dll and extension=php_pdo_mysql.dll, remove the previous ";" comment.

The final configuration content of these two lines is as follows:

extension=php_pdo.dll

extension=php_pdo_mysql.dll

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

Recommended tutorial: "PHP Video Tutorial"

The above is the detailed content of Using PDO MySQL extension in php. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:liqingbo.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template