mysql Error 1040 too many connection解决办法
2015-03-27 23:00
507 查看
最近在用SpringMVC开发的时候,突然出现1040 too many connection的错误,看错误的意思是连接的人数太多了。
当最大连接数比较小时,可能会出现“1040 too many connection”错误。
首先需要重启mysql服务,执行命令:service mysql restar
也有可能是:service mysqld restart
登录mysql:mysql -uroot -p
输入密码,回车;
登录成功后执行以下语句查询当前的最大连接数:select VARIABLE_VALUE from information_schema.GLOBAL_VARIABLES where VARIABLE_NAME='MAX_CONNECTIONS';
执行以下语句修改最大连接数:set global max_connections = 3600;
当最大连接数比较小时,可能会出现“1040 too many connection”错误。
首先需要重启mysql服务,执行命令:service mysql restar
也有可能是:service mysqld restart
登录mysql:mysql -uroot -p
输入密码,回车;
登录成功后执行以下语句查询当前的最大连接数:select VARIABLE_VALUE from information_schema.GLOBAL_VARIABLES where VARIABLE_NAME='MAX_CONNECTIONS';
执行以下语句修改最大连接数:set global max_connections = 3600;
相关文章推荐
- mysql Error 1040 too many connection解决办法
- mysql Error 1040 too many connection解决办法
- mysql too many connection(1040)解决办法
- Mysql ERROR 1040 (HY000): Too many connections解决
- MySQL出现too many connections(1040)错误的解决办法
- MySQL出现too many connections(1040)错误的解决办法
- mysql too many connection 解决办法
- Data source rejected establishment of connection, message from server: "Too many connections"解决办法
- Data source rejected establishment of connection, message from server: "Too many connections"解决办法
- mysql中too many connection的解决
- Hadoop MapReduce时Too many open files解决办法
- 关于too many files open的解决办法
- MySQL提示“too many connections”的解决办法
- mysql中too many connection的解决
- Mysql ERROR 1040 (HY000): Too many connections
- 解决mysql 1040错误Too many connections的方法
- gatk遇到Too many open files错误的解决办法
- Apache NIO 框架 Mina 使用中出现 too many open files 问题的解决办法
- 解决mysql 1040错误Too many connections的方法
- 解决办法:error=Too many objects of the specified type (PJ_ETOOMANY)