Elgg couldn't connect to the database using the given credentials.

I keep getting this message after typing in the correct database information on install. i have even tried editing my database info in the settings.php file but still get the same problem. My host is justhost.com Anyone have any idea's?