I think it is a problem with the databases. Looking at bb-includes/db.php, the error “Cannot select DB” occurs when mysql_select_db() fails (search the file for “cannot” to get to the right bit). Since there’s no error about not enough parameters, I assume that mysql_connect() was successful but I’m not sure about that. It’s one of the two IMO.
you the man!! thanks. I’ll let you know how it goes.
Ok so i went over my config file. Figure it must not be looking at the right place. I keep getting “Cannot select DB.” Can anyone spot where I went wrong? I know the other stuff is set up correctly. Bbpress is installed in mysoberlife/democlinical/forum/. Any help would be much appreciated! Tried install bbpress inside a subdirectory on another domain and had the same problem.
$bb_table_prefix = ‘bb_’;
$bb->domain = ‘http://mysoberlife.com’;
$bb->path = ‘/democlinical/forum/’;
$bb->wp_table_prefix = ‘wp_’;
$bb->wp_home = ‘http://mysoberlife.com/democlinical’;
$bb->wp_siteurl = ‘http://mysoberlife.com/democlinical’;
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
Looks like your blog is fine, but bbPress is not. Assuming you’re using the same database for both, then the connection details should be the same, other than the name of the constants (BBDB_ for bbPress instead of DB_ for WordPress – if you copied the whole section over, the constant names would be wrong.)
It’s hard to troubleshoot these things remotely since someone needs to be able to log into your control panel to see the actual connection details, then view and edit your config.php to make sure the settings are the same. Without trusting someone with that info, you’re going to have a hard time finding help for the problem.
P.S. please don’t post the connection details here.
P.P.S. you can contact me directly using any email found on the site linked in my profile, or just google my name (screen name or real name, matters not). I will be glad to help off-list.