웹사이트 검색

Ubuntu 20.04에 Percona 데이터베이스 서버를 설치하는 방법


이 페이지에서

  1. 전제 조건
  2. 시작하기\n
  3. Percona 저장소 추가
  4. Percona 서버 설치
  5. 결론

Percona Server는 MySQL 서버의 포크입니다. 완벽하게 호환되며 Oracle MySQL을 대체합니다. Percona Server는 수천 개의 기업에서 탁월한 성능, 확장성 및 워크로드용 계측을 제공하는 데 사용됩니다. AWS, Google Cloud, Azure 등을 포함한 많은 클라우드 공급자와 호환됩니다. 48개 이상의 CPU 코어로 확장할 수 있으며 초당 수십만 I/O 작업을 수행할 수 있습니다.

이 튜토리얼에서는 Ubuntu 20.04에 Percona Server를 설치하는 방법을 보여줍니다. slotId=div-gpt-ad-howtoforge_com-medrectangle-3-0;var ffid=1;var alS=1021%1000;var container=document.getElementById(slotId);container.style.width=100%;var ins= document.createElement(ins);ins.id=slotId+-asloaded;ins.className=adsbygoogle ezasloaded;ins.dataset.adClient=pid;ins.dataset.adChannel=cid;if(ffid==2){ins.dataset. fullWidthResponsive=참;}

전제 조건

  • Ubuntu 20.04를 실행하는 서버.\n
  • 서버에 루트 암호가 구성되어 있습니다.\n

시작하기

시작하기 전에 시스템 패키지를 최신 버전으로 업데이트해야 합니다. 다음 명령으로 모두 업데이트할 수 있습니다.

apt-get update -y

모든 패키지가 업데이트되면 다음 명령을 사용하여 다른 필수 종속성을 설치합니다.

apt-get install wget unzip gnupg2 -y

모든 종속성이 설치되면 다음 단계로 진행할 수 있습니다.

Percona 저장소 추가

기본적으로 Percona는 Ubuntu 기본 리포지토리에 포함되어 있지 않습니다. 따라서 시스템에 Percona 리포지토리를 추가해야 합니다.

먼저 다음 명령을 사용하여 Percona 릴리스 deb 파일을 다운로드합니다.

wget https://repo.percona.com/apt/percona-release_latest.$(lsb_release -sc)_all.deb

다운로드가 완료되면 다음 명령을 사용하여 다운로드한 파일을 설치합니다.

dpkg -i percona-release_latest.focal_all.deb

다음과 같은 결과가 표시되어야 합니다.

Selecting previously unselected package percona-release.
(Reading database ... 87734 files and directories currently installed.)
Preparing to unpack percona-release_latest.focal_all.deb ...
Unpacking percona-release (1.0-25.generic) ...
Setting up percona-release (1.0-25.generic) ...
* Enabling the Percona Original repository
<*> All done!
==> Please run "apt-get update" to apply changes
* Enabling the Percona Release repository
<*> All done!
==> Please run "apt-get update" to apply changes
The percona-release package now contains a percona-release script that can enable additional repositories for our newer products.

For example, to enable the Percona Server 8.0 repository use:

  percona-release setup ps80

Note: To avoid conflicts with older product versions, the percona-release setup command may disable our original repository for some products.

For more information, please visit:
  https://www.percona.com/doc/percona-repo-config/percona-release.html

Percona 서버 설치

Percona 리포지토리는 많은 도구를 제공합니다. 이 섹션에서는 Percona 8을 설치합니다. 다음 명령으로 설치할 수 있습니다.

percona-release setup ps80
apt-get install percona-server-server

설치하는 동안 아래와 같이 루트 암호를 설정하라는 메시지가 표시됩니다.

루트 비밀번호를 설정하고 Enter를 누르십시오. 아래와 같이 인증 플러그인을 선택하라는 메시지가 표시됩니다.

첫 번째 옵션을 선택하고 Enter 키를 눌러 Percona 서버를 설치합니다.

결론

축하합니다! Ubuntu 20.04에 Percona 서버를 성공적으로 설치했습니다. 이제 추가 기능으로 프로젝트에서 Percona를 사용할 수 있습니다.