Development/Servers

MariaDB

석찬 2013. 12. 12. 13:51
반응형

이런 여유가 있어서는 안되지만...

여유가 생겨서 이것 저것 들여다 보다가

MySQL쌍둥이 여동생쯤 된다는 MariaDB란걸 사용해 보자고 마음먹게 되었다.


https://mariadb.org/


저기 가면 다운로드부터 OS별 설치 방법까지 아주 친절하게 설명이 잘 되어 있다.


내가 개발서버로 사용하고 있는 우분투 12.04 LTS precise 의 경우에

KAIST미러서버에서 받을 경우 아래와 같이 진행하면 된다.


출처는 MariaDB공식 사이트

https://downloads.mariadb.org/mariadb/repositories/#mirror=kaist&distro=Ubuntu&distro_release=precise&version=5.5


Here are the commands to run to add MariaDB to your system:

sudo apt-get install python-software-properties sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db sudo add-apt-repository 'deb http://ftp.kaist.ac.kr/mariadb/repo/5.5/ubuntu precise main'

Once the key is imported and the repository added you can install MariaDB with:

sudo apt-get update sudo apt-get install mariadb-server

See Installing MariaDB .deb Files for more information.

You can also create a custom MariaDB sources.list file. To do so, copy and paste the following into a file under/etc/apt/sources.list.d/(we suggest naming the file MariaDB.list or something similar), or add it to the bottom of your/etc/apt/sources.list file.

# MariaDB 5.5 repository list - created 2013-12-12 04:45 UTC # http://mariadb.org/mariadb/repositories/ deb http://ftp.kaist.ac.kr/mariadb/repo/5.5/ubuntu precise main deb-src http://ftp.kaist.ac.kr/mariadb/repo/5.5/ubuntu precise main


일단 이렇게 설치를 마무리 하고...

mysql -uname -p 하고 실행을 하니....

schkim@SINS-DEV:/etc/apt$ mysql -uxxxxxx -p

Enter password: 

Welcome to the MariaDB monitor.  Commands end with ; or \g.

Your MariaDB connection id is 37

Server version: 5.5.34-MariaDB-1~precise mariadb.org binary distribution


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)]> show databases;

+--------------------+

| Database           |

+--------------------+

| information_schema |

| XXXX               |

| XXX                |

| mysql              |

| performance_schema |

| test               |

+--------------------+

6 rows in set (0.01 sec)


MariaDB [(none)]>  


떡하니 MySQL을 대신해서...

몇가지 확인을 해봤는데 돌아가던것들 모두 정상...


실수로 DBMS 성공적으로 교체???




반응형

'Development > Servers' 카테고리의 다른 글

SVN을 사용하기 위해 발버둥 치면서...  (0) 2014.01.08
Tomcat autoReconnect  (0) 2013.12.24
우분투 서버에서 SVN  (0) 2013.05.28
우분투 설정중 Oracle Java 설치하기  (0) 2013.05.02
우분투 서버 초기 설정  (0) 2013.03.15