In phpBB connection to the database is configured in config.php file
This file is located in the root directory. Open it and find the following code.
$dbhost = 'server_address';
$dbname = 'database_name';
$dbuser = 'user_name';
$dbpasswd = 'password';