All that error is saying is that it can't connect to the database, and there could be many reasons why. Aside from the obvious, which is to make sure the MySQL server is up and running, here are some questions to consider:
Have you created and named the database you want to use, and then set...