mysqldump: Got error: 1135: Can't create a new thread (errno 11); if you are not out of availabl

Posted 大象无形01

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysqldump: Got error: 1135: Can't create a new thread (errno 11); if you are not out of availabl相关的知识,希望对你有一定的参考价值。

在进行数据库备份的时候发现服务器报 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     
 
 

以上是关于mysqldump: Got error: 1135: Can't create a new thread (errno 11); if you are not out of availabl的主要内容,如果未能解决你的问题,请参考以下文章

mysqldump: Got error: 1102: Incorrect database nam

mysqldump Got error 1045 Access denied for user 'roor' 'l

(转)mysqldump: Got error: 1556: You can't use locks with log tables.

mysqldump: Got error: 1044: Access denied for user 'backupuser'@'%' to database '

mysqldump: Got error: 1449: The user specified as a definer ('user'@'%') does not ex

mysqldump: Got error: 1556: You can't use locks with log tables. when using LOCK TABLES