Maria DB 특정버젼으로 선택 후 설치하기
부제 : yum을 이용하여 원하는 버젼의 Maria DB를 설치하기
1. MariaDB 홈페이지의 다운로드 페이지로 이동
downloads.mariadb.org/mariadb/repositories/
MariaDB - Setting up MariaDB Repositories - MariaDB
To generate the entries select an item from each of the boxes below. Once an item is selected in each box, your customized repository configuration will appear below. 1. Choose a Distro SLES openSUSE Arch Linux Mageia Fedora CentOS RedHat Mint Ubuntu Debia
downloads.mariadb.org
2. 현재 설치하고자 하는 서버의 정보와 원하는 버젼을 선택한다.
- 저는 현재 EC2서버에서 CentOS 7 (X86_64)버전을 사용중이고 10.3 버전으로 설치하고자 합니다.
3. 이후 MariaDB.repo 파일을 작성합니다.
- vi /etc/yum.repos.d/MariaDB.repo
# MariaDB 10.3 CentOS repository list - created 2021-02-23 08:19 UTC # http://downloads.mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.3/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 |
4. yum install로 MariaDB를 설치합니다.
- sudo yum install MariaDB-server MariaDB-client
5. mysql로 접속하여 root 패스워드를 설정합니다.
- set password for 'root'@'localhost'=password('패스워드');
- flush privileges;