Devstack: How to access to mongo db and mysql from command line in vagrant

19 views
Skip to first unread message

Luan Vominh

unread,
May 22, 2017, 12:23:34 PM5/22/17
to General Open edX discussion
Hello Everyone,

I have installed the latest devstack version in my local environment. 
Then i would like to use command line to connect to mongodb to discover which inside. However i do not know where database information declared.
I tried with following step:
$ vagrant up
$ vagrant ssh
$ mongo
It raised an error message:

MongoDB shell version: 2.6.12

connecting to: test

2017-05-22T09:00:42.650+0000 warning: Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused

2017-05-22T09:00:42.651+0000 Error: couldn't connect to server 127.0.0.1:27017 (127.0.0.1), connection attempt failed at src/mongo/shell/mongo.js:146

exception: connect failed


Could you please advise me on this issue?

Many Thanks
Luan
Reply all
Reply to author
Forward
0 new messages