• MySQL매뉴얼
    • MySQL 5.6 매뉴얼
    • MySQL 5.1 매뉴얼
    • MySQL 5.0 매뉴얼
    • MySQL HA 매뉴얼
  • 기술문서
    • Xtrabackup 구성
    • 메모리 사용량 모니터링
  • 서비스
    • MySQL유지보수
    • MySQL라이선스
  • 온라인문의
  • 회사소개
  • → 목 록 (MySQL5.1 한글메뉴얼) [close]
  • 1. MySQL 5.1 Reference Manual
  • 2. Installing and MySQL 업그레이드하기
  • 1. 설치 관련 일반 사항
    2. 바이너리 배포판을 사용해서 MySQL을 설치하는 표준 방법
    3. 윈도우에 MySQL 설치하기
    4. RPM 패키지를 사용해서 리눅스에 MySQL 설치하기
    5. Mac OS X에 MySQL 설치하기
    6. Solaris에 MySQL 설치하기
    7. Installing MySQL on NetWare
    8. 다른 유닉스 유사 시스템에 tar.qz 패키지를 사용해서 MySQL 설치하기
    9. 소스 배포판을 사용해서 MySQL 설치하기
    10. 설치 후 설정 및 테스팅
    11. MySQL 업그레이드 하기
    12. MySQL 다운그레이드 하기
    13. OS 관련 노트
    14. 환경 변수
    15. Perl Installation 노트
  • 3. 사용 설명서 (Tutorial)
  • 4. MySQL 프로그램 사용하기
  • 5. 데이터베이스 관리
  • 6. 리플리케이션
  • 7. 최적화 (Optimization)
  • 8. 클라이언트 및 유틸리티 프로그램
  • 9. 언어 구조 (Language Structure)
  • 10. 문자 셋 지원
  • 24. API 및 라이브러리
  • 25. Connectors

2.14. 환경 변수

 

이 섹션에서는 MySQL이 직접 또는 간접적으로 사용하는 모든 환경 변수를 설명한다.

 

명령어 라인에 입력하는 모든 옵션은 옵션 파일 및 환경 변수에서 정의하는 값보다 우선 순위가 앞서며, 옵션 파일에 있는 값이 환경 변수에 있는 값보다 우선 순위가 앞선다는 점을 알아두자.

 

대부분의 경우에, MySQL의 동작을 수정하기 위해서는 환경 변수 대신에 옵션 파일을 사용하는 것이 좋다.

 

Variable

Description

CXX

The name of your C++ compiler (for running configure).

CC

The name of your C compiler (for running configure).

CFLAGS

Flags for your C compiler (for running configure).

CXXFLAGS

Flags for your C++ compiler (for running configure).

DBI_USER

The default username for Perl DBI.

DBI_TRACE

Trace options for Perl DBI.

HOME

The default path for the mysql history file is $HOME/.mysql_history.

LD_RUN_PATH

Used to specify the location of libmysqlclient.so.

MYSQL_DEBUG

Debug trace options when debugging.

MYSQL_GROUP_SUFFIX

Option group suffix value (like specifying --defaults-group-suffix).

MYSQL_HISTFILE

The path to the mysql history file. If this variable is set, its value overrides the default for $HOME/.mysql_history.

MYSQL_HOME

The path to the directory in which the server-specific my.cnf file resides (as of MySQL 5.0.3).

MYSQL_HOST

The default hostname used by the mysql command-line client.

MYSQL_PS1

The command prompt to use in the mysql command-line client.

MYSQL_PWD

The default password when connecting to mysqld. Note that using this is insecure. See Section 5.8.6, “Keeping Your Password Secure”.

MYSQL_TCP_PORT

The default TCP/IP port number.

MYSQL_UNIX_PORT

The default Unix socket filename; used for connections to localhost.

PATH

Used by the shell to find MySQL programs.

TMPDIR

The directory where temporary files are created.

TZ

This should be set to your local time zone. See Section B.1.4.6, “Time Zone Problems”.

UMASK_DIR

The user-directory creation mask when creating directories. Note that this is ANDed with UMASK.

UMASK

The user-file creation mask when creating files.

USER

The default username on Windows and NetWare used when connecting to mysqld.

서울시 강남구 영동대로 602 6층  TEL: 02-6061-0006
주식회사 이노클러스터  등록번호 : 727-86-02261
Copyright © innocluster Co. ltd. all rights reserved