Loading...
MySQL 9.5 Reference Manual 9.5의 2.8.5 Installing MySQL Using a Development Source Tree의 한국어 번역본입니다.
아래의 경우에 피드백에서 신고해주신다면 반영하겠습니다.
감사합니다 :)
이 절에서는 최신 development source code에서 MySQL을 설치하는 방법을 설명합니다. 최신 development source code는 GitHub에 호스팅되어 있습니다. 이 저장소 호스팅 서비스에서 MySQL Server 소스 코드를 가져오려면, 로컬 MySQL Git 저장소를 설정하면 됩니다.
GitHub에서 MySQL Server 및 다른 MySQL 프로젝트들은 MySQL 페이지에서 찾을 수 있습니다. MySQL Server 프로젝트는 여러 MySQL 시리즈에 대한 브랜치를 포함하는 단일 저장소입니다.
development 소스 트리에서 MySQL을 설치하려면, 사용 중인 시스템이 Section 2.8.2, “Source Installation Prerequisites”에 나열된 도구 요구 사항을 만족해야 합니다.
사용 중인 머신에 MySQL Git 저장소를 설정하려면:
mysql-server라는 디렉터리로 클론합니다. 초기 다운로드는 연결 속도에 따라 완료까지 시간이 다소 걸릴 수 있습니다.1$> git clone https://github.com/mysql/mysql-server.git 2Cloning into 'mysql-server'... 3remote: Counting objects: 1198513, done. 4remote: Total 1198513 (delta 0), reused 0 (delta 0), pack-reused 1198513 5Receiving objects: 100% (1198513/1198513), 1.01 GiB | 7.44 MiB/s, done. 6Resolving deltas: 100% (993200/993200), done. 7Checking connectivity... done. 8Checking out files: 100% (25510/25510), done.
1~> cd mysql-server 2~/mysql-server> ls 3client extra mysys storage 4cmake include packaging strings 5CMakeLists.txt INSTALL plugin support-files 6components libbinlogevents README testclients 7config.h.cmake libchangestreams router unittest 8configure.cmake libmysql run_doxygen.cmake utilities 9Docs libservices scripts VERSION 10Doxyfile-ignored LICENSE share vio 11Doxyfile.in man sql win 12doxygen_resources mysql-test sql-common
1~/mysql-server> git branch -r 2 origin/5.7 3 origin/8.0 4 origin/HEAD -> origin/trunk 5 origin/cluster-7.4 6 origin/cluster-7.5 7 origin/cluster-7.6 8 origin/trunk
1~/mysql-server$ git branch 2* trunk
1~/mysql-server$ git checkout 8.0 2Checking out files: 100% (9600/9600), done. 3Branch 8.0 set up to track remote branch 8.0 from origin. 4Switched to a new branch '8.0'
1~/mysql-server$ git checkout trunk 2~/mysql-server$ git pull
commit 히스토리를 살펴보려면 git log 명령을 사용합니다:
1~/mysql-server$ git log
또한 GitHub MySQL 사이트에서 commit 히스토리와 소스 코드를 둘러볼 수도 있습니다.
변경 사항이나 코드에 대해 질문이 있다면, MySQL Community Slack에서 질문하십시오.
production 머신에서 배포판 소스 트리에서 빌드한 결과물을 설치할 때는 주의해야 합니다. 설치 명령이 운영 중인 릴리스 설치본을 덮어쓸 수도 있습니다. 이미 MySQL이 설치되어 있고 이를 덮어쓰고 싶지 않다면, production 서버에서 사용 중인 값과 다른 값으로 CMAKE_INSTALL_PREFIX, MYSQL_TCP_PORT, MYSQL_UNIX_ADDR 옵션을 지정하여 CMake를 실행하십시오. 여러 서버가 서로 간섭하지 않도록 하는 추가 정보는 Section 7.8, “Running Multiple MySQL Instances on One Machine”을 참조하십시오.
새로운 설치본으로 마음껏 테스트를 진행하십시오. 예를 들어, 새로운 기능이 크래시를 일으키도록 시도해 보십시오. 우선 make test를 실행하는 것부터 시작하십시오. The MySQL Test Suite를 참조하십시오.
2.8.4 Installing MySQL Using a Standard Source Distribution
2.8.6 Configuring SSL Library Support