MariaDB 10 설치
확인
rpm -qa | grep mariadb
또는yum list installed maria*
또는yum list installed mysql*
yum 삭제
http://failsetting.blogspot.kr/2016/11/centos7-yum-mariadb.htmlRepository 설정
https://downloads.mariadb.org/mariadb/repositories 이동
OS 선택 : stable 중 제일 높은걸로vi /etc/yum.repos.d/MariaDB.repo
후 아래 내용 추가, 저장1
2
3
4
5
6# MariaDB 10.2 CentOS repository list - created 2017-10-18 13:47 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.2/centos7-amd64
gpgkey=https://yum.m설치
yum install MariaDB-server MariaDB-client
설정
`/etc/my.cnf’ 에서1
2
3[mysqld]
character-set-server=utf8
collation-server=utf8_general_ci시작
service mariadb start
또는 CentOS7 에서는systemctl start mariadb
비번 번경
1
2
3# mysqladmin password
New password:
Confirm new password:
추후 재변경mysqladmin -u root password -p
접속
mysql -uroot -p
외부에서 root 접근 허용
1
2
3
4> INSERT INTO mysql.user (host, user, ssl_cipher, x509_issuer, x509_subject, authentication_string, password) VALUES ('%', 'root', '', '', '', '', password('패스워드'));
> grant all privileges on *.* to 'root'@'%' WITH GRANT OPTION;
> grant all on *.* to 'root'@'%';
> flush privileges;
방화벽 포트추가 : http://yona.sky12.kr/admin/tech/issue/24
- 부팅시 자동시작
chkconfig mysql on
또는 CentOS7systemctl enable mariadb.service
chkconfig --list mysql
또는systemctl status mariadb
참조링크
MariaDB 10.1 Binary Install without yum or dnf
https://m.blog.naver.com/PostView.nhn?blogId=wizardkyn&logNo=220618501573&proxyReferer=https%3A%2F%2Fwww.google.co.kr%2F