Mongolab connection error

让人想犯罪 __ 提交于 2019-12-10 20:20:17

问题


I'm getting the following message when I try connecting to MongoLab with the command:

mongo ds035438.mongolab.com:35438/comeventsbw -u (myusername) -p (mypassword)

MongoDB shell version: 3.0.6 connecting to: ds035438.mongolab.com:35438/comeventsbw 2015-12-10T10:30:18.537-0700 I STORAGE In File::open(), ::open for '/Users/benwong/.mongorc.js' failed with errno:13 Permission denied The ".mongorc.js" file located in your home folder could not be executed


回答1:


You can try to delete the root directory .mongorc.js file. To do this in mac OS you can use cd ~/&&ls -al, if you see .mongorc.js that is owned by root, so we can use sudo rm .mongorc.js to delete it.



来源:https://stackoverflow.com/questions/34208373/mongolab-connection-error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!