473,569 Members | 2,536 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)connec t 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 9578

"Schmalz" <gp****@hotmail .comwrote in message
news:45******** **************@ un-2park-reader-01.sydney.pipen etworks.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)connec t 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)connec t 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_m ysql.dll

If you want to use mysqli, you need:

extension=php_m ysqli.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*******@attgl obal.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)connec t 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.goo glegroups.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)connec t 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.c omwrote in message
news:htTSg.463$ UJ2.162@fed1rea d07...
>
"Schmalz" <gp****@hotmail .comwrote in message
news:45******** **************@ un-2park-reader-01.sydney.pipen etworks.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)connec t 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*******@attg lobal.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)connec t 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_m ysql.dll

If you want to use mysqli, you need:

extension=php_m ysqli.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*******@attgl obal.net
=============== ===

Sep 29 '06 #7
Schmalz wrote:
"Jerry Stuckle" <js*******@attg lobal.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)connec t 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_m ysql.dll

If you want to use mysqli, you need:

extension=php_m ysqli.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*******@attgl obal.net
=============== ===
Sep 29 '06 #8

"Schmalz" <gp****@hotmail .comwrote in message
news:45******** **************@ un-2park-reader-01.sydney.pipen etworks.com.au.
...
"Johnny" <re************ *****@hotmail.c omwrote in message
news:htTSg.463$ UJ2.162@fed1rea d07...

"Schmalz" <gp****@hotmail .comwrote in message
news:45******** **************@ un-2park-reader-01.sydney.pipen etworks.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)connec t 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
3228
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 connection string' . When I write the string to the page using response.write(connectionstring) it shows up fine. Is the something else that I need...
14
2191
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 for "localhost". Is this normal? I am having problems with software connecting to the database. -- Jim Sabatke
1
1677
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 my ISP's server status page, it lists this: Quote: We are experiencing an ongoing problem with pages that reference multiple MySQL databases, and...
1
2734
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 my connection. I'm not sure if it's time based or due to some other external event. So far my tests to leave an open (idle) connection for an...
3
13343
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 Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider....
0
1723
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 next query returns "Lost connection to MySQL server during query" and subsequently: "MySQL server has gone away". I'm using MDB2 to access the...
3
5497
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 exception/error: ** BEGIN NESTED EXCEPTION ** com.mysql.jdbc.CommunicationsException MESSAGE: Communications link failure due to underlying...
2
3205
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 absolutely terrible with their support (shocking for a large hosting company) and I am running out of ideas. I usually use Dreamweaver to it's full...
5
32425
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 connection to MySQL server at 'reading initial communication packet', system error: 113 I'm receiving the above error whenever trying to connect to my...
0
7614
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8125
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7676
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3642
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2114
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 we have to send another system
1
1221
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.