I have been trying to work out why I am unable to connect to a database when restoring a backup to an 'empty site'.
(Empty sites = in both cases hosting space where no exisiting content exists. )
1. Original site is hosted on an Indian server which went down - deleting content so tried to restore backup which was on dropbox.
Am experienced user of Akeeba backup on Joomla so created new database etc.
Tried everything but still got message 'Unable to connect to the Database: Could not connect to MySQL.'
2. Decided to experiment on our own virtual server from Vidahost where we have often backed up and restored Joomla using Akeeba. Created a 'test-site' on a subdomain - same problem.
Just to see if for some reason the backups were corrupt - I downloaded file to my computer and restored them offline using Xampp.
This worked fine and was able to connect to database.
I then tried using the Duplicator plugin.
This installed the site with no problems.
So have no idea what the problem might be.
Andrew