为什么Datagrip连接Redis不正确?

huangapple go评论49阅读模式
英文:

why datagrip connect redis not correct?

问题

当我在bash中连接到Redis时,Redis中有两个键。
在bash中
当我在Datagrip中连接到Redis时,Redis中没有键。
默认的数据库都是0。
在Datagrip中
在Datagrip中

如何在Datagrip中连接到正确的数据库?

英文:

When I connect to redis in bash, there is two keys in redis.
in bash
When I connect to redis in Datagrip, there is no keys in redis.
The default db is both 0.
in Datagrip
in Datagrip

How do I connect the right db in datagrip?

答案1

得分: 2

你写了 keys*;

但是在Redis中,分号不是一个分隔符。

因此,不是使用模式 *(表示“任何”),而是使用模式 *;,并且找不到任何内容。

你需要写一个干净的命令:keys *

英文:

You wrote keys*;.

But the semicolon is not a separator in Redis.

As a result, instead of the pattern * (meaning "any"), the pattern *; is used and nothing is found.

You need to write a clean command: keys *.

huangapple
  • 本文由 发表于 2023年7月3日 11:02:18
  • 转载请务必保留本文链接:https://go.coder-hub.com/76601620.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定