• 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

     

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

     。。。。。。

    ----待补充 ------
  • 相关阅读:
    git 文件回滚
    常用函数
    触发器
    UPDATE
    DELETE
    INSERT
    完整性与约束
    流程控制
    SET ANSI_NULL ON 和 SET QUOTED_IDENTIFIFR ON
    SELECT 与 SET给标量赋值
  • 原文地址:https://www.cnblogs.com/ddbear/p/6929998.html
Copyright © 2020-2023  润新知