I don't know how many people are getting a "Critical Error- can't connect to the database" message when they try to log in like I do, but I've found a way to work around it:
After I get that message and it stays on that page, I click, "back" and then click on "profile." It then takes me to my profile page and then I'm able to navigate to the forum pages like normal and I'm logged in.