How do I configure db.php?
Detailed instructions using popular content management systems as a frame of reference are available in the Mint Forum:
- Configuring Mint for WordPress
- Configuring Mint for Movable Type
- Configuring Mint for Textpattern
- Configuring Mint for Expression Engine
- Configuring Mint for Typo (Ruby on Rails)
If you do not use one of the above tools you will need to collect your database connection information from your host before proceeding. These details can usually be found in your host’s service welcome letter or your site admin panel. Open up
/mint/config/db.php with a plain text editor and you will see the following:
$Mint = new Mint (array ( 'server' => 'localhost', 'username' => '', 'password' => '', 'database' => '', 'tblPrefix' => 'mint_' ));
Fill in the three empty
''s with your database connection information. Depending on your set-up you may need to change
localhost to a database domain name but this varies from host to host. The
tblPrefix or database table prefix ensures that Mint tables don’t conflict with any existing tables on your database. Here is a completed example:
$Mint = new Mint (array ( 'server' => 'localhost', 'username' => 'johnsmith', 'password' => 'pass1234', 'database' => 'johnsmith_org_-_mint', 'tblPrefix' => 'mint_' ));
Please note that you are only changing the values on the right side of the
=> assignment operators.
Mint will run fine with the above required configs but it also accepts two optional configs,
paranoid (Mint 2.03+) and
gatewayOverride (Mint 1.29+).
paranoid is set to true all public utility and debug query commands are disabled. Please note that I cannot remotely troubleshoot a paranoid Mint installation. This optional config must be disabled in order to receive support.
gatewayOverride can be set to either “curl” or “socket” and is useful when your server claims to support one of the two technologies but in reality doesn’t. (On some builds of Apache for Darwin the cURL library while present is actually broken. In this case
gatewayOverride is automatically set to “socket”.)
Here is the previous example with the paranoid setting enabled and the gateway connection method overridden to use sockets:
$Mint = new Mint (array ( 'server' => 'localhost', 'username' => 'johnsmith', 'password' => 'pass1234', 'database' => 'johnsmith_org_-_mint', 'tblPrefix' => 'mint_', 'gatewayOverride' => 'socket', 'paranoid' => true ));