zoukankan      html  css  js  c++  java
  • mysqldump: Got error: 1135: Can't create a new thread (errno 11); if you are not out of available memory, you can consult the manual for a possible OS-dependent bug when trying to connect 解决办法

    在进行数据库备份的时候发现服务器报 mysqldump: Got error: 1135: Can't create a new thread (errno 11); if you are not out of available memory, you can consult the manual for a possible OS-dependent bug when trying to connect  错误
     
    ,出现原因是服务器的连接数太多了,当mysql的连接数大于默认数值(1024)时,就会出现这个错误,需要增加服务器的最大连接数,方法如下:
    打开  /etc/security/limits.conf
    增加两行参数: 
    * soft nofile 65535
    * hard nofile 409600
     
    为了避免重启服务器可以在命令行中执行:
    ulimit -u 65535
     
    验证下mysql的最大连接数
    cat /proc/`pidof mysqld`/limits | egrep "(processes|files)"
    Max processes             65535                65535                processes
    Max open files            65535                409600               files     
     
     
  • 相关阅读:
    【2021-08-09】问题还需一点一点去改正
    【2021-08-08】连岳摘抄
    【2021-08-07】请教帖
    21春助教总结
    实践总结+技术博客评分
    来吧 ,来吧 自己搭建一个erp 系统
    博客索引
    「CCNU21暑期第六次周赛」
    「CCNU21暑期第五次周赛」
    「图论」连通性问题
  • 原文地址:https://www.cnblogs.com/itor/p/9329388.html
Copyright © 2011-2022 走看看