요즘 웹서버의 대세는 APM에서 Nginx+Php+MariaDB 로 흘러가는 형국인 것 같다.
테스트로 CentOS 6.4 x64에 MariaDB를 설치해보기로 한다.
우선 yum으로 설치가 안되기에 repository에 등록을 시키고 yum으로 설치해보자.
# vi /etc/yum.repos.d/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 update
# yum install MariaDB-server MariaDB-client <=대소문자 구분
# service mysql start
Starting MySQL.. SUCCESS!
MariaDB 실행...
1. mysql 암호 설정
# mysqladmin -u root password
New password:
Confirm new password:
2. MariaDB 실행
# mysql -u root -p mysql
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 8
Server version: 5.5.32-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 [mysql]>
MariaDB [mysql]>
MariaDB [mysql]> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| test |
+--------------------+
4 rows in set (0.00 sec)