I have installed MantisBT 1.2.18 in one of our server and it is working fine. Then suddenly, I was ask if Mantis can be installed in different server but will still have to used the the existing database in the current Mantis server.
So I copy the whole folder to then new server, then I edited config_inc.php change the value of $g_hostname from "localhost" to the IP address of the current Mantis server.
$g_hostname = '10.0.0.xxx';
$g_db_type = 'mysql';
$g_database_name = 'mantisdb';
$g_db_username = 'root';
$g_db_password = '';
But I got this errors:
APPLICATION ERROR #400 Database connection failed. Error received from database was #2003: Can't connect to MySQL server on '10.0.0.xxx' (61).
SYSTEM WARNING: 'mysql_connect(): Can't connect to MySQL server on '10.0.0.xxx' (61)' in '/Applications/MAMP/htdocs/mantis/library/adodb/drivers/adodb-mysql.inc.php' line 365.
My question is. Is it possible to use IP address in config_inc.php? What are other configuration files that I need to change?
I've posted this question in Mantis forum but didn't get any answer.
How anyone could help me solved this problem.
Many thanks in advance.