Mantis Logo
Mantis Manual
Manual
Configuration

Database
Path
Webserver
Version
Email
Language
Display
Time
JpGraph
Date
News
Default Preferences
Summary
Bugnote
File Upload
HTML
Authentication
Status Settings
Filters
Misc
Colors
Cookies
Database Tables
Speed Optimisation
Reminders
Bug History
Sponsorship
Source Control Integration
Custom Fields
My View Settings
Relationships
System Logging


Partner Links


Database
Last Modified: September 26, 2004 04:09AM
(Any)
Description

$g_hostname Host name or connection string for Database server. The default value is localhost. For mysql, this should be hostname or hostname:port. For other databases (experimental, not supported), this may be a connection string or hostname
$g_db_username User name to use for connecting to the database. The user needs to have read/write access to the Mantis 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 Mantis tables.
$g_db_type Experimental Defines the database type. The supported default is 'mysql'. Experimental options include 'mssql', 'odbc_mssql', 'postgres', 'postgres64', 'postgres7', and 'pgsql'. Introduced in 0.19.0
The database settings must be set in order for the package to work properly. These settings should be provided to you by your system administrator or your hosting company.

User Contributed Notes
Database
Add Notes About Notes
wojtek@voyteck.pl
24-Nov-2003 6:50
#27
If your MySQL accepts socket connections through the non-default socket (in /tmp/...) type into $g_port your socket path - will also work.
amaso@gadgetbear.com
04-Dec-2003 16:16
#32
Is there any risk in entering my SQL database password in the configuration file? Can someone who knows something about PHP read the file and do (bad?) stuff with my datgabase?

---

[Editor] Following are the cases (that I can think of) where you password may be exposed:
- PHP Server gets uninstalled from the Web Server (or was not installed in the first place).
- Other users have access to the Mantis directory through FTP
- Other users have access to the Mantis directory through shell access.
- Other users have access to the Mantis directory through LAN.
Maarten
13-Dec-2003 6:25
#35
In a normal situation, people cannot see the sourcecode of your PHP-pages, because it is parsed by your server before the page is returned to a browser.

Only if your PHP-parser has problems and gets disabled, people who know the URL of your config_inc.php file can see the contents.

To the developers: Why don't you create an option so that users can specify the path to config_inc.php? I'd like mine above the HTDOCS root... Pretty save I guess.

---

[Editor] This will require another config_inc to point to the config_inc! This complicates things without a practical benefit.
mantis-doc.to.skeeve@spamgourmet..com
23-Jan-2004 0:29
#58
So why not configure in config.inc the location of the password file?

You can keep that out of HTDDOCS then.
Add Notes About Notes
Last updated: Wed, 16 May 2012 - 8:03:04

Mantis @ SourceForge