MariaDB Server 5.5 설치하기
https://mariadb.com/resources/blog/installing-mariadb-10-on-centos-7-rhel-7/
찾아보니 CentOS 8 버전도 기본적으로 5.5를 가지고 있다.
따라서 mariadb server 5.5를 설치하려면 아래의 명령어를 작성하면 된다.
$ sudo yum install mariadb-server


- Complete가 뜨면 설치가 완료된 것!
MariaDB 실행하기
$ systemctl start mariadb
- 비밀번호 설정하기
$ /usr/bin/mysql_secure_installation


- mysql에 접속하기
$ mysql -u 계정아이디 -p 비밀번호
- root계정 말고 다른 계정 생성하기.(root계정으로 접속해야지 생성 가능)
- 모든 권한 부여한 아이디 생성.
- localhost : 내부접속만 허용 % : 외부접속 허용하기.
$ grant all privileges on *.* to eisen@'localhost' identified by '123123';
- eisen으로 접속이 가능하다.

MariaDB Server10.4 설치하기(실패)

오류가 발생
[error] The MariaDB Repository only supports x86_64 and aarch64 (detected i686). [error] The MariaDB Repository supports these Linux OSs, on x86_64 only: * RHEL/CentOS 7 & 8 (rhel) * Ubuntu 16.04 LTS (xenial), 18.04 LTS (bionic), & 20.04 LTS (focal) * Debian 9 (stretch) & 10 (buster) * SLES 12 & 15 (sles) [error] See https://mariadb.com/kb/en/mariadb/mariadb-package-repository-setup-and-usage/#platform-support
https://computingforgeeks.com/install-mariadb-on-ubuntu-and-centos/
10.4 설치는 서버를 밀고 재시작 한 후에 설치해보려고 함.
https://computingforgeeks.com/install-mariadb-on-ubuntu-and-centos/
cat <EOF | sudo tee /etc/yum.repos.d/MariaDB.repo
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.4/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
EOF
Uploaded by Notion2Tistory v1.1.0