错误:Windows 上没有 unix 套接字支持连接 mongodb [英] Error : No unix socket support on windows connecting mongodb

查看:22
本文介绍了错误:Windows 上没有 unix 套接字支持连接 mongodb的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 robomongo 工具访问 mongodb.当我连接到我的数据库时

I'm using robomongo tool to access mongodb. When I connect into my db then

显示错误详情

如何解决?

推荐答案

我遇到了同样的问题,并且能够通过删除完整的 url 来修复它(例如:mongodb://myuser:mypassword@mongodb-test.mydomain.com/my_database) 在连接选项卡中,只输入 mongodb 服务器 url: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.

这篇关于错误:Windows 上没有 unix 套接字支持连接 mongodb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆