Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
DATABASE_URL=mysql://<user>:<password>@<host>:<port>/<name>
DATABASE_URL='mysql://{user}:{password}@{host}:{port}/{name}'

# Example 1: Connect to TiDB Self-Hosted cluster
# DATABASE_URL=mysql://root@localhost:4000/test
# DATABASE_URL='mysql://root@localhost:4000/test'

# Example 2: Connect to TiDB Serverless cluster
#
# **TLS connection is required for Public Endpoint.**
# To enable TLS (SSL) connection, add the parameter `?sslaccept=strict` to the connection string.
#
# DATABASE_URL=mysql://talent_id.root:[email protected]:4000/test?sslaccept=strict
# DATABASE_URL='mysql://{talent_id}.root:{password}@gateway01.us-west-2.prod.aws.tidbcloud.com:4000/test?sslaccept=strict'

# Example 3: Connect to TiDB Dedicated cluster
#
# **TLS connection is optional but recommened for Public Endpoint.**
# To enable TLS (SSL) connection when connecting, you need to add the parameter `?sslaccept=strict` to the connection string,
# and specify the file path of the CA certificate via `&sslcert=/path/to/ca.pem`.
#
# DATABASE_URL=mysql://root:[email protected]_name.clusters.tidb-cloud.com:4000/test?sslaccept=strict&sslcert=/path/to/ca.pem
# DATABASE_URL='mysql://root:[email protected]_name.clusters.tidb-cloud.com:4000/test?sslaccept=strict&sslcert=/path/to/ca.pem'