Database connection error on Domain Alias

Hi,
I have a WordPress based website on Virtualmin GPL i.e domain.com
I have created an alias under this domain i.e alias.com

Now when I access alias.com I get the error
Error establishing a database connection

Any suggestion
Regards
Rizwan