当前位置:网站首页>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 .
边栏推荐
- Dependency conflict resolution under idea
- @Principle of Autowired annotation
- Apartment repair reporting system (idea, SSM, MySQL)
- [Sesame Street family] & Bert Bart Roberta
- 51 MCU internal peripherals: timer and counter
- Memcached data cache database (improve efficiency)
- 聊下自己转型测试开发的历程
- Idea2021 failed to start. Could not find main class com/intellij/idea/main
- C语言实现二叉平衡树
- [dark horse programmer] redis learning notes 003: redis transactions
猜你喜欢

R language error

Wechat reservation applet graduation project (7) mid term inspection report of applet completion works

Centernet network structure construction

The fifth day of MATLAB learning (cycle type)

Wechat reservation applet graduation design of applet completion works (1) development outline

JD cloud and Forrester consulting released a hybrid cloud report that cloud Nativity has become a new engine driving industrial development

51 MCU internal peripherals: serial port communication

Dependency conflict resolution under idea

Intelligent operation and maintenance scenario analysis: how to detect abnormal business system status through exception detection

Technical aspect ② what are the index types in MySQL and briefly introduce them? When do I need to create an index? When is it not necessary to create an index? Why does the query speed increase after
随机推荐
Solve the syntaxerror: unexpected end of JSON input
ip命令使用详解
Practice of establishing dynamic programming state transition equation
Centernet network structure construction
游戏外挂怎么做?
附加:在在下部分区/县(数据表)
@Principle of Autowired annotation
Use of lambdaquerywrapper, lambdaupdatewrapper, lambdaquerychainwrapper
Fundamentals of C language
智能运维场景解析:如何通过异常检测发现业务系统状态异常
FreeMaker模板引擎
记录两次多端排查问题的过程
Leetcode · 83 biweekly race · 6129. Number of all 0 subarrays · mathematics
Force buckle - 1046. Weight of the last stone
51 MCU internal peripherals: timer and counter
Graduation design of wechat small program ordering system of small program completion works (5) assignment
Nuscenes dataset 3D mot demo, end-to-end target detection and tracking, joint detection and tracking framework
[dark horse programmer] redis learning notes 003: redis transactions
Idea starts the project slowly
Redis learning notes