Installing and Running MongoDB on OSX

If you have installed mongodb through homebrew then you can simply start mongodb through (mongodb-community if installted mongodb-community

brew services start mongodb

OR

brew services start mongodb-community

Then access the shell by

mongo

You can shut down your db by

brew services stop mongodb

You can restart your db by

brew services restart mongodb

For more options

brew info mongodb

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)