TiDB v6.5 Documentationand dotenv) for the sample app: npm install Install dependencies to existing project For your existing project, run the following command to install the packages: npm install mysql2 dotenv --save Step Step 4: Run the code and check the result Run the following command to execute the sample code: npm start If the connection is successful, the console will output the version of the TiDB cluster as dotenv �→ ) for the sample app: npm install Install dependencies to existing project For your existing project, run the following command to install the packages: npm install mysql dotenv --save Step0 码力 | 5282 页 | 99.69 MB | 1 年前3
TiDB v7.1 Documentationand dotenv) for the sample app: npm install Install dependencies to existing project For your existing project, run the following command to install the packages: npm install mysql2 dotenv --save Step Step 4: Run the code and check the result Run the following command to execute the sample code: npm start If the connection is successful, the console will output the version of the TiDB cluster as dotenv �→ ) for the sample app: npm install Install dependencies to existing project For your existing project, run the following command to install the packages: npm install mysql dotenv --save Step0 码力 | 5716 页 | 104.74 MB | 1 年前3
TiDB v7.6 Documentationand dotenv) for the sample app: npm install Install dependencies to existing project For your existing project, run the following command to install the packages: npm install mysql2 dotenv --save Step Step 4: Run the code and check the result Run the following command to execute the sample code: npm start 205 If the connection is successful, the console will output the version of the TiDB cluster dotenv �→ ) for the sample app: npm install 209 Install dependencies to existing project For your existing project, run the following command to install the packages: npm install mysql dotenv --save0 码力 | 6123 页 | 107.24 MB | 1 年前3
TiDB v7.5 Documentationand dotenv) for the sample app: npm install Install dependencies to existing project For your existing project, run the following command to install the packages: npm install mysql2 dotenv --save Step Step 4: Run the code and check the result Run the following command to execute the sample code: npm start If the connection is successful, the console will output the version of the TiDB cluster as dotenv �→ ) for the sample app: npm install Install dependencies to existing project For your existing project, run the following command to install the packages: npm install mysql dotenv --save Step0 码力 | 6020 页 | 106.82 MB | 1 年前3
TiDB v7.1 中文手册2 步:安装依赖 运行以下命令,安装示例代码所需要的依赖 (包括 mysql2 和 dotenv 依赖包): npm install 在你现有的项目当中,你可以通过以下命令安装 mysql2 和 dotenv 依赖包(dotenv 用于从 .env 文件中读取环 境变量): npm install mysql2 dotenv --save 第 3 步:配置连接信息 根据不同的 TiDB 部署方式,使用不同的方法连接到 TIDB_PASSWORD='{password}' TIDB_DATABASE='test' 3. 保存 .env 文件。 第 4 步:运行代码并查看结果 运行下述命令,执行示例代码: npm run start 预期输出结果: 如果连接成功,你的终端将会输出所连接集群的版本信息: � Connected to TiDB cluster! (TiDB version: 5.7.25-TiDB-v7 2 步:安装依赖 运行以下命令,安装示例代码所需要的依赖 (包括 mysql 和 dotenv 依赖包): npm install 在你现有的项目当中,你可以通过以下命令安装 mysql 和 dotenv 依赖包(dotenv 用于从 .env 文件中读取环 境变量): npm install mysql dotenv --save 第 3 步:配置连接信息 根据不同的 TiDB 部署方式,使用不同的方法连接到0 码力 | 4369 页 | 98.92 MB | 1 年前3
TiDB v8.1 Documentationand dotenv) for the sample app: npm install Install dependencies to existing project For your existing project, run the following command to install the packages: npm install mysql2 dotenv --save Step Step 4: Run the code and check the result Run the following command to execute the sample code: npm start If the connection is successful, the console will output the version of the TiDB cluster as dotenv �→ ) for the sample app: npm install Install dependencies to existing project For your existing project, run the following command to install the packages: npm install mysql dotenv --save Step0 码力 | 6321 页 | 107.46 MB | 1 年前3
TiDB v6.5 中文手册步:安装依赖 运行以下命令,安装示例代码所需要的依赖 (包括 mysql2 和 dotenv 依赖包): npm install 在你现有的项目当中,你可以通过以下命令安装 mysql2 和 dotenv 依赖包(dotenv 用于从 .env 文件中读取环 境变量): 163 npm install mysql2 dotenv --save 第 3 步:配置连接信息 根据不同的 TiDB TIDB_PASSWORD='{password}' TIDB_DATABASE='test' 3. 保存 .env 文件。 第 4 步:运行代码并查看结果 运行下述命令,执行示例代码: npm run start 预期输出结果: 如果连接成功,你的终端将会输出所连接集群的版本信息: 165 � Connected to TiDB cluster! (TiDB version: 5 2 步:安装依赖 运行以下命令,安装示例代码所需要的依赖 (包括 mysql 和 dotenv 依赖包): npm install 在你现有的项目当中,你可以通过以下命令安装 mysql 和 dotenv 依赖包(dotenv 用于从 .env 文件中读取环 境变量): npm install mysql dotenv --save 第 3 步:配置连接信息 根据不同的 TiDB 部署方式,使用不同的方法连接到0 码力 | 4049 页 | 94.00 MB | 1 年前3
TiDB v8.0 Documentationand dotenv) for the sample app: npm install Install dependencies to existing project For your existing project, run the following command to install the packages: npm install mysql2 dotenv --save Step Step 4: Run the code and check the result Run the following command to execute the sample code: npm start If the connection is successful, the console will output the version of the TiDB cluster as dotenv �→ ) for the sample app: npm install Install dependencies to existing project For your existing project, run the following command to install the packages: npm install mysql dotenv --save Step0 码力 | 6327 页 | 107.55 MB | 1 年前3
TiDB v8.5 Documentationand dotenv) for the sample app: npm install Install dependencies to existing project For your existing project, run the following command to install the packages: npm install mysql2 dotenv --save Step Step 4: Run the code and check the result Run the following command to execute the sample code: npm start 227 If the connection is successful, the console will output the version of the TiDB cluster dotenv �→ ) for the sample app: npm install 231 Install dependencies to existing project For your existing project, run the following command to install the packages: npm install mysql dotenv --save0 码力 | 6730 页 | 111.36 MB | 10 月前3
TiDB v8.2 Documentationand dotenv) for the sample app: npm install Install dependencies to existing project For your existing project, run the following command to install the packages: npm install mysql2 dotenv --save Step Step 4: Run the code and check the result Run the following command to execute the sample code: npm start 197 If the connection is successful, the console will output the version of the TiDB cluster dotenv �→ ) for the sample app: npm install 201 Install dependencies to existing project For your existing project, run the following command to install the packages: npm install mysql dotenv --save0 码力 | 6549 页 | 108.77 MB | 10 月前3
共 20 条
- 1
- 2













