spring
共 3 篇文章
java连接mysql 连接数太多
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Too many connections show full processlist:查看有多少个线程实例 service mysqld stop service mysqld start show global variables like 'wait_timeout' 28800秒 = 8小时 show global variables like 'max_connections' 可以设置global set global wait_timeout…
事务的理解
Isolation.REPEATABLE_READ mysql默认级别, 仅次于Isolation.SERIALIZABLE Isolation.SERIALIZABLE: 别人无法update 否则: Deadlock found when trying to get lock; try restarting transaction