admin 发表于 2021-2-25 21:19

解决mysql 1040错误Too many connections的方法教程

解决mysql 1040错误Too many connections的方法教程
第一种方法:修改mysql目录下的my.ini,约在42行下方加入max_connections = 1000 。重启mysql就行。

[*]可能是mysql的max connections设置的问题
[*]可能是多次insert,update操作没有关闭session,需要在spring里配置transaction支持。

解决:
1.修改tomcat里的session 的time-out时间减少为20,(不是必改项)
2.对处理量大的对数据库insert或update的操作提供transaction支持.

页: [1]
查看完整版本: 解决mysql 1040错误Too many connections的方法教程