Product SiteDocumentation Site

5.2. Database

5.2.1. Base Database settings

These settings are required for the system to work, and are typically set when installing MantisBT. They should be provided to you by your system administrator or your hosting company.
$g_hostname
Host name or connection string for Database server. The default value is localhost. For MySql, this should be hostname or hostname:port (e.g. localhost:3306).
$g_db_username
User name to use for connecting to the database. The user needs to have read/write access to the MantisBT database. The default user name is "root".
$g_db_password
Password for the specified user name. The default password is empty.
$g_database_name
Name of database that contains MantisBT tables. The default name is 'bugtracker'.
$g_db_type
The supported database types are listed in the table below.
The PHP extension corresponding to the selected type must be enabled (see also Section 2.2.2.1, “Versions compatibility table”).
RDBMSdb_type (ADOdb)PHP extensionComments
MySQLmysqlimysqlidefault
PostgreSQLpgsqlpgsql 
MS SQL Servermssqlnativesqlsrv 
Oracleoci8oci8