简体   繁体   English

pdo_psql未在MAMP 4.0.1中加载

[英]pdo_psql doesn't load in MAMP 4.0.1

A few hours ago I installed MAMP Pro 4.0.1 on Windows 10 so far everything was fine until I decided to uncomment pdo_psql.dll inside php.ini to create a connection from PHP to Postgresql but something went wrong, The driver doesn't load it says: 几个小时前,我在Windows 10上安装了MAMP Pro 4.0.1,到目前为止一切都很好,直到我决定取消对php.ini中的pdo_psql.dll的注释,以创建从PHP到Postgresql的连接,但是出了点问题,驱动程序无法加载它说:

Warning: PHP Startup: Unable to load dynamic library 
'C:\php\ext\php_pdo_pgsql.dll' - The  module can't be found.
 in Unknown on line 0 PHP 7.1.7 (cli) (built: Jul 25 2017 09:24:45) ( ZTS 
 MSVC14 (Visual C++ 2015) x86 )Copyright (c) 1997-2017 The PHP GroupZend
Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies

I found the issue. 我发现了问题。 the thing was that the extention dir wasn't uncommented by default settings so I had to uncomment it in php.ini file. 问题是扩展目录在默认设置下并没有取消注释,因此我不得不在php.ini文件中取消注释。

extension_dir = "ext"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM