Hi all,
I had set up mantis last month, and everything was happily running. I have the database on a separate box that supports RAID-5. Anyway, upon returning from a recent business trip I noticed that Mantis is reporting
==========================
Application Error #400
Database connection failed. Error Received from database was #1044: Access denied for user "@"localhost to database bugtracker.
==========================
The strange thing is, when you run the admin/check.php all is good.
So I've taken a dump of the database, but do not wish to import locally if I can avoid it. All functionality mail, was working now it just seems to be pointing at the wrong DB. I suspect it's a global variable setting but the config_inc.php is set up for the correct database. Is there somewhere else I should be including the database connection info?
Thanks in advance,
-Rich
Confusing behaviour, mantis suddenly pointing at wrong DB.
Moderators: Developer, Contributor
-
- Posts: 4
- Joined: 05 Apr 2005, 19:54
-
- Posts: 4
- Joined: 05 Apr 2005, 19:54
-
- Posts: 4
- Joined: 05 Apr 2005, 19:54
No it's actually 'localhost', which lead me to assume that it was not reading the config_inc.php correctly. I can run mysql from the command line to the database correctly, eg.
mysql -h <othermachine.withdatabase.com> -u root -p
So I don't believe it's a dns issue. Can correctly run nslookups on the machine as well.
-R
mysql -h <othermachine.withdatabase.com> -u root -p
So I don't believe it's a dns issue. Can correctly run nslookups on the machine as well.
-R
-
- Posts: 4
- Joined: 05 Apr 2005, 19:54
Well thanks for your help thraxisp, I've had to resort to importing the database locally. It's a workaround that will do for now. If I figure out a more permanent solution I'll post it.
grepping through the php files I did not find any occurance where the $g_hostname would have been over-written.
Thanks again though.
-R
grepping through the php files I did not find any occurance where the $g_hostname would have been over-written.
Thanks again though.
-R