Database configuration not using localhost

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
rhembans
Posts: 2
Joined: 16 Feb 2015, 04:15

Database configuration not using localhost

Post by rhembans »

Hi all,

It is possible to use database in mantis from different server instead of localhost?

example using this in config_inc.php:

$g_hostname = '10.0.0.239';
$g_db_type = 'mysql';
$g_database_name = 'mantisdb';
$g_db_username = 'root';
$g_db_password = '';

But in doing this I've got this error:

APPLICATION ERROR #400
Database connection failed. Error received from database was #1045: Access denied for user 'root'@'10.0.253.237' (using password: NO).

SYSTEM WARNING: 'mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'10.0.0.237' (using password: NO)' in '/var/www/html/mantis/library/adodb/drivers/adodb-mysql.inc.php' line 365

How could I fix this error? Is there any other config files that I need to change also?

Thank you in advance for your help.
rhembans
Posts: 2
Joined: 16 Feb 2015, 04:15

Re: Database configuration not using localhost

Post by rhembans »

Hi All,

It was just a database permission problem. We grant all the permissions needed then I was able to use connect to our current mantis database.

Many thanks to David Jirman.

This problem is now solve!
Post Reply