Page 1 of 1

Could not connect to database

PostPosted: 12. June 2005 17:35
by agb
Can someonse please help me in resolving the "phpBB: Critical Error Could not connect to database" error?

Been trying to clean install phpbb2 (phpbb-php5) in XAMPP Windows 1.4.13 (as localhost) - have edited/updated php.ini

Have used the xamppstart/xamppstop, the apachestart/apachestop + mysqlstart/mysqlstop...used xampp with installer and the zip to no avail :(

..been doing it for a couple of hours and still could not figure it out :(

PostPosted: 13. June 2005 13:43
by keepsedge
delete the db and the forums.

in phpmyadmin create a database. "forumsdb"

Reinstall the forums somewhere and use the root name and pasword for db access. This isn't recomended on a live server. But good for testing / moding phpbb software.

Phpbb will not conect to a db if your username / password combination is wrong.
____________________________________________________________

Next ensure that your mysql server is running. In windows task manager, you find under process (xp only) my-sql-id thats the sql server.. if it's not there.. you have a problem.. Of course of the mysql server isn't working.. you will not be able to use phpmyadmin either.

PostPosted: 14. June 2005 03:59
by agb
Thanks keepsedge :P

I did what you asked and I keep getting the same error, then I realized I was using the wrong username :oops: (kept forgetting this is a packaged web server)

...this is my first time using a packaged webserver - I was previously using a self-installed web server (local host).

lesson for me: never do an install during a weekend (and with a hangover) :roll: