Mahara: Site unavailable

Mahara could not connect to the application database.

* If you are using Mahara, please wait a minute and try again
* If you are the administrator, please check your database settings and make sure your database is available

The error received was:
mysql error: [1045: Access denied for user 'cosmicth_mahara'@'localhost' (using password: YES)] in CONNECT(localhost, 'cosmicth_mahara', '****', cosmicth_mahara2)