[Issue tracking tool] 이슈 관리 툴인 YONA 설치 #1 MariaDB 설치
CentOS 7 기준입니다.
- MariaDB 다운로드 및 설치를 위한 환경 설정
- MariaDB 다운로드 및 설치를위한 repository entry를 생성
자세한 설치 경로는 아래 링크를 참조.
https://downloads.mariadb.org/mariadb/repositories/#mirror=kaist&distro=CentOS&distro_release=centos7-amd64--centos7&version=10.2 - super user나 Root 계정으로 한다.
$sudo vi /etc/yum.repos.d/MiriaDB.repo
MiriaDB.repo 파일내용
- MariaDB 설치
$sudo yum install MariaDB-server MariaDB-client
- 다음과 같은 리스트가 나타나면 y
- 다운로드 및 설치가 진행된다.
- 다음과 같은 화면이 나타나면, y를 눌러서 계속해서 설치를 진행
- 설치가 완료되면 아래와 같은 화면이 나타난다.(complete!)
- 설치 확인
$rpm -qa | grep MariaDB
- DB 시작
$sudo systemctl start mariadb - password 변경
$/usr/bin/mysqladmin -u root password 'password'
Note : 'password'의 값은 사용자가 다르게 지정 하셔도 됩니다. - 동작 확인
$netstat -anp | grep 3306
- MariaDB User및 Database 생성
DB 접속
$mysql -u root -p
yona에서 사용할 유저 생성
MariaDB [(none)]> create user 'yona'@'localhost' IDENTIFIED BY 'password';
Query OK, 0 rows affected (0.00 sec)DB 생성 UTF8 확장문자열을 저장할 수 있는 포맷으로 지정해서 생성
MariaDB [(none)]> set global innodb_file_format = BARRACUDA;
Query OK, 0 rows affected, 1 warning (0.00 sec)
MariaDB [(none)]> set global innodb_file_format_max = BARRACUDA;
Query OK, 0 rows affected, 1 warning (0.00 sec)
MariaDB [(none)]> set global innodb_large_prefix = ON;
Query OK, 0 rows affected, 1 warning (0.00 sec)database 생성 및 utf-8확장 문자열을 저장하는 포멧으로 지정
MariaDB [(none)]> create database yona
-> DEFAULT CHARACTER SET utf8mb4
-> DEFAULT COLLATE utf8mb4_bin
-> ;
Query OK, 1 row affected (0.00 sec)yona database에 yona 유저가 사용할 권리를 할당
MariaDB [(none)]> GRANT ALL ON yona.* to 'yona'@'localhost';
Query OK, 0 rows affected (0.00 sec)커멘드에서 나온 뒤 접근 및 생성한 DB가 사용가능한 지 확인.
exit
$mysql -u yona -p'password'
/etc/my.cnf 파일을 만들어서 아래 내용을 추가
[client]
default-character-set=utf8mb4
[mysql]
default-character-set=utf8mb4
[mysqld]
collation-server=utf8mb4_unicode_ci
init-connect='SET NAMES utf8mb4'
character-set-server=utf8mb4
lower_case_table_names=1
innodb_file_format=barracuda
innodb_large_prefix=on
다음 번엔 Yona를 다운 받아서 설치하는 것을 올리겠습니다.
즐거운 하루가 되십시오. Have a nice day.
Leave [Issue tracking tool] 이슈 관리 툴인 YONA 설치 #1 MariaDB 설치 to:
Read more #kr posts
Best Posts From chuwo
We have not curated any of chuwo's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.