Skip to content

Commit 6402331

Browse files
committed
Update README.md
Before anyone pulls their hair out, In mongo 3 if you have auth you must supply the auth database ! http://docs.mongodb.org/manual/reference/program/mongotop/#cmdoption--authenticationDatabase
1 parent 265ef41 commit 6402331

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ And add a new mongodb connection:
6666
'port' => 27017,
6767
'username' => 'username',
6868
'password' => 'password',
69-
'database' => 'database'
69+
'database' => 'database',
70+
'options' => array(
71+
'db' => 'admin' // sets the authenication database required by mongo 3
72+
)
7073
),
7174
```
7275

0 commit comments

Comments
 (0)