From 9e236d1e7b0244cfa4a7cb3bdc03c699075e7efb Mon Sep 17 00:00:00 2001 From: HOHO <591310381@qq.com> Date: Thu, 11 Jan 2024 13:02:26 +0800 Subject: [PATCH] Update .env.example --- .env.example | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.env.example b/.env.example index 6e19881..5c16e7d 100644 --- a/.env.example +++ b/.env.example @@ -1,14 +1,14 @@ -DATABASE_URL=mysql://:@:/ +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:password@gateway01.us-west-2.prod.aws.tidbcloud.com: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 # @@ -16,4 +16,4 @@ DATABASE_URL=mysql://:@:/ # 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:password@tidb.cluster_name.clusters.tidb-cloud.com:4000/test?sslaccept=strict&sslcert=/path/to/ca.pem +# DATABASE_URL='mysql://root:password@tidb.cluster_name.clusters.tidb-cloud.com:4000/test?sslaccept=strict&sslcert=/path/to/ca.pem'