PHP update breaks MySQL (5.0.45) connection on IIS 7

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
Wouterk
Forum Newbie
Posts: 1
Joined: Sat Jan 29, 2011 1:18 am

PHP update breaks MySQL (5.0.45) connection on IIS 7

Post by Wouterk »

Code: Select all

<?php
$link = mysql_connect('xxx.xxx.52.140:3306', 't321', 't321');
if (!$link) {
    die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?>

Before current PHP 5.3.5 the code above worked.

Now 'cannot connect to database' error
I can manage my database with PHPAdmin 2.11
Changing database passwords does not make a difference
Server IIS 7.0 64 bit; MySQL and PHP 32 bit

Wouter
Post Reply