From:             rob at beagrie dot com
Operating system: Windows Vista RC2
PHP version:      5.2.0
PHP Bug Type:     MySQL related
Bug description:  Cannot connect to remote databases

Description:
------------
mysql_connect fails to connect to any remote MySQL databases under Vista
RC2 running PHP 5.2 and apache 2.2 (even with all firewalls etc turned
off), but the same script works on XP and will connect to localhost. Bug
also reported (by someone else) at the MySQL bug database:
http://bugs.mysql.com/bug.php?id=24212

Seems likely to be a security issue in vista but I thought I should flag
it up since it could become a problem once more people start to switch.

Reproduce code:
---------------
if ($sdbc = mysql_connect($host, $user, $pass)) {

echo "database selected";
        
} else {

echo"Could not connect to MySQL!<br />MySQL Error: " . mysql_error();
        
}


Expected result:
----------------
database selected

Actual result:
--------------
Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL
server on '****' (10060) in **** on line 16

-- 
Edit bug report at http://bugs.php.net/?id=39549&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39549&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39549&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39549&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39549&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=39549&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39549&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39549&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39549&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39549&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39549&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=39549&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=39549&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39549&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39549&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39549&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39549&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39549&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39549&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39549&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39549&r=mysqlcfg

Reply via email to