Inhibits mysql_connect();


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
5 views

The situation


There are three machines:
  • Server (CentOS)
  • Developer 1 (Windows 7 )
  • Developer 2 (Windows XP x86)

Installed PHP versions:
Server — 5.2.12
Developer 1 — 5.2.13
Developer 2 — 5.3.0

The results of executing mysql_connect('localhost', 'user', 'pass'):
Server — ~0,0012
Developer 1 — ~0,52
Developer 2 — ~0,001

The problem is NOT the MySQL server — 100%.
In addition, tested on virtual machines — the results are approximately the same.
The only problem specifically this car.

Has anyone encountered a similar problem?
Does it have a solution?
by | 5 views

5 Answers

0 like 0 dislike
Actually, found a solution — to install the PHP 5.3 branch.x or <5.2.12
Starting with build 5.2.13, apparently, was amended in libmysql that affect the performance.
by
0 like 0 dislike
In Windows 2008 the problem is that you need to specify 127.0.0.1 and not localhost
by
0 like 0 dislike
You're antivirus is off tried, right?
by
0 like 0 dislike
Version of client and server match?
by
0 like 0 dislike
Another solution to the hosts file to register
127.0.0.1 localhost
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Mar 25, 2019 by mihavxc
0 like 0 dislike
3 answers
0 like 0 dislike
2 answers
asked Jun 8, 2019 by unlik
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
28,043 users