php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37626 mysql library loading problem
Submitted: 2006-05-29 11:38 UTC Modified: 2006-05-29 11:46 UTC
From: p dot szumny at bwm dot com dot pl Assigned:
Status: Not a bug Package: Dynamic loading
PHP Version: 5.1.4 OS: WinXP x64 Edition; SP1
Private report: No CVE-ID: None
 [2006-05-29 11:38 UTC] p dot szumny at bwm dot com dot pl
Description:
------------
During starting Apache 2.0.58 mysql library are not loaded:

PHP Warning:  PHP Startup: Unable to load dynamic library 'c:\\php\\ext\\php_mysql.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'c:\\php\\ext\\php_pdo_mysql.dll' - The specified module could not be found.\r\n in Unknown on line 0

I have configured in php.ini:
extension_dir = "c:\php\ext"

Rest of modules (ex. bz2, pdo, pdo_pgsql) loads OK.
On WinXP 32-bit edition everything was OK.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-29 11:46 UTC] tony2001@php.net
http://php.net/mysql

MySQL is no longer enabled by default, so the php_mysql.dll DLL must be enabled inside of php.ini. *Also, PHP needs access to the MySQL client library. A file named libmysql.dll is included in the Windows PHP distribution and in order for PHP to talk to MySQL this file needs to be available to the Windows systems PATH.* See the FAQ titled "How do I add my PHP directory to the PATH on Windows" for information on how to do this. Although copying libmysql.dll to the Windows system directory also works (because the system directory is by default in the system's PATH), it's not recommended.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 17:01:30 2024 UTC