I’m trying to track down the same problem with “Cannot select DB.” The problem is actually upstream in a call to mysql_connect. The mysql_connect is fails, but without any separate error handing in db.php. But I don’t know why the mysql_connect is failing. The params look right, and the bbpress database has been added via my Plesk control panel.
— Mark