Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Code works in apache but not in IIS

Status
Not open for further replies.

yahoo182

Programmer
Jul 5, 2005
70
CA
This works in apache but for some reason not in IIS6 (windows2003). I am using PHP4.* on both systems.
I have tried the IP address instead of localhost but I still get the same reasult .....

any input will be much appriciated.
Thanks!

// establish db connection
$dbcnx = @mysql_connect('localhost', 'user', 'passwed');
if (!$dbcnx) {
die( '<p>Unable to connect to the database server at this time.</p>' );
}
if (! @mysql_select_db('hotelInfo') ) {
die( '<p>Unable to locate the hotelInfo database at this time.</p>' );
}
 
what error does it say???

Known is handfull, Unknown is worldfull
 
When I access the php file with a browser, I get the reply
"Unable to connect to the database server at this time"

Is there anyway I can find out what went wrong more precisely?

Thanks, and sorry bout the vague description ... !

 
Hi there,
This is what I get for the following message.

db connect error:Client does not support authentication protocol requested by server; consider upgrading MySQL client


In this case, what is Client referring to? Is it my browser or my php version?
or is it the MySQl that is installed on my IIS server?

Actually, I have downloaded the most recent items for all of them.
 
Thanks!!!
that did the tick.
I used the old_password() method to revert the pw format in my newer mysql.

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top