Skip to content

Commit 7331613

Browse files
committed
Remove MongoDB 2.4 from the README
1 parent 96ac5fa commit 7331613

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

README.md

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,7 @@ Add fh-db as a dependency to your module and require it where required, like any
3030
### Start Mongo Server
3131
Start the docker machine for the version of mongo you wish to test:
3232
```bash
33-
docker run -d -p 27017:27017 mongo:2.4
34-
# or (preferred)
3533
docker run -d -p 27017:27017 mongo:2.6
36-
# or
37-
...
3834
```
3935

4036
### Note for docker-machine users
@@ -56,8 +52,9 @@ connect to Mongo:
5652
mongo
5753
```
5854

59-
#### For versions > 3.x
60-
You will need to update the authentication to work with fh-db, which is done as follows:
55+
#### For MongoDB versions > 3.x
56+
Well, instead of MongoDB 2.6 stated above if you used MongoDB 3.x, you will need to update the authentication
57+
to work with fh-db, which is done as follows:
6158
```
6259
use admin
6360
db.system.users.remove({})
@@ -77,12 +74,7 @@ mongo
7774
```
7875

7976
#### Add the admin user:
80-
##### 2.4.x
81-
```
82-
use admin
83-
db.addUser('admin', 'admin');
84-
```
85-
##### >= 2.6
77+
8678
```
8779
use admin
8880
db.createUser({user: 'admin', pwd: 'admin', roles: ['root']})
@@ -97,13 +89,7 @@ mongo admin -u admin -p admin
9789
#### Add the ditchuser
9890

9991
Log in as the admin user, if you are not yet, then run:
100-
##### 2.4.x
101-
```
102-
use fh-ditch
103-
db.addUser('ditchuser', 'ditchpassword');
104-
```
10592

106-
##### >= 2.6
10793
```
10894
use fh-ditch
10995
db.createUser({user: 'ditchuser', pwd: 'ditchpassword', roles: ['dbAdmin']})

0 commit comments

Comments
 (0)