mysql_connect "bool $new_link = true" is very slow

Posted by Mikk on Stack Overflow See other posts from Stack Overflow or by Mikk
Published on 2010-03-22T22:27:27Z Indexed on 2010/03/22 22:31 UTC
Read the original article Hit count: 270

Filed under:
|
|
|

Hi, I'm using latest version of Xampp on 64bit Win7. The problem is that, when I use mysql_connect with "bool $new_link" set to true like so:

mysql_connect('localhost', 'root', 'my_password', TRUE);

script execution time increases dramatically (about 0,5 seconds per connection, and when I have 4 diffirent objects using different connections, it takes ~2 seconds).

Is setting "bool $new_link" to true, generally a bad idea or could it just be some problem with my software configuration.

Thank you.

© Stack Overflow or respective owner

Related posts about xampp

Related posts about windows-7