1. apt-get install 명령어를 이용해 mariadb-server와 Python 라이브러리를 설치합니다.
root@controller:~# apt-get install mariadb-server python-pymysql Reading package lists… Done Building dependency tree
Reading state information… Done 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 libterm-readkey-perl 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 python-pymysql-doc 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 libterm-readkey-perl 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 python-pymysql 0 upgraded, 26 newly installed, 0 to remove and 0 not upgraded. Need to get 16.5 MB of archives. After this operation, 144 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 mysql-common all 5.7.12-0ubuntu1 [17.0 kB] Get:2 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 mariadb-common all 10.0.24-7 [16.6 kB] … Setting up mariadb-server (10.0.24-7) … Processing triggers for libc-bin (2.23-0ubuntu3) … Processing triggers for systemd (229-4ubuntu6) … Processing triggers for ureadahead (0.100.0-19) …