우분투 MariaDB 설치

Jmnote (토론 | 기여)님의 2017년 8월 29일 (화) 20:55 판 (새 문서: {{다른뜻|CentOS MariaDB 설치}} ;우분투 MariaDB 설치 ==확인== <source lang='console'> root@zetawiki:~# apt list mariadb-server -a Listing... Done mariadb-server/xenial-upd...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
  다른 뜻에 대해서는 CentOS MariaDB 설치 문서를 참조하십시오.
우분투 MariaDB 설치

1 확인

root@zetawiki:~# apt list mariadb-server -a
Listing... Done
mariadb-server/xenial-updates,xenial-updates,xenial-security,xenial-security 10.0.31-0ubuntu0.16.04.2 all
mariadb-server/xenial,xenial 10.0.24-7 all

2 설치

root@zetawiki:~# apt install mariadb-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-4.4.0-83 linux-headers-4.4.0-83-generic linux-headers-4.4.0-87
  linux-headers-4.4.0-87-generic linux-headers-4.4.0-89 linux-headers-4.4.0-89-generic
  linux-headers-4.4.0-91 linux-headers-4.4.0-91-generic linux-image-4.4.0-83-generic
  linux-image-4.4.0-87-generic linux-image-4.4.0-89-generic linux-image-4.4.0-91-generic
  linux-image-extra-4.4.0-83-generic linux-image-extra-4.4.0-87-generic
  linux-image-extra-4.4.0-89-generic linux-image-extra-4.4.0-91-generic
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  libaio1 libcgi-fast-perl libcgi-pm-perl libdbd-mysql-perl libdbi-perl libencode-locale-perl
  libfcgi-perl libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl libhttp-date-perl
  libhttp-message-perl libio-html-perl liblwp-mediatypes-perl libmysqlclient20 libtimedate-perl
  liburi-perl mariadb-client-10.0 mariadb-client-core-10.0 mariadb-common mariadb-server-10.0
  mariadb-server-core-10.0 mysql-common
Suggested packages:
  libclone-perl libmldbm-perl libnet-daemon-perl libsql-statement-perl libdata-dump-perl
  libipc-sharedcache-perl libwww-perl mailx mariadb-test tinyca
The following NEW packages will be installed:
  libaio1 libcgi-fast-perl libcgi-pm-perl libdbd-mysql-perl libdbi-perl libencode-locale-perl
  libfcgi-perl libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl libhttp-date-perl
  libhttp-message-perl libio-html-perl liblwp-mediatypes-perl libmysqlclient20 libtimedate-perl
  liburi-perl mariadb-client-10.0 mariadb-client-core-10.0 mariadb-common mariadb-server
  mariadb-server-10.0 mariadb-server-core-10.0 mysql-common
0 upgraded, 24 newly installed, 0 to remove and 66 not upgraded.
Need to get 16.8 MB of archives.
After this operation, 146 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://kr.archive.ubuntu.com/ubuntu xenial-updates/main amd64 mysql-common all 5.7.19-0ubuntu0.16.04.1 [15.7 kB]
Get:2 http://kr.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 mariadb-common all 10.0.31-0ubuntu0.16.04.2 [16.0 kB]
Get:3 http://kr.archive.ubuntu.com/ubuntu xenial/main amd64 libdbi-perl amd64 1.634-1build1 [743 kB]
... (생략)
Setting up libhttp-message-perl (6.11-1) ...################################################...] 
Setting up mariadb-server (10.0.31-0ubuntu0.16.04.2) ...######################################.] 
Processing triggers for libc-bin (2.23-0ubuntu9) ...###########################################] 
Processing triggers for systemd (229-4ubuntu17) ...
Processing triggers for ureadahead (0.100.0-19) ...

3 확인 2

root@zetawiki:~# apt list mariadb-server -a
Listing... Done
mariadb-server/xenial-updates,xenial-updates,xenial-security,xenial-security,now 10.0.31-0ubuntu0.16.04.2 all [installed]
mariadb-server/xenial,xenial 10.0.24-7 all
root@zetawiki:~# netstat -tnlp | grep 3306
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      27469/mysqld 
root@zetawiki:~# ps 27469
  PID TTY      STAT   TIME COMMAND
27469 ?        Sl     0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-
root@zetawiki:~# /usr/sbin/mysqld -V
/usr/sbin/mysqld  Ver 10.0.31-MariaDB-0ubuntu0.16.04.2 for debian-linux-gnu on x86_64 (Ubuntu 16.04)
170829 20:55:00 [Note] /usr/sbin/mysqld (mysqld 10.0.31-MariaDB-0ubuntu0.16.04.2) starting as process 27699 ...

4 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}