Given the immensely vague question I'm going to take a wild stab in the dark and say that you are trying to connect to a mysql server that's not on the localhost and the permissions haven't been set up for you
Just a guess... we could keep guessing unless you care to explain further.