mysql의 현재 상태를 확인 하는 명령어 입니다. 사용방법 : show status like 'Threads_connected'; (Threads_connected)자리에 원하시는 항목을 넣으시면 됩니다. 사용명령: # /usr/local/mysql/bin/mysqladmin status -p 또는 mysql 에 접속후 mysql> show status; 로도 볼수 있습니다. 설명: Aborted_clients : 클라이언트가 연결을 적절히 닫지않아서 죽었기때문에 끊어진 연결수. Aborted_connects : 연결실패된 mysql서버에 연결시도 수. Bytes_received : 모든 클라이언트로 부터 받은 바이트 수 Bytes_sent : 모든 클라이언트에게 보낸 바이트수 Connections :..
mysql connection 수 보기 ERROR 1040 (08004): Too many connectionsERROR 1040 (08004): Too many connections 에러발생시 해결법~ mysql> set global max_connections=300; (mysql 을 재시작 안해도 max_connections 값이 바로 적용된다.) 또 다른 방법으로 mysql 설정파일(my.ini 또는 my.cnf )을 다음과 같이 설정해주면 된다. [mysqld] max_connections = 300설정파일 변경 후에는 mysql 재시작이 필요하다. ■ max_connections에 대한 설명 MySQL은 [ 최대 접속수 + 1 ]의 접속을 허용한다. "1"은 관리자 권한 접속을 나타낸다. 문제..