一、 免费试用tidbitcloud
TiDB Cloud Documentation | PingCAP Docs

1.github账号登录
2.创建集群
3.点击对应集群cludter0 导入数据

 导入
本地导入只支持csv文件,其他导入需要AWZ账号使用S3云存储

二、连接spingboot项目
选择java,复制下面的jdbc

url: jdbc:mysql://4WhR8B7gngmY5Wq.root:H8SjBNHxra@gateway01.ap-southeast-1.prod.aws.tidbcloud.com:4000/lyhms_kf?characterEncoding=UTF-8&useUnicode=true&useSSL=true&serverTimezone=UTC&ssl-ca=D:/Downloads/isrgrootx1.pem
    username: 4WhR8B7gngmY5Wq.root
    password: H8SjBNHZnnb 
    <dependency>
        <groupId>io.github.lastincisor</groupId>
        <artifactId>mysql-connector-java</artifactId>
        <version>8.0.29-tidb-1.0.0</version>
    </dependency>
    <dependency>
            <groupId>io.github.lastincisor</groupId>
            <artifactId>tidb-loadbalance</artifactId>
            <version>0.0.5</version>
    </dependency> 
                


















