php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33248 mysql_select_db is so slow
Submitted: 2005-06-05 11:32 UTC Modified: 2005-06-05 11:34 UTC
From: homework at aofrozencity dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.3.11 OS: Windows 2003 Server
Private report: No CVE-ID: None
 [2005-06-05 11:32 UTC] homework at aofrozencity dot com
Description:
------------
My webserver computer isn't in the same local with MySQL server computer. MySQL server computer is at the different building. I wrote the IP address of the MySQL server in web file on the webserver computer. I noticed that mysql_select_db downloaded a huge table file fully (over 10,000 rows) from the MySQL server computer to the webserver computer for about 20 seconds. After that, finally it started querying fast. When I refresh the page, mysql_select_db downloaded the file again for other 20 seconds. I already ping the webserver computer to the MySQL server computer. It was about 15ms.

source here:

$connect=mysql_pconnect(xxx.xxx.xxx.xxx(IP internet), ..., ...) or die(mysql_error());
mysql_select_db(..., ...) or die(mysql_error());


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-05 11:34 UTC] derick@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.

.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 10:01:29 2024 UTC