MySQL 윈도우즈 설치 (Windows Install )

Database/MySQL 2008/04/20 02:56
  • 비스타에서 작업 , 확인
  • 5.1.X 버젼
    참고 :
    http://dev.mysql.com/doc/refman/5.1/en/windows-installation.html
    http://dev.mysql.com/doc/refman/5.1/ja/windows-installation.html

    1. 인스톨 없는 압축파일로 설치
      • 다운로드
        http://dev.mysql.com/downloads/mysql/5.1.html

      • 다운로드받은 파일을 압축파일을 임의의 디렉토리에 풀기
        c:\dev\mysql

      • 옵션 파일 작성
        MySQL 은 서버가 기동하면서 2개의 옵션 파일을 검색.
        c:\Windows\my.ini  그리고 c:\my.cnf

        여기서는 c:\my.cnf 를 사용함

        [mysqld]
        basedir=c:\\dev\\mysql
        datadir=c:\\dev\\mysql\\data
        추가

        참고: http://dev.mysql.com/doc/refman/5.1/ja/option-files.html

      • 서버타입 선택

        참고 : http://dev.mysql.com/doc/refman/5.1/ja/windows-select-server.html

      • 서버 기동

        c:\dev\mysql\bin>c:\dev\mysql\bin\mysqld --console
        InnoDB: The first specified data file .\ibdata1 did not exist:
        InnoDB: a new database to be created!
        080420  2:45:40  InnoDB: Setting file .\ibdata1 size to 10 MB
        InnoDB: Database physically writes the file full: wait...
        080420  2:45:41  InnoDB: Log file .\ib_logfile0 did not exist: new to be created
        InnoDB: Setting log file .\ib_logfile0 size to 5 MB
        InnoDB: Database physically writes the file full: wait...
        080420  2:45:42  InnoDB: Log file .\ib_logfile1 did not exist: new to be created
        InnoDB: Setting log file .\ib_logfile1 size to 5 MB
        InnoDB: Database physically writes the file full: wait...
        InnoDB: Doublewrite buffer not found: creating new
        InnoDB: Doublewrite buffer created
        InnoDB: Creating foreign key constraint system tables
        InnoDB: Foreign key constraint system tables created
        080420  2:45:43  InnoDB: Started; log sequence number 0 0
        080420  2:45:44 [Note] Event Scheduler: Loaded 0 events
        080420  2:45:44 [Note] c:\dev\mysql\bin\mysqld: ready for connections.
        Version: '5.1.24-rc-community-log'  socket: ''  port: 3306  MySQL Community Server (GPL)

        --console 옵션을 삭제하면 데이터 디렉토리에 에러로그 생성함.

        서버 정지
        c:\dev\mysql\bin>c:\dev\mysql\bin\mysqladmin -u root shutdown
        080420  2:50:37 [Note] Event Scheduler: Purging the queue. 0 events
        080420  2:50:37  InnoDB: Starting shutdown...
        080420  2:50:38  InnoDB: Shutdown completed; log sequence number 0 46409
        080420  2:50:38 [Note] c:\dev\mysql\bin\mysqld: Shutdown complete

      • 기본 유저 어카운트 확보

    2. 기본 패키지 인스톨 (공식 매뉴얼에서 추천하는 인스톨 방법)
      • 다운로드
        http://dev.mysql.com/downloads/mysql/5.1.html

      • 인스톨 개시. 다운로드 한 파일 실행.
        사용자 삽입 이미지

      • Custom Type 선택
        사용자 삽입 이미지

      • 인스톨 디렉토리 선택
        사용자 삽입 이미지

      • 인스톨 시작
        사용자 삽입 이미지
        사용자 삽입 이미지
        사용자 삽입 이미지
        사용자 삽입 이미지

      • 서버 설정
        사용자 삽입 이미지
        사용자 삽입 이미지

      • 설정 타입 선택 (상세 설정 선택)
        사용자 삽입 이미지

      • 서버 타입 선택 (개발 환경용이기에 Developer Machine 선택)
        사용자 삽입 이미지


      • 데이터베이스 용도 선택
        사용자 삽입 이미지


      • InnoDB 용 드라이버 선택
        사용자 삽입 이미지


      • 서버에 동시컨넥션 규모 선택
        사용자 삽입 이미지


      • 네트워킹 옵션 선택
        사용자 삽입 이미지


      • 캐릭터 셋 선택 (매뉴얼로 UTF8 선택)

        사용자 삽입 이미지

      • 서비스 명을 MySQL51 로 선택. 다른 버젼을 설치할지도 모르기에...
        PATH 지정 체크 선택
        사용자 삽입 이미지


      • Modify Security Settings 체크 해제. 나중에 수동으로 설정.
        사용자 삽입 이미지


      • 설정 끝
        사용자 삽입 이미지
        사용자 삽입 이미지




  • 패키지 설치 참고
    2008/04/18 - [Programming/Server] - 개발환경구축 > 패키지 설치

Trackback 0 : Comment 0