views:

24

answers:

1
mysqli_real_connect($connection, $url['host'], $url['user'], $url['pass'], substr($url['path'], 1), $url['port'], NULL, MYSQLI_CLIENT_FOUND_ROWS);

What's the reason that it can take much time to make a connection?

Now about 3 out of 8 connections will hang for 5 seconds or even more.

A: 

I think your mysql server is overloaded. you can try raising your 'max_connections' in my.cnf . also check your logs for any helpfull information.

youssef azari
what about the behaviour of mysql_connect() ?
youssef azari
That doesn't make sense, there are only 2 connections on the developing mysql server.
wamp