473,473 Members | 1,577 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Error loading php_mysql.dll on Apache Startup

Since yesterday, when I try and start apache, I get the following
message:

Warning:
PHP Startup: Unable to load dynamic library 'C:\Program
Files\PHP\ext\php_mysql.dll' - the specified procedure could not be
found.

I am running PHP 5.0 on Apache 2 and have been for some time. I got
this error when I first installed PHP5/Apache2 on this machine (a
totally fresh install - HDD reformat!!) However, it went away, and I
can't remember what I did to get rid of it.

I originally thought it was because I had a space in the location of
the dll. but I have been running it this way for a long time. I have
not changed my php.ini recently, other than trying to solve this
problem (not got any further than just commenting/uncommenting the
line that loads that module.

The module is definitely located where it is looking. I have no clue
what is going on. Can anyone help me?

Many Thanks,
Harry
Jul 17 '05 #1
5 3220
In article <c5*************************@posting.google.com> , Harry wrote:
Since yesterday, when I try and start apache, I get the following
message:

Warning:
PHP Startup: Unable to load dynamic library 'C:\Program
Files\PHP\ext\php_mysql.dll' - the specified procedure could not be
found.


Had a look at the FAQ? I don't think that mysql module is still in the
php package since version5
--
Tim Van Wassenhove <http://home.mysth.be/~timvw/contact.php>
Jul 17 '05 #2
On 24 May 2004 19:42:13 GMT, Tim Van Wassenhove <eu**@pi.be> wrote:
In article <c5*************************@posting.google.com> , Harry wrote:
Since yesterday, when I try and start apache, I get the following
message:

Warning:
PHP Startup: Unable to load dynamic library 'C:\Program
Files\PHP\ext\php_mysql.dll' - the specified procedure could not be
found.


Had a look at the FAQ? I don't think that mysql module is still in the
php package since version5


Depends what you mean by that - the php_mysql.dll is the PHP MySQL extension,
and is still included. The change in PHP5 is that it no longer has a bundled
MySQL client library, which the extension DLL needs - it's linked against
libmysql.dll which isn't included.

The fact that it's saying 'procedure could not be found' means it's loaded the
extension DLL, and _probably_ loaded the MySQL client library, but then there's
been some mismatch in the interface it's expecting. Does the OP have MySQL
installed, but some incompatible version? 4.1 or something?

--
Andy Hassall <an**@andyh.co.uk> / Space: disk usage analysis tool
http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space
Jul 17 '05 #3
Andy Hassall <an**@andyh.co.uk> wrote in message news:<cg********************************@4ax.com>. ..
On 24 May 2004 19:42:13 GMT, Tim Van Wassenhove <eu**@pi.be> wrote:

Had a look at the FAQ? I don't think that mysql module is still in the
php package since version5


Depends what you mean by that - the php_mysql.dll is the PHP MySQL extension,
and is still included. The change in PHP5 is that it no longer has a bundled
MySQL client library, which the extension DLL needs - it's linked against
libmysql.dll which isn't included.

The fact that it's saying 'procedure could not be found' means it's loaded the
extension DLL, and _probably_ loaded the MySQL client library, but then there's
been some mismatch in the interface it's expecting. Does the OP have MySQL
installed, but some incompatible version? 4.1 or something?


Hmm, interesting idea, However, having had the same version of
mysql,php,apache in this installation for a while, and had it working
for a long time, I am not inclined to think that this is the problem.

This libmysql.dll sounds like it could be a problem, I seem to
recognise it from when I had the issue before, what is it, and where
does it need to be located in order for it to work?

Many Thanks for your help.

Harry
Jul 17 '05 #4
Harry wrote:
Andy Hassall <an**@andyh.co.uk> wrote in message news:<cg********************************@4ax.com>. ..
On 24 May 2004 19:42:13 GMT, Tim Van Wassenhove <eu**@pi.be> wrote:


Had a look at the FAQ? I don't think that mysql module is still in the
php package since version5


Depends what you mean by that - the php_mysql.dll is the PHP MySQL extension,
and is still included. The change in PHP5 is that it no longer has a bundled
MySQL client library, which the extension DLL needs - it's linked against
libmysql.dll which isn't included.

The fact that it's saying 'procedure could not be found' means it's loaded the
extension DLL, and _probably_ loaded the MySQL client library, but then there's
been some mismatch in the interface it's expecting. Does the OP have MySQL
installed, but some incompatible version? 4.1 or something?

Hmm, interesting idea, However, having had the same version of
mysql,php,apache in this installation for a while, and had it working
for a long time, I am not inclined to think that this is the problem.

This libmysql.dll sounds like it could be a problem, I seem to
recognise it from when I had the issue before, what is it, and where
does it need to be located in order for it to work?

Many Thanks for your help.

Harry


Also, some versions of php5 are bugged when it comes to loading the
extensions, around about version RC1, download the latest win32 snapshot
or RC2.
Jul 17 '05 #5
Justin Wyer <ju****@isogo.co.za> wrote in message news:<c8**********@ctb-nnrp2.saix.net>...
Also, some versions of php5 are bugged when it comes to loading the
extensions, around about version RC1, download the latest win32 snapshot
or RC2.


OK, I downloaded RC2 and installed, and that didn't see to make a
difference, then I found a website which said something about
libmysql.dll in the System32 folder, mine was in the Windows folder,
and the version in system32 was an older version. so I updated the
version in system32 with the version in windows folder and it works
fine now...

Thanks for your help guys.

Harry
Jul 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: saif | last post by:
Hi, My problem is that php is not loading ANY module. Its saying that can not find path. Although I have used different style path names like: c:\php\ext c:/php/ext ../ ../ext .../php/ext
4
by: gc | last post by:
I'm a PHP and MySQL newbie. I have a feeling a lot of you may have seen this before. I'm teaching myself PHP/MySQL and trying to setup a guestbook. I'm running latest versions of Apache, PHP and...
4
by: ahevans | last post by:
hi, i have apache 2 and php 5 setup and in my php.ini i have set my extension_dir = "C:\WINDOWS\system32" and enabled php_mysql.dll but everytime i start apache i get a message saying that it cant...
7
by: ccp999 | last post by:
I keep getting this: "PHP Warning: PHP Startup: Unable to load dynamic library 'C:\php\ext\php_mysql.dll' - The specified module could not be found." when I tried to load the php_mysql.dll...
1
by: drewmania001 | last post by:
i've read various info on the web including the following http://php.mirrors.ilisys.com.au/manual/en/ref.mysqli.php mySQL Version 4.1.16 PHP Version 5.1.2 with Zend Engine v2.1.0 OS Windows...
0
by: redally | last post by:
Hi, Can anyone help me out? I run Windows ME and WinMySQLadmin 1.4 and it sees the database OK but. PHP Warning: PHP Startup: Unable to load dynamic library 'D:\php\ext\php_mysql.dll' a device...
0
by: redally | last post by:
Hi, Can anyone help me out? I run Windows ME and I put D:\php into my autoexec.bat, yet I still have to put php.ini into C:\windows to get it read. Then it gives me the message below. I run...
5
by: cglobal25 | last post by:
Here is the output from phpinfo() on my laptop running windows vista. As you can see mysql is mentioned several times in the output. I'm not sure why i get this error. Php scripts that i save in...
8
by: Kjell Pettersen | last post by:
Hello! I have installed PHP and MySql 5.0 on Win XP. Database created ok. Installation ok. PHP scripts runs ok. But when I am trying some mysql calls in the script I get an "Error 500" from...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.