There could be a lot of reason why you have this error.
Commonly is wrong username/password used, wrong connection string or pipes are disabled like TCP/IP.
what database are you using? make sure you can log to your database using the credentials you are using in the installation of ALM.
sdeff