Using MongoDB in terminal which is running by AMPPS in ubuntu

https://stackoverflow.com/questions/39845157/using-mongodb-in-terminal-which-is-running-by-ampps-in-ubuntu

Ask QuestionAsked 3 years, 3 months agoActive 3 years, 3 months agoViewed 966 times01

I have AMPPS up and running in my ubuntu which is in /usr/local/ampps/ directory.

I want to use MongoDB which is available in AMPPS - I have started the MongoDB server from AMPPS control panel.

but I'm not able to use it from terminal,I'm in /usr/local/ampps/mongodb/bin/ directory and when I'm using ./mongo db mydb I get :

MongoDB shell version: 3.2.0
connecting to: use
2016-10-04T09:29:04.921+0330 E -        [main] file [mydb] doesn't exist
failed to load: mydb

How can I use mongoDB from terminal ?

FYI : I used mysql which it was running by AMPPS in terminal this way :

cd /usr/local/ampps/mysql/bin/
./mysql -u root -p 

And I was able to use mysql from terminal.

Last updated