数据库连接数太多解决方法

234 阅读1分钟
show status like 'Threads%'; # mysql库查看状态
show global variables like 'max_conn%';

set GLOBAL max_connections=200  # 修改最大线程数