Page 1 of 1

PHP update breaks MySQL (5.0.45) connection on IIS 7

Posted: Sat Jan 29, 2011 5:39 am
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