반응형
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 |