<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
// Generally localhost
$config['host'] = "dbh75.mongolab.com";
// Generally 27017
$config['port'] = 27757;
// The database you want to work on
$config['db'] = "rms";
// Required if Mongo is running in auth mode
$config['user'] = "arny";
$config['pass'] = "arny";
/*
* Defaults to FALSE. If FALSE, the program continues executing without waiting for a database response.
* If TRUE, the program will wait for the database response and throw a MongoCursorException if the update did not succeed.
*/
$config['query_safety'] = TRUE;
//If running in auth mode and the user does not have global read/write then set this to true
$config['db_flag'] = TRUE;
//consider these config only if you want to store the session into mongoDB
//They will be used in MY_Session.php
$config['sess_use_mongo'] = TRUE;
$config['sess_collection_name'] = 'ci_sessions';
我是否需要复制此代码并覆盖codeIgniter的数据库,还是只需要调用此文件?