MySQL 최대 접속 Max Connection 확인 및 설정변경

MySQL 설정된 max_connections 값 확인
# mysqladmin -u root -p variables | grep max_connections
Enter password:
| max_connections                 | 100

max_connections 를 1000으로 늘리자

# vi /etc/my.cnf
설정파일에 아래 내용을 추가 또는 수정하자.
(my.cnf 파일 자체가 없다면 cd /usr/local/mysql/share/mysql 폴더안의 샘플파일을 토대로 만들자)

[mysqld]
max_connections = 1000

설정파일 수정 후 MySQL 재시작!!

# /etc/init.d/mysqld restart

적용된 max_connections 값 다시 확인

# mysqladmin -u root -p variables | grep max_connections
Enter password:
| max_connections                 | 1000  

MySQL 최대 접속 Max Connection 확인 및 설정변경
Scroll to top