1. Check whether php_pdo.dll exists in the php extension library (when calling MsSQL, you also need php_pdo_mssql.dll; when calling MySQL, you also need php_pdo_mysql.dll).
2. Open the php.ini configuration file and add:
Specify extension library
extension_dir="C:Program Files (x86)PHPext"
[PHP_PDO]
extension=php_pdo.dll
[PHP_PDO_MYSQL]
extension=php_pdo_mysql.dll
or
[PHP_PDO_MSSQL]
extension=php_pdo_mssql.dll
Open phpinfo and find that there are more pdos and corresponding extensions. OK, you can now use PDO for data connection access ~