Changing database - can't connect
Sometimes we need to point joomla to a different database after install.
It's pretty straightforward, but something not to overlook is the password.
In the administrator section (backend) of Joomla!, in global configuration it's easy to go to change the username and database, but beware that if you don't change the password -Joomla! understandably wont' be able to connect to the database.
And you will need to directly change the password in your configuration.php file to achieve this - by accessing the file directly e.g. via ftp or server access. Specifically modify:
var $password = 'relevant_password';
Of course, we advise you encrypt the password.