#51085 [NEW]: Mysql Connect takews too long
| From: | djokodonev at gmail dot com | Date: | Thu, 18 Feb 2010 16:45:10 +0000 |
| Subject: | #51085 [NEW]: Mysql Connect takews too long | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-3940@lists.php.net to get a copy of this message | ||
From: djokodonev at gmail dot com
Operating system: windows 7
PHP version: 5.3.1
PHP Bug Type: Documentation problem
Bug description: Mysql Connect takews too long
Description:
------------
The mysql_connect function takes too long to connect to the host.
As shown below, the example code I've written, makes a connection to the
local database(mysql) running on port 3306.
It worked just fine before i upgraded to windows 7.. It is quite possible
that this is OS related than php related but still.
I would surely appreciate any feedback.
Regards
Reproduce code:
---------------
---
From manual page: http://www.php.net/function.mysql-connect#Parameters
---
// Test Code
$start = microtime(true);
$conect = mysql_connect("127.0.0.1:3306", "root", "myPassword");
$end = microtime(true);
echo $end - $start;// 0.500825881958 sec.
// results is -> 0.500825881958 sec...??? it is taking too long to connect
for some reason??? Is it PHP related or?
--
Edit bug report at http://bugs.php.net/?id=51085&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51085&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51085&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51085&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=51085&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51085&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=51085&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=51085&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=51085&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=51085&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=51085&r=support
Expected behavior: http://bugs.php.net/fix.php?id=51085&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=51085&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=51085&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=51085&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51085&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=51085&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=51085&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=51085&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=51085&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=51085&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=51085&r=mysqlcfg