yum으로 설치가 안되기 때문에 repository를 업데이트 하고 설치를 해야한다.
$ vi MariaDB.repo [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/5.5/centos6-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1
저장하고 나서 yum 업데이트를 하자.
$ yum update $ yum install MariaDB-server MariaDB-client
yum 업데이트를 하고 나서, mariadb server/client 둘 다 설치한다.
$ service mysql start Starting MySQL.. SUCCESS!
mariadb 를 서비스에 등록하자.
$ mysqladmin -u root password New password: Confirm new password:
mariadb 패스워드 설정.
$ mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 2 Server version: 5.5.34-MariaDB MariaDB Server Copyright (c) 2000, 2013, Oracle, Monty Program Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> MariaDB [(none)]> MariaDB [(none)]> MariaDB [(none)]> MariaDB [(none)]> MariaDB [(none)]> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | performance_schema | | test | +--------------------+ 4 rows in set (0.00 sec) MariaDB [(none)]>
설정한 패스워드로 mariadb 접속!
yum으로 설치한 패키지 경로 알아내기
$ rpm -ql MariaDB-server.x86_64 | grep cnf
/etc/my.cnf.d
/etc/my.cnf.d/server.cnf
/usr/share/mysql/my-huge.cnf
/usr/share/mysql/my-innodb-heavy-4G.cnf
/usr/share/mysql/my-large.cnf
/usr/share/mysql/my-medium.cnf
/usr/share/mysql/my-small.cnf