Parse php5 configuration using pdo

  • 2020-07-21 07:10:03
  • OfStack

1. Check whether php_pdo.dll exists in the php extension library (php_pdo_mssql.dll is also required when calling MsSQL; php_pdo_mysql.dll) is also required when calling MySQL.

2. Open php. ini profile and add:

Specify the extension library
extension_dir="C:\Program Files (x86)\PHP\ext"

[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 found more pdo and corresponding extension, OK can be PDO data connection access ~


Related articles: