---
title: 配置环境
description: "1. 获取安装包(https://mirrors.huaweicloud.com/kunpeng/archive/kunpeng_solution/database/patch/benchmarksql5.0-for-mysql.zip)。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengdbs/testguide/tstg/kunpengbenchmarksql_06_0002.html
sourcePath: /source/zh/kunpengdbs/testguide/tstg/kunpengbenchmarksql_06_0002.html
indexId: 27d4b87bdce2eb02bc7f7bb2b1b9fd5bc74ce80c1825cf54f4aea79b31e4ca5b69
---
# 配置环境

1. 获取安装包(https://mirrors.huaweicloud.com/kunpeng/archive/kunpeng_solution/database/patch/benchmarksql5.0-for-mysql.zip)。
2. 安装JDK。

  a. 参考《    MySQL 移植指南(https://www.hikunpeng.com/document/detail/zh/kunpengdbs/ecosystemEnable/MySQL/kunpengmysql8017_02_0001.html)
》配置本地Yum源并挂载OS镜像。

  b. 安装相关依赖包。
    1 yum -y install java

3. 将benchmarksql5.0-for-mysql.zip压缩包上传至客户端服务器“/home”目录下。
4. 进入“/home”目录，解压对应压缩包。
  1 2 cd /home unzip benchmarksql5.0-for-mysql.zip

5. （推荐）若对数据库创建表有分区要求，则执行以下命令修改建表语句。

```
cd /home/benchmarksql5.0-for-mysql/run/sql.mysql
mv tableCreates.sql tableCreates.sql_no-partition
mv tableCreates_partition.sql tableCreates.sql
```
