php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33356 Unable to load dinamyc link library php_mysql.dll and everything are right
Submitted: 2005-06-15 20:25 UTC Modified: 2005-06-15 23:34 UTC
From: drcshk at yahoo dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 5.0.3 OS: windows XP home edition
Private report: No CVE-ID: None
 [2005-06-15 20:25 UTC] drcshk at yahoo dot com
Description:
------------
PHP Startup: Unable to load dynamic library 'c:\php\ext\php_mysql.dll' -
The specified procedure could not be found.



Unable to load dinamyc link library php_mysql.dll and everything are right

In the php.ini's we should remove the line: 

 ;extension=php_mysql.dll

Since mysql is included.

[7 Dec 2004 2:53pm CET] tomas2002 at tiscali dot cz 
Well, the solution is to copy the libmysql.dll from php directory to
some path where it can be found, for example winnt/system32 or set the
windows paths to php directory where is this library and everything
should be ok ..


It's all bullshit.
I wasted a week and it still does not work.

i removed all files

put php_mysql.dll into all possible folders- windows etc, sytem32, system and whatever

put libmysql.dll everywhere.

removed all one by one etc etc.

unquoted  extension=php_mysql.dll, showed extension_dir - all possible ways - quoted, unquoted, slash, backslash, no slash at the end,
low case underline
 configured httpd,

put c:\php5 and c:\php\bin into the PATH ? environmental variables

did this, did that, , reloaded every time

probably 500 different variations.

still f... program can not load php_mysql.dll.

I do not know what is this.

System: windows 32,  windows XP home edition , PHP5 and mysql 4.02 - 



And by the way when I try log other extensions ? like php_*.dll

They do not log in as well.

So do not tell me crap, that it is just mysql problem or PHP.ini problem



All the stuff was supplied on a CD from the book: PHP, MYSQL and Apache all in one.

Still all that crap does not work.

Don't know what to do.

Will probably try to remove everything and go with lower version of PHP4 and mysql, if can find good one.

For those who just unquoted and fixed the problem - they were lucky.




Reproduce code:
---------------
extension_dir= c:/php5/ext/ (or whatever - any possible variaton, like 'c:\php5\ext)


extension=php_mysql.dll

Expected result:
----------------
I expect MySQL can be connected by PHP on Apache

php_mysql.DLL should be loaded

Actual result:
--------------
: Unable to load dynamic library 'c:\php5\ext\php_mysql.dll' -
The specified procedure could not be found.

as well
'c:/php5/ext/php_mysql.dll'

and actually

'c:/php5/ext/php_*.dll' -


where * = anything in PHP.ini file - mysqli, mssl etc -


It happens when I restart appache


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-15 20:30 UTC] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 [2005-06-15 23:22 UTC] drcshk at yahoo dot com
OK. jJst  tel that you do not know  how to deal with this problem, because everywhere  I saw your comments you give simple solutions - like unquote etc. Sort of like written in PHP and Mysql manual

But this solution do not work.

maybe it is not a bug,but it doesnt make the system work anyway.

you support also does not give answer.
 [2005-06-15 23:34 UTC] tony2001@php.net
The way described in the docs works perfectly for all except you, so fix your system instead (reinstall Windows | install updates | send a bug report to Microsoft | etc.), there is no bug in PHP.
Btw, it's time to update your PHP version - 5.0.3 was released 6 months ago.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 08:01:30 2024 UTC