couldn't connect to the database

I start install Elgg first time but it appear erorr message "Elgg couldn't connect to the database using the given credentials."  I dont know how to do, can you tell me how to do it work ?