【发布时间】:2017-11-30 17:35:28
【问题描述】:
- 操作系统:Windows 8.1
- 架构:x64
- php:PHP 7.1.6
- mssql:Mssql Server 2014 快递
- 驱动程序:SQLSRV 4.0
- IDE:PhpStorm
我正在尝试让 mssql 驱动程序正常工作。
我从微软下载了pdo驱动,将文件php_pdo_sqlsrv_7_nts_x64.dll放入C:\Program Files\PHP\ext并编辑php.ini添加extension=php_pdo_sqlsrv_7_nts_x64.dll。
这是结果:
$ php -v
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files\PHP\ext\php_pdo_sqlsrv_7_nts_x64.dll' - The specified procedure could not be found.
in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files\PHP\ext\php_sqlsrv_7_nts_x64.dll.dll' - The specified procedure could not be found.
in Unknown on line 0
PHP 7.1.6 (cli) (built: Jun 8 2017 01:53:41) ( ZTS MSVC14 (Visual C++ 2015) x64 )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
可能与此重复: PHP Warning: PHP Startup: Unable to load dynamic library php_pdo_mssql.dll
但那个人从来没有回答过,已经四岁了。
【问题讨论】:
标签: php sql-server pdo