当前位置:网站首页>How to connect tdengine with idea database tool?
How to connect tdengine with idea database tool?
2022-07-25 08:48:00 【Tdengine】
Two years ago. , We have an article Blog Introduced how to pass IDEA database Tool connection TDengine, But this time TDengine、taos-jdbcdriver With a lot of iterative updates ,JDBC Connector Has gone from TDengine Independent from the warehouse . Some users in the community say they are using IDEA database Connect TDengine When an error , therefore , We decided to write a new article about IDEA Database management tool connection TDengine The article . This blog is based on the current 2.0.39 Version of JDBC Connector For example , Introduce how to compile with source code 、 pack , And how to use it IDEA Database tool connection TDengine.
Source code compilation JDBC-Connector
- First of all, from the GitHub Warehouse clones JDBC Connector source code ,
git clone GitHub - taosdata/taos-connector-jdbc: Connecting Java Application With a TDengine Database.( Need old version can -b Specify the corresponding version Branch ), Or set up :

- stay taos-connector-jdbc Execute under directory :mvn clean package -Dmaven.test.skip=true


Use IDEA database Connect TDengine
- open IDEA database Tools , Add... To the driver target Under folder taos-jdbcdriver-2.0.39-dist.jar.
- choice RESTful Way to connect ( Be careful : Use com.taosdata.jdbc.TSDBDriver Driver class needs to be installed TDengine client ).

- Then create the data source through the driver .TDengine Of JDBC URL The specification is :
jdbc:[TAOS|TAOS-RS]://[host_name]:[port]/[database_name]?[user={user}|&password={password}|&charset={charset}|&cfgdir={config_dir}|&locale={locale}|&timezone={timezone}] - Use RESTful Connect , here URL An example is :
jdbc:TAOS-RS://VM-24-8-centos:6041/log( The domain name used here needs to be in Hosts Add parsing in the file ;URL Internal locale、timezone Parameter in RESTful Not effective in connection )

- Click test connection , The yellow exclamation point does not affect the use .

- After the configuration , Right click the data source , Create a new query console to test whether you can query . It should be noted that ,RESTful Request is stateless , Inquire about 、 When writing, you need to bring the database name before the table name :

- 2.X The default in the version is log library , have access to
SHOW log.stablesQuery specific tables after checking which super tables are included 、 debugging .
Thank you for reading this blog , I hope the above is helpful to you . You are using TDengine This kind of TIme Series Database In the process of , If you encounter a difficult problem or have a problem with TDengine There are suggestions for improvement , Welcome to the GitHub Let's talk about Issue , The more detailed the content, the better , Can also be vx Add small T (tdengine) Join the community for friends , Communicate with you ~ Last , Thank you for using TDengine!
Want to know more TDengine Database Specific details of , Welcome to GitHub View the relevant source code on .
边栏推荐
- 聊下自己转型测试开发的历程
- Swift initializer and optional chain
- 华为设备远程登录(Telnet、SSH)配置
- Huawei device remote login (Telnet, SSH) configuration
- When easyexcel uses converter conversion to inject nullpoint exception
- Wechat sports ground reservation applet graduation design of applet completion works (2) applet function
- 51单片机外设篇:蜂鸣器
- SSM+JSP+MYSQL实现的宠物领养收养管理系统源码
- Wechat applet ordering system graduation design of applet completion works (8) graduation design thesis template
- JD cloud and Forrester consulting released a hybrid cloud report that cloud Nativity has become a new engine driving industrial development
猜你喜欢

Mongodb database

TCGA simple download tool V16 installation error

Wechat sports ground reservation applet graduation design of applet completion works (2) applet function

阿里云服务的网络解决方案

The international summit osdi included Taobao system papers for the first time, and end cloud collaborative intelligence was recommended by the keynote speech of the conference

YOLOV5环境配置

Talk about your transformation test development process

智能运维场景解析:如何通过异常检测发现业务系统状态异常

Wechat reservation applet graduation design of applet completion works (3) background function

Solve the syntaxerror: unexpected end of JSON input
随机推荐
@Implementation principle of Autowired annotation
公寓报修系统(IDEA,SSM,MySQL)
C语言基础
Wechat sports ground reservation applet graduation project of applet completion works (1) development outline
The fifth day of MATLAB learning (cycle type)
Blue and white porcelain used by Charles
OpenGL es to achieve the effect of "big head, small head" and "head shaking"
哈希表刷题(上)
Wechat sports ground reservation applet graduation design of applet completion works (2) applet function
Wechat reservation applet graduation design of applet completion works (2) applet function
51 single chip microcomputer controls nixie tube display
SSM+JSP+MYSQL实现的宠物领养收养管理系统源码
机器人跳跃问题
25 Ph.D. degrees revoked
技术面②Mysql中的索引(index)类型有哪些并简要介绍一下?什么时候需要创建索引?什么时候不需要创建索引?为什么创建索引后查询速度会提高?
CIR industrial automation radar
Wechat reservation of small program completion works (5) assignment book of small program graduation project
Initial knowledge of WebService (generate jar packages and call methods in remote services)
Database query optimization
Wechat Reservation Reservation of applet completion works applet graduation project (8) graduation project thesis template