mysqlslap: Error when connecting to server: 2001 Can't create UNIX socket (24) 解决方法

在用mysqlslap对mysql进行压力测试遇到mysqlslap: Error when connecting to server: 2001 Can't create UNIX socket (24),现象如下图:

解决方法一:

由于linux上连接过多,所以增加linux上打开文件数,,前提不能超过系统的最大限制cat /proc/sys/fs/file-max

[root@dbtest ~]# vim /etc/security/limits.conf  添加

root  hard  nofile  20000
root  soft   nofile  20000

 

目前用这个方法还是没有用,正在继续查找原因

 。。。。。。

----待补充 ------
原文地址:https://www.cnblogs.com/ddbear/p/6929998.html