![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mongodb
cuicui_ruirui
这个作者很懒,什么都没留下…
展开
-
Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Erro
问题:在cmd中mongodb的bin目录下输入mongo时,报错Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: ����Ŀ�����������ܾ...原创 2020-05-06 10:42:44 · 5454 阅读 · 0 评论 -
pymongo.errors.ServerSelectionTimeoutError: localhost:27017: [WinError 10061] 由于目标计算机积极拒绝,无法连接。
原因在PyCharm中调用MongoDB数据库时,由于没有启动本地的MongoDB服务引起。解决方法1.首先通过win+R打开命令行窗口,输入cmd打开命令行窗口,到文件夹找到mongodb的bin目录,并复制该路径。在cmd中cd到这个路径下。如下图2.输入mongod.exe --nojournal --dbpath .(注意–dbpath后面有个点)如下图:...原创 2020-05-05 18:42:27 · 4819 阅读 · 0 评论 -
MongoDB安装过程中出现service MongoDB failed to start,verify that you have sufficient privileges to start...
win10系统下,安装MongoDB 64位,service MongoDB failed to start,verify that you have sufficient privileges to start system services这是报错信息,上个图,解决办法:一、直接点Ignore(忽略),然后进入安装MongoDB的目录下,进入data,新建一个文件夹然后命名为db。...原创 2020-05-02 20:57:50 · 927 阅读 · 1 评论