show global variables like 'max_connections';
+-----------------+-------+
| Variable_name | Value |
+-----------------+-------+
| max_connections | 151 |
+-----------------+-------+
현재 최대 커넥션의 개수는 151개 입니다.
[mysqld]
#max_connections
max_connections = 682
my.cnf에 최대 커넥션 개수를 적어 줍니다
sudo systemctl restart mariadb.service
변경사항을 반영하기 위해 마리아디비를 재시작 해줍니다.
show global variables like 'max_connections';
+-----------------+-------+
| Variable_name | Value |
+-----------------+-------+
| max_connections | 682 |
+-----------------+-------+
다시 조회를 해보면 최대로 늘어난 것을 알 수 있습니다.