Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8860507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:16:49+00:00 2026-06-14T15:16:49+00:00

i am able to run mongodb in my apple console, and vim the mongo.log

  • 0

i am able to run mongodb in my apple console, and vim the mongo.log
right now, i just want to open up the mongodb console so that i can test queries in the console just like the examples in http://www.mongodb.org/display/DOCS/Tutorial

at the moment, the cursor is not returned:

> mongodb
all output going to :/usr/local/var/log/mongodb/mongo.log

and the cursor is not returned. i was expecting the cursor to be returned to so i can do the following :

 > mongodb
 all output going to :/usr/local/var/log/mongodb/mongo.log
 > test = {name : "bouncingHippo"}
 > db.family.save(test)
 > "ok"

What am i doing wrong? i am using mongoose

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T15:16:49+00:00Added an answer on June 14, 2026 at 3:16 pm

    I’m not entirely clear which console you are getting this output from, as the Node console won’t return anything usable if you just enter mongodb.

    If what you are trying to do is just launch a MongoDB console, you will need to first launch the mongod process and then attach to that process with the MongoDB console. The MongoDB console is called mongo. In the simplest test, you can launch mongod from one terminal window and then mongo from another. In the terminal window that is running mongo you can then work through the examples in the tutorial. Your pseudo code would then look like:

    MongoDB shell version: 2.2.1
    connecting to: 127.0.0.1:18070/test
    > test = {name : "bouncingHippo"}
    { "name" : "bouncingHippo" }
    > db.family.save(test)
    

    If you are trying to use Mongoose for the pseudo code you have in your question, it would be more like the following from the Node console (assuming Node.js and Mongoose are installed)

    var mongoose = require('mongoose');
    var db = mongoose.createConnection('mongodb://localhost/test');
    var testSchema = new mongoose.Schema({
        name: String
    })
    var Test = db.model('Test', testSchema)
    var test = new Test({ name: 'bouncinghippo' })
    test.save()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to model e-commerce product attributes that can be changed in run-time. So
I run a website that runs on a backend of nodeJS + mongoDB. Right
I have been able to run my C# .net 3.5 app just fine on
I want to be able to run Junit tests from the command line, but
I want to be able to run netstat -n and grab the output somehow
I'd like to be able to run a command that opens up a git
I want to run a data transformation / migration for MongoDB. I found the
I'm able to run a Cloudera Flume node on Windows but I can't get
I am already able to run the examples in the LibSVM package. Now i
I want to be able to run my Python project from the command line.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.