PDO drivers no value in Windows

后端 未结 16 1406
盖世英雄少女心
盖世英雄少女心 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:59

    Check with phpinfo() to ensure that the path for the php.ini is the same one being set. On Windows machines it is common for multiple instances of php.ini to be created and cause confusion.

    Also, calling php from the command line will give you an error message with more details as to why it may not be loading. It might be that the extension that you are trying to include is not compatible with your PHP installation. i.e. it is a non thread safe dll with a thread safe binary or there is a compiler mismatch somewhere where vc9 and vc6 were both used.

    0 讨论(0)
  • 2020-11-29 08:00

    If you're using PHP Manager with IIS, do the following:

    1. Open IIS (I usually open it by typing IIS in start); Start IIS

    2. Double-click "PHP Manager"; Click PHP Manager

    3. Click "Enable or disable an extension"; Enable/Disable extension

    4. Scroll down to find your driver of choice (in my case php_pdo_mysqll.dll), and click "enable"; Scroll to driver & enable

    5. After that the driver should show up, and work. Enabled driver

    6. Done! Hopefully this helped someone, because the other answers did not work for me.

    0 讨论(0)
  • 2020-11-29 08:02

    PHP error PDO not exist on 5.4

    Fatal error: Class 'DigitalToolBox\PDO' not found in C:\SERVER\www\MyAPP\DigitalToolBox\MysqlConnectionTool.php on line 19

    you can see pdo is loaded because is in list with this comand:

    print_r(get_loaded_extensions()); 
    

    this error happens for the use of namespaces, we need to add at the beginning of our code the instruction:

    use PDO;
    

    IF ($this->works) $voteForThis++;

    0 讨论(0)
  • 2020-11-29 08:05

    PDO Drivers no value - your dll entries cannot orderized in php.ini file. Check the list of dll extension entries.

    extension=php_pdo_mysql.dll
    

    entries must be placed next to all pdo entries. Same as

    extension=php_mysql.dll
    

    entries must be placed next to all without pdo entries.

    Hops it helps..

    0 讨论(0)
提交回复
热议问题