Edit the database settings in ./config.inc.php.
./config.inc.php
Alternatively, consider running the installation script.