php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39549 Cannot connect to remote databases
Submitted: 2006-11-17 18:28 UTC Modified: 2006-11-17 19:23 UTC
From: rob at beagrie dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 5.2.0 OS: Windows Vista RC2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: rob at beagrie dot com
New email:
PHP Version: OS:

 

 [2006-11-17 18:28 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-17 19:11 UTC] 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 19:23 UTC] rob at beagrie dot com
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC