Why Drupal 7 takes too time in connecting to mysql db? - measured with xdebugger i have drupal 7 on localhost (core i7 - 12gb ram etc)
on Nginx with APC and mySql on windows7.

standard installation with standard theme and a bounch of new modules. about NO content.

The problem is that the homepage take ever 1,5 sec to load (without APC 3 secs).
i installed XDEBUGGER and with winCacheGrind i discovered that 75% of the time is lost in DB connections. Self: 2ms, Cumulative:1007ms 


i tried almost anything i found on google... also i ported db engine to MyISAM... mySql is configured with my-HUGE.ini file... so it can take any resource from the computer.

How could i solve this?

1,5sec for any loggedin user is too much time... on the hosting this time will be greater as i won't have a so big dedicated server...
This is a good group for you to join on groups.drupal.org
http://groups.drupal.org/drupal-windows

Looking at this post it sounds like the issue you are describing: http://groups.drupal.org/node/242443.


  Make sure that your Drupal settings.php connection string uses the IP
  address of your MySQL server (e.g. 127.0.0.1 for your local Windows
  machine), not 'localhost'.