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     
     
     
  • 相关阅读:
    Android Studio 插件
    天气预报接口api(中国天气网)
    使用easyui的Tree 实现无限子节点绑定
    js调用后台方法
    div窗口效果来自标准之路
    C#生成dll程序集文件
    一个技术人的博客
    HTML-embed标签详解
    网站生成桌面快捷图标
    文本框宽度自动适应文本宽度
  • 原文地址:https://www.cnblogs.com/itor/p/9329388.html
Copyright © 2011-2022 走看看