You said ‘change the database name’ – did you create another database to install bbPress into? There’s no need for that, but I am curious if that’s what you did.
It’s a pretty simple error – one of your connection details is incorrect. Maybe you need another set of eyes to look at it. Or, if it’s a local install, maybe you can look at MySQL errors to see what’s being logged.