critical error message could not connect to database

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
cherylrw
Forum Newbie
Posts: 4
Joined: Mon Aug 18, 2003 9:27 am

critical error message could not connect to database

Post by cherylrw »

I have had my site for awhile now and all of a sudden I get this error and my site has been down now for 3 days.Can anyone tell me what might cause this I do not know a lot about php and mysql but thats what my site is .I have tried yahoo's tech support got nothing I really need to get some help and my site back up..Any help will be appreciated thanks
cheryl http://www.fishingtx.com
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

What error?
cherylrw
Forum Newbie
Posts: 4
Joined: Mon Aug 18, 2003 9:27 am

Post by cherylrw »

the error is "PHPBB CRITICAL ERROR COULD NOT CONNECT TO THE DATABASE"
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

Sorry not sure what could be the cause of that. I take it no changes have been made to the db connection script, passwords etc?
cherylrw
Forum Newbie
Posts: 4
Joined: Mon Aug 18, 2003 9:27 am

Post by cherylrw »

I havent changed the script but I believe I did change the password .Could that be it? And heres a dumb question how do I fix that?
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

did you change the password of the databse, or the password in the PHP script?
cherylrw
Forum Newbie
Posts: 4
Joined: Mon Aug 18, 2003 9:27 am

Post by cherylrw »

The database..I havent been in any scripts
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

in that case, you need to find in the PHP script where the database connect stuff is, and change the password there too.

I haven't used phpBB, so i can't tell you exactly where, but when you set the script up in the first place, you must have entered a password someone, so look in the documentaion you got with phpBB.

Usually there is a config.php or similar where you set stuff like passwords and MySQl hosts and usernames.

Mark
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

Bech100 wrote:in that case, you need to find in the PHP script where the database connect stuff is, and change the password there too.

I haven't used phpBB, so i can't tell you exactly where, but when you set the script up in the first place, you must have entered a password someone, so look in the documentaion you got with phpBB.

Usually there is a config.php or similar where you set stuff like passwords and MySQl hosts and usernames.
phpbb's installation script takes care of doing all that. Have you double and triple checked your login and password?

If the problem persists, I would advise using the forum at http://www.phpbb.com - surely someone there is a total expert.
User avatar
phice
Moderator
Posts: 1416
Joined: Sat Apr 20, 2002 3:14 pm
Location: Dallas, TX
Contact:

Post by phice »

Check to make sure you've got the right server, username, password, database, and version of MySQL selected when installing. Also, make sure your host supports MySQL, because that could really be a problem.
Image Image
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

OK if you changed the db server password, I think you need to edit phpBB2/config.php.
Post Reply