php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41548 Fail to load php_mysql.dll and php_mysqli.dll
Submitted: 2007-05-31 09:53 UTC Modified: 2007-05-31 15:26 UTC
From: mercury__99 at hotmail dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 5.2.2 OS: Windows XP SP2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mercury__99 at hotmail dot com
New email:
PHP Version: OS:

 

 [2007-05-31 09:53 UTC] mercury__99 at hotmail dot com
Description:
------------
Here is a portion of php.ini
---------------------------------
;extension=php_msql.dll
extension=php_mssql.dll
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_oci8.dll
;extension=php_openssl.dll
------------------------------------
after restarting apache, in phpinfo(); 

I got everything loaded EXCEPT:

extension=php_mysql.dll and extension=php_mysqli.dll


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-05-31 09:56 UTC] mercury__99 at hotmail dot com
This is an obvious bug in PHP 5.2.2
 [2007-05-31 10:33 UTC] johannes@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Most likely your libmysql.dll is not in place.
 [2007-05-31 15:26 UTC] mercury__99 at hotmail dot com
Many thanks for the prompt reply from PHP. I don't think it is the libmysql.dll issue.

I have the libmysql.dll under the C:\php, and all the php_xx.dll under the C:\php\ext. I have set the environment paths to point to both directories, modified the php.ini to point the extension directory,  and re-started my comp. Still, I couldn't load the php_mysql.dll and php_mysqli.dll. No problem to load other php_xx.dll.

Ok, I have resolved the problem by trial-an-error:

1) Simply uninstall MySQL. I could then see (from phpinfo()) that both php_mysql.dll and php_mysqli.dll loaded successfully.
2) Then, re-install MySQL. Everything is working fine now.

^_^'
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 13 12:01:27 2025 UTC