I am post this for the heck of it, maybe it will help someone some day.
This is directly related to MYSql, no PHP info needed.
I was having a major issue connecting to a MySql Database from other machines on my network. localhost connections were just fine.
But I wanted to connect to the DB remotely through PHP and the response was terrible.
Connecting to Mysql Remotely using GUI's like MySql Front was terrible as well.
I am hosting the MySql DB on a Windows XP Service Pack 2 machine, loaded to the teeth with processing and memory. But the result were terrible.
Turns out this particular line was needed in my my.conf file.
skip-name-resolve
And that fixed it all!
HTH someone, I was on this for about 6 hours for a fix.