티스토리 뷰
반응형
Usually, I update variables on the fly using something like:
mysql> SET GLOBAL max_connections = 150; |
… and then modify /etc/my.cnf to make the change persistent.
The problem in doing this is that you’re not verifying that your /etc/my.cnf is correct and can only hope that a restart doesn’t encounter any problems.
Fortunately, Sai emailed us a great little tip to verify the syntax. You can run the following which will report errors in /etc/my.cnf:
# /usr/libexec/mysqld --help --verbose 081009 9:55:36 [ERROR] /usr/libexec/mysqld: unknown variable 'mmax_connections=150' # |
Perfect. Just what the doctor ordered.
하지만 난 mysqld가 저 경로에 없었다..
#mysqld --help --verbose
또는..
#which mysqld 한 뒤에..
/usr/sbin/mysqld 이 위치라는걸 보고
#/usr/sbin/mysqld --help --verbose 를 했다.
반응형
'프로그래밍 > MySQL' 카테고리의 다른 글
| 실수로 용량이 큰 테이블에 OPTIMIZE TABLE을 실행 했을 때 (0) | 2022.11.23 |
|---|---|
| [MySQL] Where In & SubQuery 는 최악! JOIN & MAX & GROUP BY 사용 (0) | 2022.09.29 |
| MySQL 기본적인 모니터링 방법과 Connection과 Memory 튜닝 방법 (0) | 2016.06.29 |
| mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead [duplicate] (0) | 2016.05.11 |
| MYSQL에서 랜덤으로 데이터 읽어오기 (0) | 2015.10.01 |
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 신혼부부
- 세금
- 적금
- 안드로이드
- 지도
- 투자
- 고금리
- 혜택
- 앱테크
- etf
- 부동산
- 우회
- ubuntu
- php
- 연말정산
- 아파트매매
- 카카오뱅크
- remove
- 금융
- 주담대
- 2026
- 카뱅
- 정부
- 대출
- 출산
- 해외주식
- 안과
- 공제
- 내집마련
- 재테크
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
글 보관함