icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Choosing Surpass » Signed Up? » phpBB2 Error Message

Signed Up? If you're new with a question, ask here!

Reply
 
LinkBack Thread Tools Search this Thread
Old September 7th, 2007, 3:02 PM   #1 (permalink)
Registered User
Fresh Surpasser
 
Joined in Sep 2007
2 posts
Gave thanks: 0
Thanked 0 times
phpBB2 Error Message

phpBB : Critical Error

Could not connect to the database

I setup a forums using phpBB2 and it's giving me this error. I'm not sure why it's giving me this though since the server isn't down. Anyone know what I need to do to fix it or if I need to provide more information?
Thanks
JeremieJ is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 7th, 2007, 3:14 PM   #2 (permalink)
Race Surpass
Super #1
 
MarkRH's Avatar
 
Joined in Jul 2006
Lives in Oklahoma City, OK
Hosted on sh102
1,222 posts
Gave thanks: 18
Thanked 86 times
Go into your cPanel and look in the MySQL databases portion. You should see one listed there for your phpBB database. If so, do you see a user associated with it that has access? If not, you need to create a new user and grant that user access to the database with all privelages.

In the phpBB config files (I don't use phpBB), make sure the database name, username, and password are correct.

If the MySQL option in cPanel comes up empty, it's possible the MySQL service is down on the server. Check the Service Status on the left side of cPanel to see if MySQL is up.

Note, your database names and users will all have your account's username as a prefix: (account)_databasename and (account)_username

So...

1. MySQL service is down.
2. No user has been associated with the database in cPanel yet.
3. phpBB Config files do not have the correct database name, username, and/or password in them.

Last edited by MarkRH; September 7th, 2007 at 3:18 PM.. Reason: typo
MarkRH is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 7th, 2007, 3:33 PM   #3 (permalink)
Registered User
Fresh Surpasser
 
Joined in Sep 2007
2 posts
Gave thanks: 0
Thanked 0 times
Thanks for the quick reply! I didn't have a user associated with the SQL database for the phpBB2 database. I added the user and then I got this message:

phpBB : Critical Error

Could not query config information

DEBUG MODE

SQL Error : 1146 Table 'jerm5_phpb1.phpbb_config' doesn't exist

SELECT * FROM phpbb_config

Line : 215
File : common.php

Looks like I'm missing the config file, but I'm not sure how that happened since I didn't remove it. I used the fantastico feature in the cpanel to create these forums.
Thanks!
JeremieJ is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 16th, 2007, 7:58 AM   #4 (permalink)
Registered User
Fresh Surpasser
 
Blondy's Avatar
 
Joined in Sep 2007
7 posts
Gave thanks: 0
Thanked 0 times
I would recommend you to drop all database tables and reinstall the forum. Be attentive to enter correct database server name, database name, user and pass correctly from the first try. Then the problem will go away. If you still get the error - this would only mean the database server being down, you may check it by doing telnet to the database server name, port 3306, as: telnet mysqlhost 3306.
Blondy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On