; ;

mysqlslap: Error when connecting to server: 1064 Reach limit of connections

背景:今天使用mysqlslap压测性能,并发数是100就开始报错,错误如图

运行的脚本:

mysqlslap -h172.xx.xx.xx  -P9030 -uxx  --concurrency=100 --iterations=1 --create-schema=bds --query=/home/zhangjun/test.sql --engine=innodb --number-of-queries=1 --debug-info

错误提示:

 

 

 解决方案:

 

 设置用户最大连接数,解决此问题

posted @ 2021-11-30 18:04  做梦的人-  阅读(1060)  评论(0编辑  收藏  举报