thats not very helpful. could we see the code that is generating this error? could be as simple as you not defining the username and password to use for connecting to the db.
Or trying to access a database with a user that doesn't have rights to that database. Or a wrong password. Or the user doesn't exist. Lots of possibilities... It would probably help us to see your code for connecting to the database so that we can help you debug the problem.