---
title: Sysbench测试时提示连接太多的解决方法
description: "服务器中安装了MySQL，使用Sysbench 1.0.5进行测试时，提示连接太多，提示如下所示信息："
url: https://www.hikunpeng.com/document/detail/zh/kunpengdbs/troubleshooting/trouble/boostkit_database_troublecase_014.html
sourcePath: /source/zh/kunpengdbs/troubleshooting/trouble/boostkit_database_troublecase_014.html
indexId: 61c63bf8ad539da80ed4423463d925e2f682a3e10971bb0253b1ea00a69daf0d84
---
# Sysbench测试时提示连接太多的解决方法

#### 问题现象描述

服务器中安装了MySQL，使用Sysbench 1.0.5进行测试时，提示连接太多，提示如下所示信息：

```
FATAL: error 1040: Too many connections
```


#### 关键过程、根本原因分析

数据库的连接数超过了配置参数设置的最大连接数。


#### 结论、解决方案及效果

1. 修改数据库最大连接数，增加数据库连接数上限。可以在数据库中执行如下语句设置：
  1 set global max_connections = 3600;

2. 重新执行本例中的Sysbench测试操作。
