diff --git a/develop/dev-guide-sample-application-ruby-mysql2.md b/develop/dev-guide-sample-application-ruby-mysql2.md index 86aa9f4a4d97f..7f1703742095f 100644 --- a/develop/dev-guide-sample-application-ruby-mysql2.md +++ b/develop/dev-guide-sample-application-ruby-mysql2.md @@ -99,15 +99,15 @@ Connect to your TiDB cluster depending on the TiDB deployment option you've sele cp .env.example .env ``` -6. Edit the `.env` file, set up the environment variables as follows, and replace the corresponding placeholders `<>` with connection parameters in the connection dialog: +6. Edit the `.env` file, set up the environment variables as follows, and replace the corresponding placeholders `{}` with connection parameters in the connection dialog: ```dotenv - DATABASE_HOST={host} - DATABASE_PORT=4000 - DATABASE_USER={user} - DATABASE_PASSWORD={password} - DATABASE_NAME=test - DATABASE_ENABLE_SSL=true + DATABASE_HOST={host} + DATABASE_PORT=4000 + DATABASE_USER={user} + DATABASE_PASSWORD={password} + DATABASE_NAME=test + DATABASE_ENABLE_SSL=true ``` > **Note** @@ -133,7 +133,7 @@ Connect to your TiDB cluster depending on the TiDB deployment option you've sele cp .env.example .env ``` -5. Edit the `.env` file, set up the environment variables as follows, and replace the corresponding placeholders `<>` with connection parameters in the connection dialog: +5. Edit the `.env` file, set up the environment variables as follows, and replace the corresponding placeholders `{}` with connection parameters in the connection dialog: ```dotenv DATABASE_HOST={host} @@ -162,7 +162,7 @@ Connect to your TiDB cluster depending on the TiDB deployment option you've sele cp .env.example .env ``` -2. Edit the `.env` file, set up the environment variables as follows, and replace the corresponding placeholders `<>` with your own TiDB connection information: +2. Edit the `.env` file, set up the environment variables as follows, and replace the corresponding placeholders `{}` with your own TiDB connection information: ```dotenv DATABASE_HOST={host} diff --git a/develop/dev-guide-sample-application-ruby-rails.md b/develop/dev-guide-sample-application-ruby-rails.md index f71aaaa9a8842..51f7734019f1e 100644 --- a/develop/dev-guide-sample-application-ruby-rails.md +++ b/develop/dev-guide-sample-application-ruby-rails.md @@ -146,7 +146,7 @@ Connect to your TiDB cluster depending on the TiDB deployment option you've sele cp .env.example .env ``` -2. Edit the `.env` file, set up the `DATABASE_URL` environment variable as follows, and replace the ``, ``, ``, ``, and `` with your own TiDB connection information: +2. Edit the `.env` file, set up the `DATABASE_URL` environment variable as follows, and replace the `{user}`, `{password}`, `{host}`, `{port}`, and `{database}` with your own TiDB connection information: ```dotenv DATABASE_URL=mysql2://{user}:{password}@{host}:{port}/{database}