Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class 'MongoDB\Database' not found #1

Open
ozalxd opened this issue Sep 16, 2016 · 8 comments
Open

Class 'MongoDB\Database' not found #1

ozalxd opened this issue Sep 16, 2016 · 8 comments

Comments

@ozalxd
Copy link

ozalxd commented Sep 16, 2016

How can i fix this error?

Message: Class 'MongoDB\Database' not found
Filename: /home/xxxx/public_html/aaa/application/libraries/Mongo_db.php

@ehoutsma
Copy link
Owner

ehoutsma commented Oct 4, 2016

Sorry for the late response. You need the PHP MongoDB Library to be able to use this library.
http://mongodb.github.io/mongo-php-library/api/class-MongoDB.Client.html#_selectCollection

Simply install using composer and start using MongoDB.

@Chison
Copy link

Chison commented Nov 1, 2016

I think if you need to select the database, you can put it behind the $dsn.

@rajsathishcse
Copy link

Message: Class 'MongoDB\Database' not found
Filename: /home/xxxx/public_html/aaa/application/libraries/Mongo_db.php

what is the solution for this error?

@himanshumilagro
Copy link

Getting same error 'Message: Class 'MongoDB\Database' not found' using MongoDb new library 'MongoDB\Driver\Manager' for codeigniter. Any solution.

@akrambak
Copy link

I have the same error !!!!

@vkasharma
Copy link

same error. does anyone have solution?

@nhanledev
Copy link

The solution is composer require mongodb/mongodb

@SpaceCorp-Us
Copy link

SpaceCorp-Us commented Apr 1, 2018

Is "composer" something used with PHP7 and CodeIgniter3 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants