dongqiu9018 2018-08-01 00:31
浏览 86
已采纳

在MAMP 4.0.1中不加载pdo_psql

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:

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
  • 写回答

1条回答 默认 最新

  • dtl19910708 2018-08-02 04:10
    关注

    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.

    extension_dir = "ext"
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?