Page 1 of 1

Mantis installation STILL not working

Posted: 07 Oct 2019, 07:44
by Kieutrang
I'm getting the famous Mantis error
Attempting to connect to database as admin BAD. Does administrative user have access to the database? ( No such file or directory )

These are the values I'm using.
Type of Database MySQL
Hostname (for Database Server) mantisbt
Username (for Database) mantisbt
Password (for Database) mantisbt
Database name (for Database) mantisbt
Admin Username (to create Database if required) root
Admin Password (to create Database if required) <<my root password>>

The rest works. I've logged in (via mysql command line) to the database with the username/password and it works. The root password is correct and works.

PLEASE HELP!!!

Re: Mantis installation STILL not working

Posted: 07 Oct 2019, 11:03
by cas
Think your hostname is wrong. :mrgreen:
That should have the DNS name of the machine where MYSQL is running.
Is it on the same machine as the webserver, you can use "localhost" or simply put there the ip-address of the machine on which MYSQL is running.

Re: Mantis installation STILL not working

Posted: 09 Oct 2019, 14:28
by kkinsey
If I'm reading this correctly, MantisBT is simply complaining about you using "root" as the database user. This isn't considered a good security practice.

You, or your Database Administrator, should consider creating a MySQL server account for MantisBT to use, with its own passphrase and the appropriate grants/privileges. :)