Database connection parameters are stored in the engine/data/dbconfig.php file
Open this file and find the following code.
define ("DBHOST", "servername");
define ("DBNAME", "database_name");
define ("DBUSER", "username");
define ("DBPASS", "password");