HTAP hottest distributed database TiDB - introductory hands-on tutorials

 

 

In a blog entry by chance saw TiDB, a fusion of OLTP and OLAP distributed open source database,

Star on GitHub lot, then watch, and found that commit and pull request has been very frequent.

Later we see  the application in practice TiDB millet , more and more interested in a trial late next whim.

 

Shining  official document  , Mac is easy to deploy with Docker Compose, about half an hour up the deployment,

The default cluster Grafana monitoring page quite the geek fan, also support change theme.

In addition to the first time a module download failed (FQ after successful), but did not encounter other problems.

 

Corresponding introductory tutorial is still lacking, Java was originally thinking about what to even drive,

JDBC to find that the driver did not find the corresponding TiDB, Maven warehouse only three other jar package,

From behind  a blog post  to see the direct use of mysql-jdbc-connector on the line.

 

There is a small pit is TiDB of a service using port 8080,

Cause I can not start APIJSON Server Access API.

 

Then I put the port into the Server 8081 on it.

 

Database management software can be directly used MySQLWorkbench, DataGrip (Navicat not try),

Importing some  of MySQL sql file with  APIJSON  changed configuration even under the direct access to successful,

Repeatedly generate documentation, automated testing did not find Sha problem, and the direct use of original MySQL result of the same,

MySQL compatibility initial feeling of doing really good, finally understand why not call TiSQL and called the TiDB.

代码也没啥要改的,就加了换端口的代码,以及在 DemoSQLConfig 写了配置 TiDB 的注释。

https://github.com/APIJSON/APIJSON/blob/fb9c267a45d4ab7b84812a09a1db86fbb82835f9/APIJSON-Java-Server/APIJSONBoot/src/main/java/apijson/demo/server/DemoSQLConfig.java

运气好的话,可能这是国内第一个从 API 到 TiDB 的完整开源项目了,想想就有点激动呢。

 

 

创作不易,GitHub 右上角点 ⭐Star 支持下吧,谢谢^_^

https://github.com/APIJSON/APIJSON/

Guess you like

Origin www.cnblogs.com/tommylemon/p/11281018.html