Database connection keeps failing (error #1045) help!

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
Guest

Database connection keeps failing (error #1045) help!

Post by Guest »

Database connection failed. Error received from database was #1045: Access denied for user: 'root@localhost' (Using password: YES)

I've installed Mantis but have yet to be able to get a connection. I keep getting the error above, which indeed tells me that I configured mySQL wrong. I've been working at this for 3 hours, and have searched this site along with google, and can't figure out what I'm doing wrong. Any help would be greatly appreciated.


thx
thraxisp
Developer
Posts: 509
Joined: 14 Feb 2005, 03:38
Location: Ottawa, Canada
Contact:

Post by thraxisp »

If you have command-line access, you can check that mysql is accessible using the "mysql" command (e.g., "mysql -u root -p"). If the userid and password work, I'd check that the config_inc.php file is in place and correct. Otherwise, the userid and password are not set properly in mysql. (One usual cause of this is an invalid hostname parameter in the access tables).
Post Reply