Re: config.php
It looks like WordPress uses the same exact syntax for the connection, so, it SHOULD work. Are you certain the string is exactly the same as the one you have in wp-config.php? If it works in WordPress, I think it should work in bbPress.