#51085 [Opn]: Mysql Connect takews too long
| From: | djokodonev at gmail dot com | Date: | Thu, 18 Feb 2010 16:52:28 +0000 |
| Subject: | #51085 [Opn]: Mysql Connect takews too long | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-147828@lists.php.net to get a copy of this message | ||
ID: 51085
User updated by: djokodonev at gmail dot com
Reported By: djokodonev at gmail dot com
Status: Open
-Bug Type: Documentation problem
+Bug Type: Performance problem
Operating System: windows 7
PHP Version: 5.3.1
New Comment:
It's a Performance problem...
Previous Comments:
------------------------------------------------------------------------
[2010-02-18 16:45:09] djokodonev at gmail dot com
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 this bug report at http://bugs.php.net/?id=51085&edit=1