Database connection problem!

Pubsearch is unable to open a connection to the database because of the following reason:

<%= error.getReason() %>
This may be due to a typo in the configuration options.Please double check the username and password configuration variables, and make sure that the database is running.