错误:在连接mongodb的Windows上没有Unix套接字支持 [英] Error : No unix socket support on windows connecting mongodb
问题描述
我正在使用robomongo工具访问mongodb.当我连接到数据库时,
I'm using robomongo tool to access mongodb. When I connect into my db then
显示错误详细信息
如何解决?
推荐答案
我遇到了同样的问题,并且能够通过删除连接标签中的完整网址(例如:mongodb://myuser:mypassword@mongodb-test.mydomain.com/my_database
)并仅将mongodb服务器网址:mongodb-test.mydomain.com
.
I had the same issue and was able to fix it by removing the full url (for example: mongodb://myuser:mypassword@mongodb-test.mydomain.com/my_database
) in the connection tab and only putting in the mongodb server url: mongodb-test.mydomain.com
.
接下来,在身份验证"选项卡中,我选中了执行身份验证"复选框,指定了数据库,用户名和密码.
Next, in the Authentication tab, I checked the Perform authentication checkbox, specified the Database, user name, password.
我也将数据库添加到了高级"选项卡中,以防万一,现在我可以正常连接了.
I also added the database in the Advanded tab just in case and I can now connect without error.
这篇关于错误:在连接mongodb的Windows上没有Unix套接字支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!