이 블로그 검색

2010년 1월 7일 목요일

소스버전 Install configure 옵션

 

소스버전의 MySQL설치 시, 필요한 configure 옵션에 대해 알아보자.

(소스버전 MySQL5.1.38기준)

다운로드한 소스압축파일을 풀게 되면, configure라는 파일이 생성되는데,

./configure --help로 configure에 대한 옵션 설명을 볼 수 있다.

옵션 중, 대표적인 것만 설명한다.

 

◆ --prefix=PREFIX : MySQL이 설치되는 디렉토리, 기본값은 /usr/local/mysql

◆ --localstatedir=DIR : 데이터 및 로그파일이 저장되는 디렉토리, 기본값은 PREFIX/var

◆ --enable-assembler : 어셈블러 함수 지원

◆ --enable-thread-safe-client : 쓰레드 지원

◆ --with-charset=CHARSET : 기본 CHARSET 지정(utf8, euckr, sjis 등등)

◆ --with-collation=COLLATION : 기본 COLLATION 지정

◆ --with-extra-charsets=CHARSET,CHARSET,... : 추가 CHARSET 지정

      (none, complex, all, utf8, euckr, sjis 등등)

   • none : 추가 설치 안함

   • complex : 정적인 CHARSET 추가 설치

   • all : binary를 포함한 모든 CHARSET 추가 설치

◆ --with-unix-socket-path=SOCKET : unix계열의 소켓 경로 지정, 기본값은 /tmp/mysql.sock

◆ --with-mysqld-user=username : MySQL데몬 실행 계정 지정

◆ --with-mysqld-ldflags=-all-static : MySQL데몬 실행 파일 생성 시 라이브러리 포함, 정적으로 컴파일

◆ --with-client-ldflags=-all-static : 클라이언트 실행 파일 생성 시 라이브러리 포함, 정적으로 컴파일

◆ --with-plugins=PLUGIN[[[,PLUGIN..]]] : plugin 설치, 기본값은 none

       (max, max-no-ndb, mandatory)    

   • MyISAM전용 : mandatory 설치

   • InnoDB전용(Cluster 없음) : max-no-ndb 설치

   • InnoDB전용(Cluster 있음) : max 설치

 

댓글 없음:

댓글 쓰기