Hi. When you get a "cannot connect to database" error is sounds like the connect.php file does not contain the correct info to connect to the database. As such, you need to make sure that the following constants are configured for the database you are trying to use:
PHP Code:
define('PHPDIG_DB_PREFIX','<dbprefix>');
define('PHPDIG_DB_HOST','<host>');
define('PHPDIG_DB_USER','<user>');
define('PHPDIG_DB_PASS','<pass>');
define('PHPDIG_DB_NAME','<database>');