当前位置:网站首页>How to operate redis on the IntelliJ idea database console
How to operate redis on the IntelliJ idea database console
2022-06-22 21:28:00 【Flybook Technology】
TIPS
- This theory supports IntelliJ IDEA Family owned IDE( for example Data Grip etc. )、 All versions
- The theory supports all based on JDBC Various GUI Tools !
Recently at work , Always operate to Redis, Despite the market Redis client GUI A lot , for example Redis Desktop Manager、AnotherRedisDesktopManager etc. .
But I am a IDEA flow , I hope I can IDEA Operate on the console Redis, So as to obtain a consistent R & D experience , You don't have to cut around the windows .
therefore , I try to find out if there is a suitable Redis plug-in unit , The result is either a charge , Or the experience is poor ; next , I also want to know about the official response to Redis Support intention , After seeing the following post , The heart is also cold .
- Redis support : For the most part , Officials say the plan is to IDEA 2022 Version supports , However ,IDEA 2022 When it will be released is unknown .
here , It occurred to me that ,IDEA The database console allows you to use JDBC Drive to connect to any database , Then all I have to do is Redis To write JDBC drive , You can achieve your goal !
Redis JDBC
Do as you say , It took a day and a half , Wrote a Redis JDBC drive , Address :GitHub - eacdy/redis-jdbc , This is a base Jedis Of Redis JDBC drive , Allow us to use JDBC operation Redis And Redis Cluster, Support Jedis All commands supported .
Let's discuss how to IDEA use Redis JDBC link Redis.
TIPS
Here we use Redis JDBC 0.0.1 For example , When a new version is released in the future , Just change the version number in the connection .
Prepare the driver file
- Go to [repo1.maven.org/maven2/com/…] , Download the driver file
To configure IDEA Connect Redis
- Go to IDEA - Database - Click on the plus sign - Click on Driver and Data Source
- Click on User Driver - Click on Go to Driver, Here's the picture
- In the pop-up driver configuration page , Operate according to the following figure . among :
- Name: Is the driver name , Write casually , You can understand it yourself
- Click on the plus sign , Add the driver you just downloaded JAR Package file
- After adding JAR After package , Click on Class The drop-down menu on the right , You can see the driver class name . among ,RedisDriver Used to connect to the stand-alone version Redis,RedisClusterDriver Used to connect Redis Cluster
- Click... In the upper left corner of the figure above Data Sources, Continue configuring the data source , Operate according to the following figure . among :
- Name: The name of the data source , Write casually , You can understand it yourself
- URL: Connect Redis The address of . If a single machine is connected Redis, Please use
jdbc:redis://{hostname}:{port}/{dbIndex}In the form of ; If connected Redis Cluster, Please usejdbc:redis-cluster:///{hostname1}:{port1};{hostname2}:{port2};{hostname3}:{port3}In the form of , See redis-jdbc README . If you have an account number or password or something , Fill in as needed , I have no account number and password, so I left it blank
- Click on Test Connection, Test whether the configuration is normal . Click on Apply OK that will do .
Use
In turn, the operating :
- Click the data source just created
- Click on QL Button
- Click on New Query Console
- On the left side. Console Written in Redis Instructions , Currently all instructions are supported
- Click the execute button
such , You can see the results below !
Have a good time , Welcome to use 、Star、Follow、 Give me a request !
边栏推荐
- 长安旗下阿维塔科技增资扩股落定:宁德时代将持股约24%!
- 【138. 复制带随机指针的链表】
- las 点云创建网格
- 杰理之开启四声道通话近端卡顿问题【篇】
- 80- paging query, not only writing
- 513. find the value in the lower left corner of the tree / Sword finger offer II 091 Paint the house
- 第032讲:异常处理:你不可能总是对的 | 课后测试题及答案
- 第026讲:字典:当索引不好用时2 | 课后测试题及答案
- 优化求解器 | Gurobi的MVar类:矩阵建模利器、求解对偶问题的备选方案 (附详细案例+代码)
- 5分钟快速上线Web应用和API(Vercel)
猜你喜欢
![[redis] publish and subscribe](/img/50/0c2fbbb8f56fccdd3222b77efdd723.png)
[redis] publish and subscribe

2022 a special equipment related management (elevator) examination questions and simulation examination
![[redis] three new data types](/img/ce/8a048bd36b21bfa562143dd2e47131.png)
[redis] three new data types

【21. 合并两个有序链表】

Flutter System Architecture(Flutter系统架构图)
![[redis]Redis6的主从复制](/img/47/3be33a0d7435bd75cdd6e7b4ea51d4.png)
[redis]Redis6的主从复制
![[redis]配置文件](/img/1c/05c06d59c9efb5983f877822db333c.png)
[redis]配置文件

RealNetworks vs. 微软:早期流媒体行业之争

ICML2022 | 利用虚拟节点促进图结构学习
![[redis] cluster and common errors](/img/a5/94906b62b1ec0d549f9b72ff3db7f2.png)
[redis] cluster and common errors
随机推荐
万字长文 | 使用 RBAC 限制对 Kubernetes 资源的访问
73- find the SQL example during the business peak period (report development class)
Baijia forum in the 13th year of Yongzheng (lower part)
杰理之硬件上 DACL 输出,DAC 输出左右声道的声音【篇】
百家讲坛 黄帝内经(第一部)
第020讲:函数:内嵌函数和闭包 | 课后测试题及答案
[book delivery at the end of the article] AI has spread all over the Internet to color old photos. Here is a detailed tutorial!
[redis]Redis6的主从复制
Correspondence between int and char in C language
第016讲:序列 | 课后测试题及答案
杰理之使用 DP 和 DM 做 IO 按键检测注意点【篇】
杰理之MUSIC 模式获取播放文件的目录【篇】
Apple corefoundation source code
Learning websites that programmers must see
嵌入式开发基础之任务管理(线程管理)
84- I am on Internet & lt; 52 SQL statement performance optimization strategies & gt; Some views of
【20. 有效的括号】
win10安装.net3.5.docx
Fluent system architecture
软考必备资料大放送,全科目软考资料都给你备好了!