Unanswered: can't connect to localhost, why oh why? >>ANSWERED<<
I have been pulling my hair out over this all day and have to ask for help. I have set up on my local machine apache and mySQL. I'm no developer, so I have just been using Navicat to manage mySQL. I have not problems managing my local DB. I enter the following in the prompt window to access it:
User name: root
No, problem. The DB "myDB" opens up, I see all my content etc.
Now, I have a simple include file that I use in php that works PERFECTLY online:
But it does NOT connect locally. I have checked permissions inside mySQl, and as far as I can tell I have opened up every permission possible for every user. Can anyone please help me figure out why the exact same entries from my functional php file is not connecting to my localhost when that exact same file works elsewhere? Please, I am about to exp-p-p-lode!!!