This is not working if lime we you do not use the host file and instead use different folders in htdocs for the development environment. I am using for instance localhost/nameofsite for my development environment and I get a 'error establishing a connection to database'. Anything that can be done for this particular case?