当前位置:网站首页>How to connect DBeaver TDengine?
How to connect DBeaver TDengine?
2022-08-02 13:13:00 【51CTO】
DBeaver is a popular, open source database management tool and SQL client that is powerful and supports any database with a JDBC-Driver (which means almost any database).
The introduction of its official website is as follows:
Free multi-platform database tool for developers, database administrators, analysts and all people who need to work with databases. Supports all popular databases: MySQL, PostgreSQL, SQLite, Oracle, DB2, SQL Server, Sybase, MS Access, Teradata, Firebird, Apache Hive, Phoenix, Presto, etc.
Many TDengine users often ask how to use DBeaver to connect and manage TDengine.This article will be explained in detail with DBeaver version 22.1.2.
Preconditions
- DBeaver depends on Java (JDK) 11, but it is included in the installation package.Optionally install Maven, Git.
- TDengine is installed and started.
- If you use the TSDBDriver driver class to connect to TDengine, please install the TDengine client locally.
- If you use RestfulDriver to connect to TDengine, please make sure that taosAdapter is running normally.
Configuration
- You can clone the source code of DBeaver on GitHub, execute mvn package, or directly download the packaged installation package.Here, choose to download the installation package directly.
- Releases to download the corresponding version of DBeaver. For example, the system is macOS and the processor chip is M1. Download dbeaver-ce-22.1.2-macos-aarch64.dmg here for installation.
- Click on the Database tab and select the driver manager:

Create a new driver and select the compiled dist-jar driver package, the driver package can be downloaded or compiled and packaged by yourself, please refer to IDEA Blog: 
After adding, click to find the class, use the RESTful driver class demo here (Note: If you use the com.taosdata.jdbc.TSDBDriver driver class, you need to install the TDengine client):
Fill in the driver name and simply fill in the configuration (you need to add the resolution of the domain name in the connection string to the hosts file): 
Click New Connection, search for the configured driver name, click to go to the next step:
After entering the password, click "Test Connection":
Authentication
After the connection is successful, you can see the refreshed database on the left side of the interface. Click on a specific table to view the structure and data of the table: 
Click the new SQL editor at the top left of the interface, by default, enter SQL for verification.It should be noted that RESTful requests are stateless, and queries and writes require the database name before the table name.
2.X version comes with log library by default, we can use SHOW log.stables; query and debug specific tables after checking which super tables are included:
You can see that there is a super table called dnodes_info, execute describe log.dnodes_info; view table structure:
Then execute select last_row(*) from log.dnodes_info group by dnode_id; the latest data under each dnode_id can be grouped by dnode_id:
There are other operations that can also be tested, such as writing a piece of data and querying:
Well, here we are done.DBeaver has powerful functions. Other common functions include importing and exporting SQL scripts, configuring table filters, creating database tasks, etc. You can experience it slowly.
Thank you for reading this blog, I hope the above is helpful.You are using TDengine In the process of this Time Series Database, if you encounter difficult problems or have suggestions for improvement of TDengine, welcome to GitHub to give us an Issue. The more detailed the content, the better. You can also add a small T (tdengine) to vx.) Join the community for friends and communicate with everyone~ Finally, thank you for using TDengine!
边栏推荐
- RESTful 风格(详细介绍 + 案例实现)
- Closures in JS
- 基于华为eNSP的企业网络规划
- String concatenation in SQL
- MFC入门教程(深入浅出MFC)
- js秒表倒计时插件
- 汉源高科千兆12光12电管理型工业以太网交换机 12千兆光12千兆电口宽温环网交换机
- How to implement waterfall flow layout (what is waterfall flow layout)
- SQL Server 2019 installation error 0 x80004005 service there is no timely response to the start or control request a detailed solution
- LeetCode_139_word split
猜你喜欢
随机推荐
RESTful 风格(详细介绍 + 案例实现)
Do you know Dijkstra of graph theory?
selenium chrome driver运行时的cannot determine loading status from target frame detached问题
使用Amazon SageMaker 构建基于自然语言处理的文本摘要应用
Oracle update误操作单表回滚
SQL Server 2014 installation tutorial (nanny-level graphic tutorial)
无线振弦采集仪远程修改参数方式
【C语言】剖析函数递归(3)
Intouch Historian历史曲线配置导入导出
智能手表前景如何?
微信小程序getPhoneNumber接口code=40013
分享一个Chrome控制台数据获取的例子
Redis all
Taurus.MVC V3.0.3 微服务开源框架发布:让.NET 架构在大并发的演进过程更简单。
【C语言】虐打循环练习题(2)
A powerful js pop-up alert plugin
.Net 5.0 Quick Start Redis
机器人碰撞检测方法形式化
【typescript】使用antd中RangePicker组件实现时间限制 当前时间的前一年(365天)
鲁大师7月新机性能/流畅榜:性能跑分突破123万!








