intellij datagrip 不打开 mongo 集合

Posted

技术标签:

【中文标题】intellij datagrip 不打开 mongo 集合【英文标题】:intelij datagrip doesn't open mongo collection 【发布时间】:2019-06-08 11:17:26 【问题描述】:

自上次更新 datagrip 2019.1.3 以来,datagrip 不再打开 mongo 集合。

双击任何集合会加载集合的概览,但不会加载数据视图。

数据库连接成功,mongo shell等一切正常,但是数据没有显示出来。

这是 datagrip 日志的摘录

2019-06-08 13:11:10,907 [ 680986]   INFO -     org.mongodb.driver.cluster - Cluster created with settings hosts=[localhost:27017], mode=MULTIPLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=500 
2019-06-08 13:11:10,907 [ 680986]   INFO -     org.mongodb.driver.cluster - Adding discovered server localhost:27017 to client view of cluster 
2019-06-08 13:11:10,908 [ 680987]   INFO -     org.mongodb.driver.cluster - Cluster description not yet available. Waiting for 30000 ms before timing out 
2019-06-08 13:11:10,911 [ 680990]   INFO -  org.mongodb.driver.connection - Opened connection [connectionIdlocalValue:33, serverValue:143] to localhost:27017 
2019-06-08 13:11:10,911 [ 680990]   INFO -     org.mongodb.driver.cluster - Monitor thread successfully connected to server with description ServerDescriptionaddress=localhost:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersionversionList=[4, 0, 6], minWireVersion=0, maxWireVersion=7, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=523564 
2019-06-08 13:11:10,912 [ 680991]   INFO -     org.mongodb.driver.cluster - Discovered cluster type of STANDALONE 
2019-06-08 13:11:10,914 [ 680993]   INFO -  org.mongodb.driver.connection - Opened connection [connectionIdlocalValue:34, serverValue:144] to localhost:27017 
2019-06-08 13:11:10,917 [ 680996]   INFO -  org.mongodb.driver.connection - Closed connection [connectionIdlocalValue:34, serverValue:144] to localhost:27017 because the pool has been closed. 

几个月前我遇到了同样的错误,当时只是回滚版本有帮助,但现在无论我将 datagrip 回滚到什么,集合的数据都不再显示。我已经重新启动了我的 mac,使缓存失效并重新启动了 datagrip(多次)。没有任何帮助。

如何让我的高价产品像高价产品一样工作?

【问题讨论】:

你使用MongoDB插件吗?看起来这是已知插件的问题:github.com/dboissier/mongo4idea/issues/270 【参考方案1】:

我会尝试 JetBrains 的最新 EAP。自 2019 年 10 月 4 日起,它们还支持简单的 MongoDB 交互。 您可以通过2019.3 EAP page 了解更多信息。

查看 MongoDB 的另一种方法是 Robo 3T。这在非工作室版本中也是免费的。

编辑: 现在 Jetbrains Datagrip 原生支持 MongoDB。

【讨论】:

以上是关于intellij datagrip 不打开 mongo 集合的主要内容,如果未能解决你的问题,请参考以下文章

Intellij/Datagrip 通过旧版 uuid 查询 mongo

重置 Intellij / DataGrip 2020.1 字体更改

在 Intellij Idea 或 Datagrip 中更改语句分隔符,如 Squirrel

DataGrip/PhpStorm 未连接到 MySQL DB,错误:com.intellij.execution.ExecutionException

Ubuntu 16.04安装IntelliJ出品的数据库管理工具DataGrip

如何在 Intellij / DataGrip Mongo DB Shell 中设置显示 20 多个结果