#39549 [Bgs]: Cannot connect to remote databases
ID: 39549
User updated by: rob at beagrie dot com
Reported By: rob at beagrie dot com
Status: Bogus
Bug Type: MySQL related
Operating System: Windows Vista RC2
PHP Version: 5.2.0
New Comment:
It isn't a bug per se, but as I say I thought someone in development
should be notified that there is an issue here, so this seemed a more
appropriate venue than any of the ones listed on the support page.
Anyway if you're happy that this is a problem at the microsoft end
thats fine.
Previous Comments:
------------------------------------------------------------------------
[2006-11-17 19:11:08] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2006-11-17 18:28:26] rob at beagrie dot com
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 this bug report at http://bugs.php.net/?id=39549&edit=1
Thread (3 messages)