Loading...
MySQL 9.5 Reference Manual 9.5의 2 Installing MySQL의 한국어 번역본입니다.
아래의 경우에 피드백에서 신고해주신다면 반영하겠습니다.
감사합니다 :)
Table of Contents
2.1 General Installation Guidance
2.1.1 Supported Platforms
2.1.2 Which MySQL Version and Distribution to Install
2.1.3 How to Get MySQL
2.1.4 Verifying Package Integrity Using MD5 Checksums or GnuPG
2.1.5 Installation Layouts
2.1.6 Compiler-Specific Build Characteristics
2.2 Installing MySQL on Unix/Linux Using Generic Binaries
2.3 Installing MySQL on Microsoft Windows
2.3.1 Choosing an Installation Package
2.3.2 Configuration: Using MySQL Configurator
2.3.3 Configuration: Manually
2.3.4 Troubleshooting a Microsoft Windows MySQL Server Installation
2.3.5 Windows Postinstallation Procedures
2.3.6 Windows Platform Restrictions
2.4 Installing MySQL on macOS
2.4.1 General Notes on Installing MySQL on macOS
2.4.2 Installing MySQL on macOS Using Native Packages
2.4.3 Installing and Using the MySQL Launch Daemon
2.4.4 Installing and Using the MySQL Preference Pane
2.5 Installing MySQL on Linux
2.5.1 Installing MySQL on Linux Using the MySQL Yum Repository
2.5.2 Installing MySQL on Linux Using the MySQL APT Repository
2.5.3 Using the MySQL SLES Repository
2.5.4 Installing MySQL on Linux Using RPM Packages from Oracle
2.5.5 Installing MySQL on Linux Using Debian Packages from Oracle
2.5.6 Deploying MySQL on Linux with Docker Containers
2.5.7 Installing MySQL on Linux from the Native Software Repositories
2.5.8 Installing MySQL on Linux with Juju
2.5.9 Managing MySQL Server with systemd
2.6 Installing MySQL Using Unbreakable Linux Network (ULN)
2.7 Installing MySQL on Solaris
2.7.1 Installing MySQL on Solaris Using a Solaris PKG
2.8 Installing MySQL from Source
2.8.1 Source Installation Methods
2.8.2 Source Installation Prerequisites
2.8.3 MySQL Layout for Source Installation
2.8.4 Installing MySQL Using a Standard Source Distribution
2.8.5 Installing MySQL Using a Development Source Tree
2.8.6 Configuring SSL Library Support
2.8.7 MySQL Source-Configuration Options
2.8.8 Dealing with Problems Compiling MySQL
2.8.9 MySQL Configuration and Third-Party Tools
2.8.10 Generating MySQL Doxygen Documentation Content
2.9 Postinstallation Setup and Testing
2.9.1 Initializing the Data Directory
2.9.2 Starting the Server
2.9.3 Testing the Server
2.9.4 Securing the Initial MySQL Account
2.9.5 Starting and Stopping MySQL Automatically
2.10 Perl Installation Notes
2.10.1 Installing Perl on Unix
2.10.2 Installing ActiveState Perl on Windows
2.10.3 Problems Using the Perl DBI/DBD Interface
이 장에서는 MySQL을 구해서 설치하는 방법을 설명합니다. 절차의 요약을 먼저 제시하고, 이후 절들에서 세부 사항을 제공합니다.
기존 MySQL 버전을 처음 설치하는 대신 더 새로운 버전으로 업그레이드할 계획이라면, 업그레이드 절차와 업그레이드 전에 고려해야 할 이슈에 대한 정보는 Chapter 3, Upgrading MySQL를 참조하십시오.
다른 데이터베이스 시스템에서 MySQL로 마이그레이션하는 데 관심이 있다면, 마이그레이션 이슈와 관련된 일반적인 질문에 대한 답변을 담고 있는 Section A.8, “MySQL 9.5 FAQ: Migration”을 참조하십시오.
MySQL 설치는 일반적으로 다음에 요약된 단계를 따릅니다:
MySQL이 귀하의 platform에서 실행 및 지원되는지 여부를 결정합니다.
모든 platform이 MySQL 실행에 동일하게 적합한 것은 아니며, MySQL이 실행되는 것으로 알려진 모든 platform이 Oracle Corporation에 의해 공식적으로 지원되는 것도 아니라는 점에 유의하십시오. 공식적으로 지원되는 platform에 대한 정보는 MySQL website의 https://www.mysql.com/support/supportedplatforms/database.html을 참조하십시오.
설치할 track을 선택합니다.
MySQL은 MySQL 8.4와 같은 LTS series와 9.5와 같은 Innovation series를 제공합니다. 이들은 Section 1.3, “MySQL Releases: Innovation and LTS”에서 설명된 것처럼 서로 다른 유스 케이스를 다룹니다.
어떤 distribution을 설치할지 선택합니다.
MySQL에는 여러 버전이 있으며, 대부분은 여러 배포 형식으로 제공됩니다. 바이너리(미리 컴파일된) 프로그램 또는 소스 코드를 포함하는 사전 패키지 배포판 중에서 선택할 수 있습니다. 확실하지 않다면 바이너리 배포판을 사용하십시오. Oracle은 최신 개발 사항을 확인하고 새 코드를 테스트하려는 사용자를 위해 MySQL 소스 코드에 대한 액세스도 제공합니다. 어떤 버전과 유형의 배포판을 사용해야 하는지 결정하려면 Section 2.1.2, “Which MySQL Version and Distribution to Install”를 참조하십시오.
설치하려는 distribution을 download합니다.
방법은 Section 2.1.3, “How to Get MySQL”을 참조하십시오. 배포판의 무결성을 검증하려면 Section 2.1.4, “Verifying Package Integrity Using MD5 Checksums or GnuPG”의 지침을 사용하십시오.
distribution을 설치합니다.
바이너리 배포판에서 MySQL을 설치하려면 Section 2.2, “Installing MySQL on Unix/Linux Using Generic Binaries”의 지침을 사용하십시오.
또는, generic 바이너리 배포판을 사용하여 MySQL Enterprise Edition Server를 배포하고 MySQL 설치 보안을 관리하기 위한 기능을 제공하는 절차를 담고 있는 Secure Deployment Guide를 사용하십시오.
소스 배포판 또는 현재 개발 소스 트리에서 MySQL을 설치하려면 Section 2.8, “Installing MySQL from Source”의 지침을 사용하십시오.
필요한 postinstallation setup을 수행합니다.
MySQL을 설치한 후, MySQL server가 제대로 작동하는지 확인하는 정보는 Section 2.9, “Postinstallation Setup and Testing”을 참조하십시오. 또한 Section 2.9.4, “Securing the Initial MySQL Account”에 제공된 정보도 참조하십시오. 이 section에서는 초기 MySQL root user account를 보호하는 방법을 설명합니다. 이 account에는 사용자가 비밀번호를 할당할 때까지 비밀번호가 없습니다. 이 section은 MySQL을 바이너리 또는 소스 배포판 중 어느 것으로 설치하더라도 적용됩니다.
MySQL benchmark script를 실행하려면, MySQL에 대한 Perl support가 가능해야 합니다. Section 2.10, “Perl Installation Notes”를 참조하십시오.
서로 다른 platform 및 environment에서 MySQL을 설치하는 지침은 platform별로 제공됩니다:
Unix 및 대부분의 Linux platform에서 generic 바이너리(예: .tar.gz 패키지)를 사용하여 MySQL을 설치하는 지침은 Section 2.2, “Installing MySQL on Unix/Linux Using Generic Binaries”를 참조하십시오.
MySQL을 소스 코드 배포판 또는 소스 코드 저장소에서 완전히 빌드하는 방법에 대한 정보는 Section 2.8, “Installing MySQL from Source”를 참조하십시오.
설치, configuration, 소스에서의 build에 대한 특정 platform 도움말은 해당 platform section을 참조하십시오:
배포판별 방법에 대한 설명을 포함한 Linux의 경우,
Section 2.5, “Installing MySQL on Linux”를 참조하십시오.
IBM AIX의 경우, Section 2.7, “Installing MySQL on Solaris”를 참조하십시오.
Microsoft Windows
MSI installer 또는 Zipped 바이너리를 사용하여 Microsoft Windows에 MySQL을 설치하는 지침은 Section 2.3, “Installing MySQL on Microsoft Windows”를 참조하십시오.
소스 코드에서 MySQL을 빌드하는 방법에 대한 세부 사항과 지침은 Section 2.8, “Installing MySQL from Source”를 참조하십시오.
바이너리 패키지와 native PKG 형식 둘 다를 사용하는 방식을 포함한 macOS에서의 설치는 Section 2.4, “Installing MySQL on macOS”를 참조하십시오.
MySQL을 자동으로 시작 및 중지하기 위해 macOS Launch Daemon을 사용하는 방법에 대한 정보는 Section 2.4.3, “Installing and Using the MySQL Launch Daemon”를 참조하십시오.
MySQL Preference Pane에 대한 정보는 Section 2.4.4, “Installing and Using the MySQL Preference Pane”를 참조하십시오.
1.7.3 How MySQL Deals with Constraints
2.1 General Installation Guidance