Step 1: Setup TiDB Serverless
Signup TiDB Cloud
Register for a TiDB Cloud account at https://tidbcloud.com/signup.
Create a serverless cluster
Create a serverless cluster in the TiDB Cloud dashboard.
- Make sure select
Serverless
inChoose a Tier
section; - Leave other as default;
Get connection info
Click
Connect
on top right;Select
Connect With
then you will see:host: 'gateway01.<your_region>.prod.aws.tidbcloud.com'
port: 4000,
user: 'xxxxxxxxxxxxxxx.root',
password: '<your_password>',