程序启动过程中,连接mysql异常,信息如下:
Caused by: com.mysql.cj.exceptions.CJException: Data source rejected establishment of connection, message from server: "Too many connections"
解决办法
查看当前的max_connections参数值:
select @@max_connections as 'max connections';
设置max_connections参数的值:
set global max_connections=1000;