TiDB Cloud is a fully-managed Database-as-a-Service (DBaaS) powered by TiDB, bringing a MySQL-compatible serverless hybrid transaction/analytics processing (HTAP) cloud database, to your business. It handles complex tasks such as infrastructure management and cluster deployment for you. Other features include:
This integration will allow you to connect an existing TiDB Cloud cluster to your Vercel project(s). If you don't have a cluster yet, follow the official documentation to create one.
After you have completed the integration setup and successfully connected a TiDB Cloud cluster to your Vercel project(s), the information necessary to connect the TiDB Cloud cluster are set in the projects' environment variables.
Necessary information to connect a TiDB Cloud cluster, host
, port
, user
and password
are set in the following variables:
TIDB_HOST TIDB_PORT TIDB_USER TIDB_PASSWORD
For TiDB Dedicated clusters, there is another variable:
TIDB_SSL_CA
This variable holds the content of the root certificate, which issues TiDB Dedicated clusters' certificates, in Privacy Enhanced Mail (PEM) format.
We've also provided a convenient variable for Prisma framework:
DATABASE_URL