I have an app developed using meteor.js; since locally it is ok, I would like now to move it to my dedicated server; I've installed mongodb 2.6 on the server following official doc; I've made a dump of my local app's db by using:
mongodump -h 127.0.0.1 --port 3001 -d meteor
and uploaded the dump folder to /var/www/mywebsite on my server;
mongodb is configured to use auth: true;
trying
mongorestore -h 127.0.0.1 --port 27017 -d mydbname dump/meteor
nothing is inserted (using mongo shell as root, the only databases I can see are local and admin)
my root mongodb user is created on admin db: (i've tried also):
mongorestore -h 127.0.0.1 --port 27017 --username root --password xxxxxx -d mydbname dump/meteor
{
"_id" : "admin.root",
"user" : "root",
"db" : "admin",
"roles" : [
{
"role" : "userAdminAnyDatabase",
"db" : "admin"
}
]
}
I would like to have a mongo user for the new database and restore it; after trying some different things I realized I'm not understanding how to do... Somebody can help with this?