Mysql이 Oracle에 인수된 탓에 라이센스정책에 대한 거부감(?)때문인지 MariaDB로 간다고 한다.
DB는 이제 어느환경에서든 요구하는 사항이므로 이번기회에 설치해보기로 했다.
사전 vmware에 centOS 설치방법이 궁금하다면 아래 링크를 참조하도록하자
https://moonge.tistory.com/130 centOS 설치 방법
https://moonge.tistory.com/129 vmware player 설치기
[root@localhost ~]# yum -y install mariadb-server mariadb CentOS-8 - AppStream 4.1 kB/s | 4.3 kB 00:01 CentOS-8 - Base 4.7 kB/s | 3.8 kB 00:00 CentOS-8 - Extras 2.8 kB/s | 1.5 kB 00:00 Dependencies resolved. =============================================================================================== Package Arch Version Repository Size =============================================================================================== Installing: mariadb x86_64 3:10.3.17-1.module_el8.1.0+257+48736ea6 AppStream 6.1 M mariadb-server x86_64 3:10.3.17-1.module_el8.1.0+257+48736ea6 AppStream 16 M Installing dependencies: mariadb-common x86_64 3:10.3.17-1.module_el8.1.0+257+48736ea6 AppStream 62 k mariadb-connector-c x86_64 3.0.7-1.el8 AppStream 148 k mariadb-connector-c-config noarch 3.0.7-1.el8 AppStream 13 k mariadb-errmsg x86_64 3:10.3.17-1.module_el8.1.0+257+48736ea6 AppStream 232 k perl-DBD-MySQL x86_64 4.046-3.module_el8.1.0+203+e45423dc AppStream 156 k Installing weak dependencies: mariadb-backup x86_64 3:10.3.17-1.module_el8.1.0+257+48736ea6 AppStream 6.0 M mariadb-gssapi-server x86_64 3:10.3.17-1.module_el8.1.0+257+48736ea6 AppStream 49 k mariadb-server-utils x86_64 3:10.3.17-1.module_el8.1.0+257+48736ea6 AppStream 1.6 M Enabling module streams: mariadb 10.3 perl-DBD-MySQL 4.046 Transaction Summary =============================================================================================== 설치 10 Packages |
yum으로 MariaDB를 install 하면 위 화면이 시작되고 아래 화면으로 진행된다.
Total download size: 30 M Installed size: 171 M 패키지 다운로드중: (1/10): mariadb-common-10.3.17-1.module_el8.1.0+257+48736ea6.x 55 kB/s | 62 kB 00:01 (2/10): mariadb-connector-c-3.0.7-1.el8.x86_64.rpm 40 kB/s | 148 kB 00:03 (3/10): mariadb-connector-c-config-3.0.7-1.el8.noarch.rpm 28 kB/s | 13 kB 00:00 (4/10): mariadb-errmsg-10.3.17-1.module_el8.1.0+257+48736ea6.x 40 kB/s | 232 kB 00:05 (5/10): mariadb-gssapi-server-10.3.17-1.module_el8.1.0+257+487 64 kB/s | 49 kB 00:00 (6/10): mariadb-backup-10.3.17-1.module_el8.1.0+257+48736ea6.x 42 kB/s | 6.0 MB 02:25 (7/10): mariadb-10.3.17-1.module_el8.1.0+257+48736ea6.x86_64.r 42 kB/s | 6.1 MB 02:26 (8/10): perl-DBD-MySQL-4.046-3.module_el8.1.0+203+e45423dc.x86 51 kB/s | 156 kB 00:03 (9/10): mariadb-server-utils-10.3.17-1.module_el8.1.0+257+4873 60 kB/s | 1.6 MB 00:27 (10/10): mariadb-server-10.3.17-1.module_el8.1.0+257+48736ea6. 70 kB/s | 16 MB 03:53 ----------------------------------------------------------------------------------------------- 합계 125 kB/s | 30 MB 04:07 경고: /var/cache/dnf/AppStream-a520ed22b0a8a736/packages/mariadb-10.3.17-1.module_el8.1.0+257+48736ea6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY CentOS-8 - AppStream 1.6 MB/s | 1.6 kB 00:00 GPG키 0x8483C65D를 불러옵니다: 사용자 : "CentOS (CentOS Official Signing Key) <security@centos.org>" GPG 지문: 99DB 70FA E1D7 CE22 7FB6 4882 05B5 55B3 8483 C65D 출처 : /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial 성공적으로 가져온 키 트랜잭션 점검 실행 중 트랜잭션 검사가 성공했습니다. 트랜잭션 테스트 실행 중 트랜잭션 테스트가 완료되었습니다. 거래 실행 중 스크립틀릿 실행: mariadb-connector-c-3.0.7-1.el8.x86_64 1/1 준비 중입니다 : 1/1 Installing : mariadb-connector-c-config-3.0.7-1.el8.noarch 1/10 Installing : mariadb-common-3:10.3.17-1.module_el8.1.0+257+48736ea6.x86_64 2/10 Installing : mariadb-connector-c-3.0.7-1.el8.x86_64 3/10 Installing : perl-DBD-MySQL-4.046-3.module_el8.1.0+203+e45423dc.x86_64 4/10 Installing : mariadb-errmsg-3:10.3.17-1.module_el8.1.0+257+48736ea6.x86_64 5/10 Installing : mariadb-backup-3:10.3.17-1.module_el8.1.0+257+48736ea6.x86_64 6/10 Installing : mariadb-gssapi-server-3:10.3.17-1.module_el8.1.0+257+48736ea6.x86_6 7/10 Installing : mariadb-server-utils-3:10.3.17-1.module_el8.1.0+257+48736ea6.x86_64 8/10 스크립틀릿 실행: mariadb-server-3:10.3.17-1.module_el8.1.0+257+48736ea6.x86_64 9/10 Installing : mariadb-server-3:10.3.17-1.module_el8.1.0+257+48736ea6.x86_64 9/10 스크립틀릿 실행: mariadb-server-3:10.3.17-1.module_el8.1.0+257+48736ea6.x86_64 9/10 Installing : mariadb-3:10.3.17-1.module_el8.1.0+257+48736ea6.x86_64 10/10 스크립틀릿 실행: mariadb-3:10.3.17-1.module_el8.1.0+257+48736ea6.x86_64 10/10 확인 중 : mariadb-3:10.3.17-1.module_el8.1.0+257+48736ea6.x86_64 1/10 확인 중 : mariadb-backup-3:10.3.17-1.module_el8.1.0+257+48736ea6.x86_64 2/10 확인 중 : mariadb-common-3:10.3.17-1.module_el8.1.0+257+48736ea6.x86_64 3/10 확인 중 : mariadb-connector-c-3.0.7-1.el8.x86_64 4/10 확인 중 : mariadb-connector-c-config-3.0.7-1.el8.noarch 5/10 확인 중 : mariadb-errmsg-3:10.3.17-1.module_el8.1.0+257+48736ea6.x86_64 6/10 확인 중 : mariadb-gssapi-server-3:10.3.17-1.module_el8.1.0+257+48736ea6.x86_6 7/10 확인 중 : mariadb-server-3:10.3.17-1.module_el8.1.0+257+48736ea6.x86_64 8/10 확인 중 : mariadb-server-utils-3:10.3.17-1.module_el8.1.0+257+48736ea6.x86_64 9/10 확인 중 : perl-DBD-MySQL-4.046-3.module_el8.1.0+203+e45423dc.x86_64 10/10 설치됨: mariadb-3:10.3.17-1.module_el8.1.0+257+48736ea6.x86_64 mariadb-server-3:10.3.17-1.module_el8.1.0+257+48736ea6.x86_64 mariadb-backup-3:10.3.17-1.module_el8.1.0+257+48736ea6.x86_64 mariadb-gssapi-server-3:10.3.17-1.module_el8.1.0+257+48736ea6.x86_64 mariadb-server-utils-3:10.3.17-1.module_el8.1.0+257+48736ea6.x86_64 mariadb-common-3:10.3.17-1.module_el8.1.0+257+48736ea6.x86_64 mariadb-connector-c-3.0.7-1.el8.x86_64 mariadb-connector-c-config-3.0.7-1.el8.noarch mariadb-errmsg-3:10.3.17-1.module_el8.1.0+257+48736ea6.x86_64 perl-DBD-MySQL-4.046-3.module_el8.1.0+203+e45423dc.x86_64 완료되었습니다! |
완료후 MariaDB가 정상적으로 기동되는지 확인해 본다.
[root@localhost ~]# systemctl start mariadb [root@localhost ~]# systemctl status mariadb ● mariadb.service - MariaDB 10.3 database server Loaded: loaded (/usr/lib/systemd/system/mariadb.service; disabled; vendor preset: disabled) Active: active (running) since Mon 2020-01-20 16:05:33 KST; 10s ago Docs: man:mysqld(8) https://mariadb.com/kb/en/library/systemd/ Process: 41764 ExecStartPost=/usr/libexec/mysql-check-upgrade (code=exited, status=0/SUCCESS) Process: 41629 ExecStartPre=/usr/libexec/mysql-prepare-db-dir mariadb.service (code=exited, > Process: 41605 ExecStartPre=/usr/libexec/mysql-check-socket (code=exited, status=0/SUCCESS) Main PID: 41732 (mysqld) Status: "Taking your SQL requests now..." Tasks: 30 (limit: 4873) Memory: 108.6M CGroup: /system.slice/mariadb.service └─41732 /usr/libexec/mysqld --basedir=/usr 1월 20 16:05:32 localhost.localdomain mysql-prepare-db-dir[41629]: Please report any problems> 1월 20 16:05:32 localhost.localdomain mysql-prepare-db-dir[41629]: The latest information abo> 1월 20 16:05:32 localhost.localdomain mysql-prepare-db-dir[41629]: You can find additional in> 1월 20 16:05:32 localhost.localdomain mysql-prepare-db-dir[41629]: http://dev.mysql.com 1월 20 16:05:32 localhost.localdomain mysql-prepare-db-dir[41629]: Consider joining MariaDB's> 1월 20 16:05:32 localhost.localdomain mysql-prepare-db-dir[41629]: https://mariadb.org/get-in> 1월 20 16:05:33 localhost.localdomain mysqld[41732]: 2020-01-20 16:05:33 0 [Note] /usr/libexe> 1월 20 16:05:33 localhost.localdomain mysqld[41732]: 2020-01-20 16:05:33 0 [Warning] Could no> 1월 20 16:05:33 localhost.localdomain mysqld[41732]: 2020-01-20 16:05:33 0 [Warning] Changed > 1월 20 16:05:33 localhost.localdomain systemd[1]: Started MariaDB 10.3 database server. |
위와 같이 기동된것을 알수 있고
서버가 재부팅될때마다 위 명령을 진행하기 번거럽다면 아래 명령어를 이용하자.
systemctl enable mariadb
이제 마리아DB에 접속해보자
(root 계정의 비밀번호는 아직 없으므로 바로 접속가능함)
[root@localhost ~]# mysql -u root
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 9
Server version: 10.3.17-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
끝!
암호는 welcome3033으로 바꾸봄!
linux Apache 설치 및 방화벽 설정, 부팅시 서비스 기동 (0) | 2020.06.09 |
---|---|
리눅스 tomcat9 설치 (0) | 2020.06.09 |
centOS 설치 방법 (0) | 2020.01.20 |
vmware player 설치기 (0) | 2020.01.20 |
solaris os, 메모리 많이 사용하는 프로세스 확인하기 (0) | 2019.11.22 |