mongo_db.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2. /*
  3. | -------------------------------------------------------------------------
  4. | DATABASE CONNECTIVITY SETTINGS
  5. | -------------------------------------------------------------------------
  6. | This file will contain the settings needed to access your Mongo database.
  7. |
  8. |
  9. | ------------------------------------------------------------------------
  10. | EXPLANATION OF VARIABLES
  11. | ------------------------------------------------------------------------
  12. |
  13. | ['hostname'] The hostname of your database server.
  14. | ['username'] The username used to connect to the database
  15. | ['password'] The password used to connect to the database
  16. | ['database'] The name of the database you want to connect to
  17. | ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
  18. | ['write_concerns'] Default is 1: acknowledge write operations. ref(http://php.net/manual/en/mongo.writeconcerns.php)
  19. | ['journal'] Default is TRUE : journal flushed to disk. ref(http://php.net/manual/en/mongo.writeconcerns.php)
  20. | ['read_preference'] Set the read preference for this connection. ref (http://php.net/manual/en/mongoclient.setreadpreference.php)
  21. | ['read_preference_tags'] Set the read preference for this connection. ref (http://php.net/manual/en/mongoclient.setreadpreference.php)
  22. |
  23. | The $config['mongo_db']['active'] variable lets you choose which connection group to
  24. | make active. By default there is only one group (the 'default' group).
  25. |
  26. */
  27. $config['mongo_db']['active'] = 'default';
  28. $config['mongo_db']['default']['no_auth'] = TRUE;
  29. $config['mongo_db']['default']['hostname'] = '127.0.0.1';
  30. $config['mongo_db']['default']['port'] = '27017';
  31. $config['mongo_db']['default']['username'] = 'admin';
  32. $config['mongo_db']['default']['password'] = 'abc123';
  33. $config['mongo_db']['default']['database'] = 'workorder';
  34. $config['mongo_db']['default']['db_debug'] = TRUE;
  35. /* End of file database.php */
  36. /* Location: ./application/config/database.php */