MongoDB
 sql >> Datenbank >  >> NoSQL >> MongoDB

Wie lade ich Anfangsdaten in MongoDB?

./mongo server:27017/dbname --quiet my_commands.js

In my_commands.js:

db.users.insert({name:"john", email:"[email protected]", age:12});