mysql is not enabled in phpinfo() of php 5.3.1

前端 未结 5 511
滥情空心
滥情空心 2021-01-14 13:01

I am having apache 2.2.14, php 5.3.1 and mysql 5.1.43 installed on vista. I am trying since 2 days to configure php to have mysql enable on phpinfo().

  1. I modif
5条回答
  •  广开言路
    2021-01-14 13:20

    Make sure you've edited the right php.ini. In case of doubt

    will tell you which one is used by your php installation.

    Maybe php tried to load the php-mysql extension and failed because of additional dependencies. That would cause a startup error entry in the error.log.

    Which php-build do you use? The php-mysql extension can either use libmysql.dll as transport layer or the new mysqlnd (MySQL native driver) module. You've added c:\php to PATH. That's usually done in order to let windows find libmysql.dll (though it's not necessary, there are other methods which I prefer). If php-mysql depends on libmysql.dll and windows can't find it loading php_mysql.dll will fail.
    But if you're using the php.net build of php 5.3.1 the mysql module uses mysqlnd:

    Installation on Windows

    In the official PHP distributions from 5.3 onwards, MySQL Native Driver is enabled by default

    This module is built-in in the php.net build. You can test that by calling php -m in a command shell. It prints all built-in modules.

提交回复
热议问题