-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Connection Fail #22
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
Comments
I don't really know what is causing that warning, but I don't think it is related to the library as it is PHP's MongoClient that is throwing it. You could try Good luck. |
Thank you for the response. I am still trying to solve these problem. I noticed that passing the connection string directly at line 37 works.
This gives me an idea that my mongo works with php, but how is the current connection string look like? Can there be a problem with the way we are passing it. Here is my server details:
Thanks |
It will generate the following DSN for the configuration array above:
|
Found the problem. It is on my side. Used a password generator and which produced my password with a '@' character. Just noticed that. The code is working well. I am now passing my connection as expected:
Thank you for the good library and support. |
I will try passing the username and password as options to avoid this problem for future users. |
Yes that will help. It might take someone quite some time to figure out such an error. |
I modified the Connection class, it should allow usernames and passwords with strange characters now. |
Awesome. Works well now. Cheers! |
* PHPORM-35 Add various tests on Model _id * Add assertion on expected value * Test _id as array and object * Remove tests for arrays and objects as identifiers when keyType is string --------- Co-authored-by: Andreas Braun <[email protected]>
* PHPORM-35 Add various tests on Model _id * Add assertion on expected value * Test _id as array and object * Remove tests for arrays and objects as identifiers when keyType is string --------- Co-authored-by: Andreas Braun <[email protected]>
…re information.
I am trying to use Laravel-MongoDB in Laravel 4 but I run into this error
From Laravel trace tool, this file is highlighted [/var/www/archels/vendor/jenssegers/mongodb/src/Jenssegers/Mongodb/Connection.php] line 30-39
This is how I do my connection
'mongodb' => array( 'driver' => 'mongodb', 'host' => '127.0.0.1', 'port' => 27017, 'username' => 'myusername', 'password' => 'mypassword', 'database' => 'mydb' ),
Note: I followed this tutorial for php-driver installation and RockDB.
Any Idea on why this is happening? Thanks
The text was updated successfully, but these errors were encountered: