[CSHARP-1712] accessing mongodb v3.x with powershell Created: 18/Jul/16 Updated: 05/Apr/19 Resolved: 18/Jul/16 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Ross Jurek | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | mongodb, powershell, question | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
mongodb v3 running on redhat, powershell 4.0 running on windows 2012 R2 |
||
| Issue Links: |
|
||||||||
| Description |
|
I had a powershell script that was accessing mongodb v2.x and after the upgrade to mongodb 3.x the script is failing to connect to the database, the error is that credentials are wrong. I have upgraded to the latest version of the csharp mongo driver, but still can not connect to the db. I am looking for the specific driver and connection string for powershell to connect to mongodb v3. |
| Comments |
| Comment by Ross Jurek [ 18/Jul/16 ] |
$mongoDbDriverPath = "C:\utilities\mongoDB_2\" $database = $client.GetDatabase($dbName) $query = [MongoDB.Driver.Builders.Query]::AND( $results = $collection.find($query) |
| Comment by Emily Stolfo [ 18/Jul/16 ] |
|
Hi rjurek I hope you don't mind that I moved your question to the CSHARP project. You originally created the ticket in the MONGOID project, which seems like it was a mistake, as Mongoid is the Ruby ODM. Thanks |