PDO drivers no value in Windows

后端 未结 16 1485
盖世英雄少女心
盖世英雄少女心 2020-11-29 07:31

The php_pdo_mysql.dll can\'t be enabled in machine. I have set extension=php_pdo.dll and extension=php_pdo_mysql.dll enabled in php.in

16条回答
  •  日久生厌
    2020-11-29 07:40

    I had this same problem when I upgraded to PHP 5.4. I had

    extension_dir = "ext"
    

    in php.ini and php -m was starting fine and reporting that it loaded pdo_mysql, but when I ran phpinfo.php through apache, the driver was missing.

    I fixed it by changing the extension_dir to an absolute path. I'm guessing it got confused when running through Apache and made it relative to something else.

    ; Directory in which the loadable extensions (modules) reside.
    ; http://php.net/extension-dir
    ; extension_dir = "./"
    ; On windows:
    extension_dir = "D:/php-5.4.11-Win32-VC9-x86/ext"
    

提交回复
热议问题