Page 1 of 1

critical error message could not connect to database

Posted: Mon Aug 18, 2003 9:27 am
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

Posted: Mon Aug 18, 2003 9:35 am
by McGruff
What error?

Posted: Mon Aug 18, 2003 9:47 am
by cherylrw
the error is "PHPBB CRITICAL ERROR COULD NOT CONNECT TO THE DATABASE"

Posted: Mon Aug 18, 2003 9:57 am
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?

Posted: Mon Aug 18, 2003 10:02 am
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?

Posted: Mon Aug 18, 2003 10:30 am
by JayBird
did you change the password of the databse, or the password in the PHP script?

Posted: Mon Aug 18, 2003 10:40 am
by cherylrw
The database..I havent been in any scripts

Posted: Mon Aug 18, 2003 10:48 am
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

Posted: Mon Aug 18, 2003 11:17 am
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.

Posted: Mon Aug 18, 2003 12:15 pm
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.

Posted: Mon Aug 18, 2003 1:23 pm
by McGruff
OK if you changed the db server password, I think you need to edit phpBB2/config.php.