473,503 Members | 9,836 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Connection problems - PHP MySQL

Hi all. Probably not an original posting but I have searched high and low
for a satisfactory resolution to this problem. I am using Windows XP, IIS
5.1, PHP 5.1.4 and MySQL 5.0.23 and Dreamweaver 8. When I try to create a
database connection I get the "Your PHP server doesn't have the MySQL module
loaded or you can't use the mysql_(p)connect functions" error. I have
downloaded the latest mysqli and mysql extensions (PHP 5.1.6 and MySQL
Server 5.0.24a) and copied these into my C:\PHP\ext directory. I believe I
have already made the required changes to the php.ini file however this may
not be 100% right. Any further advice and/or assistance would be greatly
appreciated.
Sep 28 '06 #1
8 9571

"Schmalz" <gp****@hotmail.comwrote in message
news:45**********************@un-2park-reader-01.sydney.pipenetworks.com.au.
...
Hi all. Probably not an original posting but I have searched high and low
for a satisfactory resolution to this problem. I am using Windows XP, IIS
5.1, PHP 5.1.4 and MySQL 5.0.23 and Dreamweaver 8. When I try to create a
database connection I get the "Your PHP server doesn't have the MySQL
module
loaded or you can't use the mysql_(p)connect functions" error. I have
downloaded the latest mysqli and mysql extensions (PHP 5.1.6 and MySQL
Server 5.0.24a) and copied these into my C:\PHP\ext directory. I believe
I
have already made the required changes to the php.ini file however this
may
not be 100% right. Any further advice and/or assistance would be greatly
appreciated.

make yourself a phpinfo.php file that has a call to phpinfo() and run that
to see what's loaded, what points to where, the dir of your ini file, etc.,
etc.

Sep 28 '06 #2
Schmalz wrote:
Hi all. Probably not an original posting but I have searched high and low
for a satisfactory resolution to this problem. I am using Windows XP, IIS
5.1, PHP 5.1.4 and MySQL 5.0.23 and Dreamweaver 8. When I try to create a
database connection I get the "Your PHP server doesn't have the MySQL module
loaded or you can't use the mysql_(p)connect functions" error. I have
downloaded the latest mysqli and mysql extensions (PHP 5.1.6 and MySQL
Server 5.0.24a) and copied these into my C:\PHP\ext directory. I believe I
have already made the required changes to the php.ini file however this may
not be 100% right. Any further advice and/or assistance would be greatly
appreciated.

Did you stop and restart your server?

For the mysql connections, you need the following in your php.ini file:

extension=php_mysql.dll

If you want to use mysqli, you need:

extension=php_mysqli.dll

(you can specify both).

And watch for any errors when you start your server. Check your server
log to see if there are any errors, also.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Sep 28 '06 #3

Schmalz napisal(a):
Hi all. Probably not an original posting but I have searched high and low
for a satisfactory resolution to this problem. I am using Windows XP, IIS
5.1, PHP 5.1.4 and MySQL 5.0.23 and Dreamweaver 8. When I try to create a
database connection I get the "Your PHP server doesn't have the MySQL module
loaded or you can't use the mysql_(p)connect functions" error. I have
downloaded the latest mysqli and mysql extensions (PHP 5.1.6 and MySQL
Server 5.0.24a) and copied these into my C:\PHP\ext directory. I believe I
have already made the required changes to the php.ini file however this may
not be 100% right. Any further advice and/or assistance would be greatly
appreciated.
On which server are ou configuring it??

I've got the same problem on IIS if you have so I can help you.

Sep 28 '06 #4
Yes, I am using IIS as well. Any advice would be welcome.

<uk******@gmail.comwrote in message
news:11**********************@d34g2000cwd.googlegr oups.com...
>
Schmalz napisal(a):
>Hi all. Probably not an original posting but I have searched high and
low
for a satisfactory resolution to this problem. I am using Windows XP,
IIS
5.1, PHP 5.1.4 and MySQL 5.0.23 and Dreamweaver 8. When I try to create
a
database connection I get the "Your PHP server doesn't have the MySQL
module
loaded or you can't use the mysql_(p)connect functions" error. I have
downloaded the latest mysqli and mysql extensions (PHP 5.1.6 and MySQL
Server 5.0.24a) and copied these into my C:\PHP\ext directory. I believe
I
have already made the required changes to the php.ini file however this
may
not be 100% right. Any further advice and/or assistance would be greatly
appreciated.

On which server are ou configuring it??

I've got the same problem on IIS if you have so I can help you.

Sep 29 '06 #5
Hi,

I have done that now. What specifically should I be looking for? Let me
know what particular information I need and I will tell you what it says.

Thanks.

"Johnny" <re*****************@hotmail.comwrote in message
news:htTSg.463$UJ2.162@fed1read07...
>
"Schmalz" <gp****@hotmail.comwrote in message
news:45**********************@un-2park-reader-01.sydney.pipenetworks.com.au.
..
>Hi all. Probably not an original posting but I have searched high and
low
for a satisfactory resolution to this problem. I am using Windows XP,
IIS
5.1, PHP 5.1.4 and MySQL 5.0.23 and Dreamweaver 8. When I try to create
a
database connection I get the "Your PHP server doesn't have the MySQL
module
>loaded or you can't use the mysql_(p)connect functions" error. I have
downloaded the latest mysqli and mysql extensions (PHP 5.1.6 and MySQL
Server 5.0.24a) and copied these into my C:\PHP\ext directory. I believe
I
>have already made the required changes to the php.ini file however this
may
>not be 100% right. Any further advice and/or assistance would be greatly
appreciated.

make yourself a phpinfo.php file that has a call to phpinfo() and run that
to see what's loaded, what points to where, the dir of your ini file,
etc.,
etc.

Sep 29 '06 #6
Hi and thanks.

Anything specifically I should be looking for in the log etc?
"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:Sq******************************@comcast.com. ..
Schmalz wrote:
>Hi all. Probably not an original posting but I have searched high and
low for a satisfactory resolution to this problem. I am using Windows
XP, IIS 5.1, PHP 5.1.4 and MySQL 5.0.23 and Dreamweaver 8. When I try to
create a database connection I get the "Your PHP server doesn't have the
MySQL module loaded or you can't use the mysql_(p)connect functions"
error. I have downloaded the latest mysqli and mysql extensions (PHP
5.1.6 and MySQL Server 5.0.24a) and copied these into my C:\PHP\ext
directory. I believe I have already made the required changes to the
php.ini file however this may not be 100% right. Any further advice
and/or assistance would be greatly appreciated.

Did you stop and restart your server?

For the mysql connections, you need the following in your php.ini file:

extension=php_mysql.dll

If you want to use mysqli, you need:

extension=php_mysqli.dll

(you can specify both).

And watch for any errors when you start your server. Check your server
log to see if there are any errors, also.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Sep 29 '06 #7
Schmalz wrote:
"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:Sq******************************@comcast.com. ..
>>Schmalz wrote:
>>>Hi all. Probably not an original posting but I have searched high and
low for a satisfactory resolution to this problem. I am using Windows
XP, IIS 5.1, PHP 5.1.4 and MySQL 5.0.23 and Dreamweaver 8. When I try to
create a database connection I get the "Your PHP server doesn't have the
MySQL module loaded or you can't use the mysql_(p)connect functions"
error. I have downloaded the latest mysqli and mysql extensions (PHP
5.1.6 and MySQL Server 5.0.24a) and copied these into my C:\PHP\ext
directory. I believe I have already made the required changes to the
php.ini file however this may not be 100% right. Any further advice
and/or assistance would be greatly appreciated.

Did you stop and restart your server?

For the mysql connections, you need the following in your php.ini file:

extension=php_mysql.dll

If you want to use mysqli, you need:

extension=php_mysqli.dll

(you can specify both).

And watch for any errors when you start your server. Check your server
log to see if there are any errors, also.
Hi and thanks.

Anything specifically I should be looking for in the log etc?

(top posting fixed)

Anything unusual, that's all. There are a lot of different warnings or
errors which may cause a problem like this.

And BTW - please don't top post. Thanks.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Sep 29 '06 #8

"Schmalz" <gp****@hotmail.comwrote in message
news:45**********************@un-2park-reader-01.sydney.pipenetworks.com.au.
...
"Johnny" <re*****************@hotmail.comwrote in message
news:htTSg.463$UJ2.162@fed1read07...

"Schmalz" <gp****@hotmail.comwrote in message
news:45**********************@un-2park-reader-01.sydney.pipenetworks.com.au.
..
Hi all. Probably not an original posting but I have searched high and
low
for a satisfactory resolution to this problem. I am using Windows XP,
IIS
5.1, PHP 5.1.4 and MySQL 5.0.23 and Dreamweaver 8. When I try to
create
a
database connection I get the "Your PHP server doesn't have the MySQL
module
loaded or you can't use the mysql_(p)connect functions" error. I have
downloaded the latest mysqli and mysql extensions (PHP 5.1.6 and MySQL
Server 5.0.24a) and copied these into my C:\PHP\ext directory. I
believe
I
have already made the required changes to the php.ini file however this
may
not be 100% right. Any further advice and/or assistance would be
greatly
appreciated.

make yourself a phpinfo.php file that has a call to phpinfo() and run
that
to see what's loaded, what points to where, the dir of your ini file,
etc.,
etc.
Hi,

I have done that now. What specifically should I be looking for? Let me
know what particular information I need and I will tell you what it says.

Thanks.
At the top there'll be an entry:
Configuration File (php.ini) Path

Under php core there'll be an entry:
extension_dir

check they all point where you think they should, that is that you are using
the ini file you think you are and that your extensions are coming from the
right directory (you think it's C:\PHP\ext but what does php think it is?),
etc.

Then scroll down, there are module enries in alphabetical order, see if you
can see an entry for MySql.

If there's not one there MySql isn't loaded (but you knew that already right
;-) which could be for any one of a number of reasons.

If it's the right extensions directory and PHP is reading the correct ini
file that you modified then perhaps you haven't done all the things they say
here http://us3.php.net/manual/en/ref.mysql.php under PHP 5+

I note that it says "The supporting DLLs for the PHP 5 extensions are also
not in a seperate directory." in the manual install instructions so you may
want to check where php_mysql.dll is and also libmysql.dll (this should be
either in the windows system dir [not recommended] or the PATH variable
should have an enry that points to where it is).

You may also want to set
display_startup_errors = On

in the ini file until you have finished debugging, so you can see any errors
that occur on start up.

Good luck.

Oct 1 '06 #9

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

Similar topics

17
3216
by: AMC | last post by:
Hi, I'm using an include file to store the connection string to a database. Whenever I try to reference that string to open a connection in the page that includes the file I get the error 'empy...
14
2179
by: Jim Sabatke | last post by:
When I installed MySQL (SuSE 9.0) and first started it, it told me that I needed to set a password for machine.domain.name. I tried following the directions, but it would only setup a password...
1
1670
by: JackM | last post by:
Just wondering... I have a script running that accesses a mysql database on a shared server. Suddenly the log in and password that have worked for months are being rejected since yesterday. On...
1
2727
by: Israel | last post by:
I'm running into this problem where my database connection seems to get disconnected by something unknown to me. My server is running locally so any network problems shouldn't have any affect on...
3
13339
by: Ted | last post by:
In WSAT, I get the following error when trying to set up my provider: Could not establish a connection to the database. If you have not yet created the SQL Server database, exit the Web Site...
0
1710
by: Bruno Barberi Gnecco | last post by:
I'm using stored procedures in a PHP site, with mysql. I'm having problems with stored procedures. Of the two I'm using, one works all the time, consistently. The other works correctly, but the...
3
5478
by: tulika dutta | last post by:
after 8 hrs my MySQL connection with JDBC gets time out. It gives the error java.sql.SQLException: No operations allowed after connection closed.Connection was implicitly closed due to underlying...
2
3198
by: aidanhaylock | last post by:
Morning, This one is really driving me insane. I am developing a site for a client who doesn't particularly want to move their hosting away from their current provider. The current host are...
5
32415
by: xoise | last post by:
Warning: mysql_connect() : Lost connection to MySQL server at 'reading initial communication packet', system error: 113 in /webs/sites/monetized.com/includes/mysql_connect.inc.php on line 2 Lost...
0
7207
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
7095
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
7294
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
7361
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...
1
7015
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7470
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
4693
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
3173
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1523
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 ...

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.