mysql最大連接數滿了

2020-04-10 15:18:35.669 ERROR 18428 --- [eate-1929324052] com.alibaba.druid.pool.DruidDataSource   : create connection SQLException, url: jdbc:mysql://192.168.1.80:3306/data-center?characterEncoding=utf-8&serverTimezone=UTC&useSSL=false, errorCode 1040, state 08004

查看最大連接數


mysql> show variables like '%max_connections%';
+-----------------+-------+
| Variable_name   | Value |
+-----------------+-------+
| max_connections | 151   |
+-----------------+-------+
1 row in set (0.00 sec)

查看已經用的連接數

mysql> show global status like 'Max_used_connections';
+----------------------+-------+
| Variable_name        | Value |
+----------------------+-------+
| Max_used_connections | 152     |
+----------------------+-------+
1 row in set (0.04 sec)
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章