123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
- /*
- | -------------------------------------------------------------------------
- | DATABASE CONNECTIVITY SETTINGS
- | -------------------------------------------------------------------------
- | This file will contain the settings needed to access your Mongo database.
- |
- |
- | ------------------------------------------------------------------------
- | EXPLANATION OF VARIABLES
- | ------------------------------------------------------------------------
- |
- | ['hostname'] The hostname of your database server.
- | ['username'] The username used to connect to the database
- | ['password'] The password used to connect to the database
- | ['database'] The name of the database you want to connect to
- | ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
- | ['write_concerns'] Default is 1: acknowledge write operations. ref(http://php.net/manual/en/mongo.writeconcerns.php)
- | ['journal'] Default is TRUE : journal flushed to disk. ref(http://php.net/manual/en/mongo.writeconcerns.php)
- | ['read_preference'] Set the read preference for this connection. ref (http://php.net/manual/en/mongoclient.setreadpreference.php)
- | ['read_preference_tags'] Set the read preference for this connection. ref (http://php.net/manual/en/mongoclient.setreadpreference.php)
- |
- | The $config['mongo_db']['active'] variable lets you choose which connection group to
- | make active. By default there is only one group (the 'default' group).
- |
- */
- $config['mongo_db']['active'] = 'default';
- $config['mongo_db']['default']['no_auth'] = TRUE;
- $config['mongo_db']['default']['hostname'] = '127.0.0.1';
- $config['mongo_db']['default']['port'] = '27017';
- $config['mongo_db']['default']['username'] = 'admin';
- $config['mongo_db']['default']['password'] = 'abc123';
- $config['mongo_db']['default']['database'] = 'workorder';
- $config['mongo_db']['default']['db_debug'] = TRUE;
- /* End of file database.php */
- /* Location: ./application/config/database.php */
|