How to export mlab database to meteor application -
i have created mlab database. unable export meteor application.everytime try connect, throws error "mongoerror: failed connect server [ds035693.mlab.com:35693] on first connect".command using
"export mongo_url= mongodb://<dbuser>:<dbpassword>@ds035693.mlab.com:35693/abcd"
i think don't need " " around export. put in terminal
export mongo_url= mongodb://<dbuser>:<dbpassword>@ds035693.mlab.com:35693/abcd
replace id , password.
and console.log(process.env);
in startup function check if mongo_url set or not. if set. may network issue.
you may forgot add database user
in user
tab collection in mlab.
hope help
Comments
Post a Comment