내블로그
CentOS 6 + MariaDB 10 설치 본문
1. CentOS 6 설치
가. selinux 설정 disabled
나. 부팅시 동작하는 데몬중 사용하지 않는 데몬 정리
chkconfig --del iptables chkconfig --del ip6tables chkconfig --del postfix |
다. 최신버전으로 OS 업데이트
yum update |
2. MariaDB 설치
가. repository 설정(/etc/yum.repos.d/mariadb.repo)
[mariadb] name = MariaDB baseurl=http://yum.mariadb.org/10.0/centos6-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 |
나. MariaDB 설치 및 부팅시 동작하도록 설정
yum install MariaDB-server chkconfig --level 3 mysql on |
다. MariaDB 보안설정(mysql_secure_installation 실행)
Enter current password for root (enter for none): =>엔터 Set root password? [Y/n] => y 엔터 New password: => 패스워드 Re-enter new password: => 패스워드 Remove anonymous users? [Y/n] => y 엔터 Disallow root login remotely? [Y/n] => y 엔터 Remove test database and access to it? [Y/n] => y 엔터 Reload privilege tables now? [Y/n] => y 엔터 |
라. 원격지에서 접속할 수 있도록 MariaDB 계정설정
grant all privileges on *.* to 'DB계정'@'IP주소' identified by '패스워드' with grant option; flush privileges; |
마. my.cnf 설정
cp /usr/share/mysql/my-innodb-heavy-4G.cnf /etc/my.cnf 설정 추가 [client] default-character-set = utf8 [mysqld] init_connect = "SET collation_connection=utf8_general_ci" init_connect = "SET NAMES utf8" character-set-server = utf8 collation-server = utf8_general_ci skip-character-set-client-handshake [mysqldump] default-character-set = utf8 [mysql] default-character-set = utf8 |
'DataBase > MySQL&MariaDB' 카테고리의 다른 글
테이블 파티셔닝 (0) | 2016.11.28 |
---|---|
Dynamic Columns(JSON) (0) | 2016.11.18 |
CentOS 6.6 + mysql 5.5 (0) | 2015.03.30 |
계정생성 (0) | 2014.07.24 |
DB 백업 및 복구 명령어 (0) | 2014.07.23 |