새로운 글


내용을 입력하세요
0
  • 새로운 소식이 있나요?
  • 이미지
    # The MariaDB configuration file## The MariaDB/MySQL tools read configuration files in the following order:# 0. "/etc/mysql/my.cnf" symlinks to this file, reason why all the rest is read.# 1. "/etc/mysql/mariadb.cnf" (this file) to set global defaults,# 2. "/etc/mysql/conf.d/*.cnf" to set global options.# 3. "/etc/mysql/mariadb.conf.d/*.cnf" to set MariaDB-only options.# 4. "~/.my.cnf" to set user-specific options.## If the same option is defined...
    image
  • 이미지
    MariaDB 쿼리 최적화 검토슬로우 쿼리 로그 활성화 및 분석: # my.cnf 파일에 추가 slow_query_log = 1 slow_query_log_file = /var/log/mysql/mariadb-slow.log long_query_time = 1 # 1초 이상 걸리는 쿼리 기록로그 분석: mysqldumpslow -s t /var/log/mysql/mariadb-slow.log실행 중인 쿼리 확인: SHOW FULL PROCESSLIST;쿼리 실행 계획 검토: EXPLAIN SELECT ... 쿼리문;인덱스 추가 및 최적화: CREATE INDEX idx_name ON table_name(column_name);캐시 설정 최적화: # my.cnf 파일 조정 query_cache_size = 64M query_cache_type = 1PHP-FPM 프로세스 수 및 설정 조정현재 PHP-FPM 풀 설정 확인: cat /etc/php/7.x/fpm...