I'm using Codeigniter MVC.I installed MongoDB but it doesn't work.
I'm getting this error;
Unable to connect to MongoDB: Failed to connect to: localhost:27017: SASL Authentication failed on database 'teknikserviscim': Authentication failed.
The config file is like this;
$config['mongo_db']['active'] = 'newdb';
$config['mongo_db']['newdb']['hostname'] = 'localhost';
$config['mongo_db']['newdb']['port'] = '27017';
$config['mongo_db']['newdb']['username'] = 'superuser';
$config['mongo_db']['newdb']['password'] = '12345678';
$config['mongo_db']['newdb']['database'] = 'teknikserviscim';
$config['mongo_db']['newdb']['db_debug'] = TRUE;
$config['mongo_db']['newdb']['write_concerns'] = (int)1;
$config['mongo_db']['newdb']['journal'] = TRUE;
$config['mongo_db']['newdb']['read_preference'] = NULL;
$config['mongo_db']['newdb']['read_preference_tags'] = NULL;
class PanelHesap extends CI_Model {
public function __construct()
{
parent::__construct();
$this->load->library('mongo_db', array('activate'=>'newdb'),'mongo_db2');
}
Well. What Is The Problem ? Thanx.