-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Connection works via terminal mongo but not using Laravel-MongoDB #7
Comments
Are you able to connect to your server using the regular PHP client? http://www.php.net/manual/en/class.mongoclient.php |
Hey Jens, It does seem to work with a normal PHP client connection , e.g.
|
The library should generate the following connection string for your configuration (https://github.com/jenssegers/Laravel-MongoDB/blob/master/src/Jenssegers/Mongodb/Connection.php#L94):
|
That is very interesting ... I'll check up a bit more on my end. I think you can close it and If i'll have any new findings I'll share them here. Thank you! |
I struggled with this for a whole day... |
I fixed this by installing mongo 1.6.5 driver with |
…th invalid direction (mongodb#7) * Convert only strings, let the driver fail for int values * Add more tests on Builder::orderBy
…th invalid direction (#7) * Convert only strings, let the driver fail for int values * Add more tests on Builder::orderBy
Hey There,
Just installed Laravel-MongoDB on my Mongo setup,
After setting up everything in the database.php file I'm gettting a 'Failed to connect to: localhost:27017: Authentication failed on database 'vbtest' with username 'root': auth fails'
Even though I'm using exactly the same connection on the terminal which works.
Here's the Database.php config
And this is how It works in the terminal
Any ideas?
Thanks!
Shai.
The text was updated successfully, but these errors were encountered: