PDO drivers no value in Windows

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

    I had the same issue, and was stumped until I read the following:

    http://www.artfulsoftware.com/php_mysql_win.html

    I am running PHP 5.2 with Apache 2.2. The fix for me was to copy the libmysql.dll file into my Apache bin directory.

    I would recommend the following course of action to anyone having this issue: 1) check to make sure that loaded configuration file is where you think it is (i.e., that Apache is not using some default php.ini) - phpinfo() will provide the answer on this 2) check to make sure that all desired extensions are located in the php\ext folder and are included in the php.ini file (most popular extensions simply need to be uncommented) 3) Try to load pdo_sqllite. If this shows up in phpinfo() after restarting Apache, you've narrowed the problem to the inability of Apache to load the necessary mysql extensions. 4) Follow in instructions in the link above.

提交回复
热议问题