Welcome to the Treehouse Community
Looking to learn something new?
Anthony c20,907 Points
Getting error with mongo command
MYNAME-MacBook-Air:~ MYNAME$ mongo MongoDB shell version: 3.2.0 connecting to: test 2015-12-29T16:32:25.605-0500 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, reason: errno:61 Connection refused 2015-12-29T16:32:25.608-0500 E QUERY [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed : connect@src/mongo/shell/mongo.js:224:14 @(connect):1:6 exception: connect failed MYNAME-MacBook-Air:~ MYNAME$
jason chan31,008 Points
you have to run two terminals
one for mongod first as server second mongo as shell
I hope this help someone.
Michael WatsonTreehouse Teacher
I had some issues with this myself. Try rewatching from 2 mins, and considering the advice from Anthony c and Jason Chan as both were helpful comments as I troubleshot locally. It's working for me now. Also, I had to run
in one terminal first, then
in the next and it worked.