{"id":310,"date":"2014-12-21T02:15:05","date_gmt":"2014-12-20T17:15:05","guid":{"rendered":"http:\/\/yokensaka.com\/centos\/?p=310"},"modified":"2015-01-04T20:43:23","modified_gmt":"2015-01-04T11:43:23","slug":"centos7-mariadb%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"http:\/\/yokensaka.com\/centos\/?p=310","title":{"rendered":"CentOS 7 MariaDB\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b5\u30fc\u30d0(MariaDB)<br \/>\nCentOS7 \u3067\u306f\u3001MySQL\u3067\u306a\u304f\u4e92\u63db\u306e MariaDB \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002 <\/p>\n<pre>[root@server1 ~]# yum -y install mariadb-server\r\n\u8aad\u307f\u8fbc\u3093\u3060\u30d7\u30e9\u30b0\u30a4\u30f3:fastestmirror, langpacks, priorities\r\nLoading mirror speeds from cached hostfile\r\n * base: ftp.riken.jp\r\n * centosplus: mirrors.btte.net\r\n * epel: ftp.cuhk.edu.hk\r\n * extras: ftp.riken.jp\r\n * rpmforge: ftp.kddilabs.jp\r\n * updates: mirrors.btte.net\r\n45 packages excluded due to repository priority protections\r\n\u4f9d\u5b58\u6027\u306e\u89e3\u6c7a\u3092\u3057\u3066\u3044\u307e\u3059\r\n--> \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u78ba\u8a8d\u3092\u5b9f\u884c\u3057\u3066\u3044\u307e\u3059\u3002\r\n---> \u30d1\u30c3\u30b1\u30fc\u30b8 mariadb-galera-server.x86_64 1:5.5.37-2.el7 \u3092 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\n--> \u4f9d\u5b58\u6027\u306e\u51e6\u7406\u3092\u3057\u3066\u3044\u307e\u3059: mariadb-galera-common(x86-64) = 1:5.5.37-2.el7 \u306e\u30d1\u30c3\u30b1\u30fc\u30b8: 1:mariadb-galera-server-5.5.37-2.el7.x86_64\r\n--> \u4f9d\u5b58\u6027\u306e\u51e6\u7406\u3092\u3057\u3066\u3044\u307e\u3059: galera >= 25.3.3 \u306e\u30d1\u30c3\u30b1\u30fc\u30b8: 1:mariadb-galera-server-5.5.37-2.el7.x86_64\r\n--> \u4f9d\u5b58\u6027\u306e\u51e6\u7406\u3092\u3057\u3066\u3044\u307e\u3059: perl-DBI \u306e\u30d1\u30c3\u30b1\u30fc\u30b8: 1:mariadb-galera-server-5.5.37-2.el7.x86_64\r\n--> \u4f9d\u5b58\u6027\u306e\u51e6\u7406\u3092\u3057\u3066\u3044\u307e\u3059: perl-DBD-MySQL \u306e\u30d1\u30c3\u30b1\u30fc\u30b8: 1:mariadb-galera-server-5.5.37-2.el7.x86_64\r\n--> \u4f9d\u5b58\u6027\u306e\u51e6\u7406\u3092\u3057\u3066\u3044\u307e\u3059: perl(DBI) \u306e\u30d1\u30c3\u30b1\u30fc\u30b8: 1:mariadb-galera-server-5.5.37-2.el7.x86_64\r\n--> \u4f9d\u5b58\u6027\u306e\u51e6\u7406\u3092\u3057\u3066\u3044\u307e\u3059: mysql(x86-64) \u306e\u30d1\u30c3\u30b1\u30fc\u30b8: 1:mariadb-galera-server-5.5.37-2.el7.x86_64\r\n--> \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u78ba\u8a8d\u3092\u5b9f\u884c\u3057\u3066\u3044\u307e\u3059\u3002\r\n---> \u30d1\u30c3\u30b1\u30fc\u30b8 galera.x86_64 0:25.3.5-7.el7 \u3092 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\n--> \u4f9d\u5b58\u6027\u306e\u51e6\u7406\u3092\u3057\u3066\u3044\u307e\u3059: libboost_program_options.so.1.53.0()(64bit) \u306e\u30d1\u30c3\u30b1\u30fc\u30b8: galera-25.3.5-7.el7.x86_64\r\n---> \u30d1\u30c3\u30b1\u30fc\u30b8 mariadb.x86_64 1:5.5.37-1.el7_0 \u3092 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\n---> \u30d1\u30c3\u30b1\u30fc\u30b8 mariadb-galera-common.x86_64 1:5.5.37-2.el7 \u3092 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\n---> \u30d1\u30c3\u30b1\u30fc\u30b8 perl-DBD-MySQL.x86_64 0:4.023-5.el7 \u3092 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\n---> \u30d1\u30c3\u30b1\u30fc\u30b8 perl-DBI.x86_64 0:1.627-4.el7 \u3092 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\n--> \u4f9d\u5b58\u6027\u306e\u51e6\u7406\u3092\u3057\u3066\u3044\u307e\u3059: perl(RPC::PlServer) >= 0.2001 \u306e\u30d1\u30c3\u30b1\u30fc\u30b8: perl-DBI-1.627-4.el7.x86_64\r\n--> \u4f9d\u5b58\u6027\u306e\u51e6\u7406\u3092\u3057\u3066\u3044\u307e\u3059: perl(RPC::PlClient) >= 0.2000 \u306e\u30d1\u30c3\u30b1\u30fc\u30b8: perl-DBI-1.627-4.el7.x86_64\r\n--> \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u78ba\u8a8d\u3092\u5b9f\u884c\u3057\u3066\u3044\u307e\u3059\u3002\r\n---> \u30d1\u30c3\u30b1\u30fc\u30b8 boost-program-options.x86_64 0:1.53.0-18.el7 \u3092 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\n---> \u30d1\u30c3\u30b1\u30fc\u30b8 perl-PlRPC.noarch 0:0.2020-14.el7 \u3092 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\n--> \u4f9d\u5b58\u6027\u306e\u51e6\u7406\u3092\u3057\u3066\u3044\u307e\u3059: perl(Net::Daemon) >= 0.13 \u306e\u30d1\u30c3\u30b1\u30fc\u30b8: perl-PlRPC-0.2020-14.el7.noarch\r\n--> \u4f9d\u5b58\u6027\u306e\u51e6\u7406\u3092\u3057\u3066\u3044\u307e\u3059: perl(Net::Daemon::Test) \u306e\u30d1\u30c3\u30b1\u30fc\u30b8: perl-PlRPC-0.2020-14.el7.noarch\r\n--> \u4f9d\u5b58\u6027\u306e\u51e6\u7406\u3092\u3057\u3066\u3044\u307e\u3059: perl(Net::Daemon::Log) \u306e\u30d1\u30c3\u30b1\u30fc\u30b8: perl-PlRPC-0.2020-14.el7.noarch\r\n--> \u4f9d\u5b58\u6027\u306e\u51e6\u7406\u3092\u3057\u3066\u3044\u307e\u3059: perl(Compress::Zlib) \u306e\u30d1\u30c3\u30b1\u30fc\u30b8: perl-PlRPC-0.2020-14.el7.noarch\r\n--> \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u78ba\u8a8d\u3092\u5b9f\u884c\u3057\u3066\u3044\u307e\u3059\u3002\r\n---> \u30d1\u30c3\u30b1\u30fc\u30b8 perl-IO-Compress.noarch 0:2.061-2.el7 \u3092 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\n--> \u4f9d\u5b58\u6027\u306e\u51e6\u7406\u3092\u3057\u3066\u3044\u307e\u3059: perl(Compress::Raw::Zlib) >= 2.061 \u306e\u30d1\u30c3\u30b1\u30fc\u30b8: perl-IO-Compress-2.061-2.el7.noarch\r\n--> \u4f9d\u5b58\u6027\u306e\u51e6\u7406\u3092\u3057\u3066\u3044\u307e\u3059: perl(Compress::Raw::Bzip2) >= 2.061 \u306e\u30d1\u30c3\u30b1\u30fc\u30b8: perl-IO-Compress-2.061-2.el7.noarch\r\n---> \u30d1\u30c3\u30b1\u30fc\u30b8 perl-Net-Daemon.noarch 0:0.48-5.el7 \u3092 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\n--> \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u78ba\u8a8d\u3092\u5b9f\u884c\u3057\u3066\u3044\u307e\u3059\u3002\r\n---> \u30d1\u30c3\u30b1\u30fc\u30b8 perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7 \u3092 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\n---> \u30d1\u30c3\u30b1\u30fc\u30b8 perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7 \u3092 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\n--> \u4f9d\u5b58\u6027\u89e3\u6c7a\u3092\u7d42\u4e86\u3057\u307e\u3057\u305f\u3002\r\n\r\n\u4f9d\u5b58\u6027\u3092\u89e3\u6c7a\u3057\u307e\u3057\u305f\r\n\r\n====================================================================================================\r\n Package                          \u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u30fc\r\n                                                  \u30d0\u30fc\u30b8\u30e7\u30f3                 \u30ea\u30dd\u30b8\u30c8\u30ea\u30fc      \u5bb9\u91cf\r\n====================================================================================================\r\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e2d:\r\n mariadb-galera-server            x86_64          1:5.5.37-2.el7             epel              11 M\r\n\u4f9d\u5b58\u6027\u95a2\u9023\u3067\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3057\u307e\u3059:\r\n boost-program-options            x86_64          1.53.0-18.el7              base             154 k\r\n galera                           x86_64          25.3.5-7.el7               epel             1.1 M\r\n mariadb                          x86_64          1:5.5.37-1.el7_0           updates          8.9 M\r\n mariadb-galera-common            x86_64          1:5.5.37-2.el7             epel             212 k\r\n perl-Compress-Raw-Bzip2          x86_64          2.061-3.el7                base              32 k\r\n perl-Compress-Raw-Zlib           x86_64          1:2.061-4.el7              base              57 k\r\n perl-DBD-MySQL                   x86_64          4.023-5.el7                base             140 k\r\n perl-DBI                         x86_64          1.627-4.el7                base             802 k\r\n perl-IO-Compress                 noarch          2.061-2.el7                base             260 k\r\n perl-Net-Daemon                  noarch          0.48-5.el7                 base              51 k\r\n perl-PlRPC                       noarch          0.2020-14.el7              base              36 k\r\n\r\n\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u8981\u7d04\r\n====================================================================================================\r\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb  1 \u30d1\u30c3\u30b1\u30fc\u30b8 (+11 \u500b\u306e\u4f9d\u5b58\u95a2\u4fc2\u306e\u30d1\u30c3\u30b1\u30fc\u30b8)\r\n\r\n\u7dcf\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u5bb9\u91cf: 23 M\r\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5bb9\u91cf: 113 M\r\nDownloading packages:\r\n(1\/12): boost-program-options-1.53.0-18.el7.x86_64.rpm                       | 154 kB  00:00:00\r\n(2\/12): mariadb-galera-common-5.5.37-2.el7.x86_64.rpm                        | 212 kB  00:00:00\r\n(3\/12): galera-25.3.5-7.el7.x86_64.rpm                                       | 1.1 MB  00:00:00\r\n(4\/12): perl-Compress-Raw-Zlib-2.061-4.el7.x86_64.rpm                        |  57 kB  00:00:00\r\n(5\/12): perl-DBI-1.627-4.el7.x86_64.rpm                                      | 802 kB  00:00:00\r\n(6\/12): perl-DBD-MySQL-4.023-5.el7.x86_64.rpm                                | 140 kB  00:00:00\r\n(7\/12): perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64.rpm                       |  32 kB  00:00:00\r\n(8\/12): perl-Net-Daemon-0.48-5.el7.noarch.rpm                                |  51 kB  00:00:00\r\n(9\/12): perl-PlRPC-0.2020-14.el7.noarch.rpm                                  |  36 kB  00:00:00\r\n(10\/12): perl-IO-Compress-2.061-2.el7.noarch.rpm                             | 260 kB  00:00:00\r\n(11\/12): mariadb-5.5.37-1.el7_0.x86_64.rpm                                   | 8.9 MB  00:00:02\r\n(12\/12): mariadb-galera-server-5.5.37-2.el7.x86_64.rpm                       |  11 MB  00:00:02\r\n----------------------------------------------------------------------------------------------------\r\n\u5408\u8a08                                                                6.4 MB\/s |  23 MB  00:00:03\r\nRunning transaction check\r\nRunning transaction test\r\nTransaction test succeeded\r\nRunning transaction\r\n  \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e2d          : 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64                        1\/12\r\n  \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e2d          : 1:mariadb-galera-common-5.5.37-2.el7.x86_64                        2\/12\r\n  \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e2d          : 1:mariadb-5.5.37-1.el7_0.x86_64                                    3\/12\r\n  \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e2d          : boost-program-options-1.53.0-18.el7.x86_64                         4\/12\r\n  \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e2d          : galera-25.3.5-7.el7.x86_64                                         5\/12\r\n  \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e2d          : perl-Net-Daemon-0.48-5.el7.noarch                                  6\/12\r\n  \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e2d          : perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64                         7\/12\r\n  \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e2d          : perl-IO-Compress-2.061-2.el7.noarch                                8\/12\r\n  \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e2d          : perl-PlRPC-0.2020-14.el7.noarch                                    9\/12\r\n  \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e2d          : perl-DBI-1.627-4.el7.x86_64                                       10\/12\r\n  \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e2d          : perl-DBD-MySQL-4.023-5.el7.x86_64                                 11\/12\r\n  \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e2d          : 1:mariadb-galera-server-5.5.37-2.el7.x86_64                       12\/12\r\n  \u691c\u8a3c\u4e2d                  : perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64                         1\/12\r\n  \u691c\u8a3c\u4e2d                  : perl-Net-Daemon-0.48-5.el7.noarch                                  2\/12\r\n  \u691c\u8a3c\u4e2d                  : boost-program-options-1.53.0-18.el7.x86_64                         3\/12\r\n  \u691c\u8a3c\u4e2d                  : 1:mariadb-5.5.37-1.el7_0.x86_64                                    4\/12\r\n  \u691c\u8a3c\u4e2d                  : 1:mariadb-galera-common-5.5.37-2.el7.x86_64                        5\/12\r\n  \u691c\u8a3c\u4e2d                  : 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64                        6\/12\r\n  \u691c\u8a3c\u4e2d                  : perl-PlRPC-0.2020-14.el7.noarch                                    7\/12\r\n  \u691c\u8a3c\u4e2d                  : galera-25.3.5-7.el7.x86_64                                         8\/12\r\n  \u691c\u8a3c\u4e2d                  : perl-DBI-1.627-4.el7.x86_64                                        9\/12\r\n  \u691c\u8a3c\u4e2d                  : 1:mariadb-galera-server-5.5.37-2.el7.x86_64                       10\/12\r\n  \u691c\u8a3c\u4e2d                  : perl-DBD-MySQL-4.023-5.el7.x86_64                                 11\/12\r\n  \u691c\u8a3c\u4e2d                  : perl-IO-Compress-2.061-2.el7.noarch                               12\/12\r\n\r\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb:\r\n  mariadb-galera-server.x86_64 1:5.5.37-2.el7\r\n\r\n\u4f9d\u5b58\u6027\u95a2\u9023\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f:\r\n  boost-program-options.x86_64 0:1.53.0-18.el7      galera.x86_64 0:25.3.5-7.el7\r\n  mariadb.x86_64 1:5.5.37-1.el7_0                   mariadb-galera-common.x86_64 1:5.5.37-2.el7\r\n  perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7      perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7\r\n  perl-DBD-MySQL.x86_64 0:4.023-5.el7               perl-DBI.x86_64 0:1.627-4.el7\r\n  perl-IO-Compress.noarch 0:2.061-2.el7             perl-Net-Daemon.noarch 0:0.48-5.el7\r\n  perl-PlRPC.noarch 0:0.2020-14.el7\r\n\r\n\u5b8c\u4e86\u3057\u307e\u3057\u305f!<\/pre>\n<p>\u25a0MariaDB\u8a2d\u5b9a<\/p>\n<pre>[root@server1 ~]# vi \/etc\/my.cnf.d\/server.cnf\r\n[mysqld]\r\ncharacter-set-server = utf8\u3000\u2190\u3000\u8ffd\u52a0(MariaDB\u30b5\u30fc\u30d0\u30fc\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u3092UTF-8\u306b\u3059\u308b)<\/pre>\n<p>\u25a0MariaDB\u8d77\u52d5<\/p>\n<pre>[root@server1 ~]# systemctl start mariadb<\/pre>\n<p>\u25a0MariaDB\u81ea\u52d5\u8d77\u52d5\u8a2d\u5b9a<\/p>\n<pre>[root@server1 ~]# systemctl enable mariadb\r\nln -s '\/usr\/lib\/systemd\/system\/mariadb.service' '\/etc\/systemd\/system\/multi-user.target.wants\/mariadb.service'<\/pre>\n<p>\u25a0MariaDB\u8d77\u52d5\u78ba\u8a8d<\/p>\n<pre>[root@server1 ~]# systemctl status mariadb\r\nmariadb.service - MariaDB database server\r\n   Loaded: loaded (\/usr\/lib\/systemd\/system\/mariadb.service; enabled)\r\n   Active: active (running) since \u91d1 2014-07-18 01:02:42 JST; 8s ago\r\n  Process: 7199 ExecStartPost=\/usr\/libexec\/mariadb-wait-ready $MAINPID (code=exited, status=0\/SUCCESS)\r\n  Process: 7170 ExecStartPre=\/usr\/libexec\/mariadb-prepare-db-dir %n (code=exited, status=0\/SUCCESS)\r\n Main PID: 7198 (mysqld_safe)\r\n   CGroup: \/system.slice\/mariadb.service\r\n           \u251c\u25007198 \/bin\/sh \/usr\/bin\/mysqld_safe --basedir=\/usr\r\n           \u2514\u25007709 \/usr\/libexec\/mysqld --basedir=\/usr --datadir=\/var\/lib\/mysql --plugin-dir=\/usr\/l...\r\n\r\n 7\u6708 18 01:02:38 server2.yokensaka.com mysqld_safe[7198]: 140718 01:02:38 mysqld_safe Logging ...'.\r\n 7\u6708 18 01:02:38 server2.yokensaka.com mysqld_safe[7198]: 140718 01:02:38 mysqld_safe Starting...ql\r\n 7\u6708 18 01:02:38 server2.yokensaka.com mysqld_safe[7198]: 140718 01:02:38 mysqld_safe WSREP: R...d'\r\n 7\u6708 18 01:02:40 server2.yokensaka.com mysqld_safe[7198]: 140718 01:02:40 mysqld_safe WSREP: R...-1\r\n 7\u6708 18 01:02:42 server2.yokensaka.com systemd[1]: Started MariaDB database server.\r\nHint: Some lines were ellipsized, use -l to show in full.<\/pre>\n<p>\u25a0MariaDB\u521d\u671f\u8a2d\u5b9a<\/p>\n<pre>[root@server1 ~]# mysql_secure_installation\r\n\/bin\/mysql_secure_installation: \u884c 379: find_mysql_client: \u30b3\u30de\u30f3\u30c9\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\r\n\r\nNOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB\r\n      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!\r\n\r\nIn order to log into MariaDB to secure it, we'll need the current\r\npassword for the root user.  If you've just installed MariaDB, and\r\nyou haven't set the root password yet, the password will be blank,\r\nso you should just press enter here.\r\n\r\nEnter current password for root (enter for none):\u3000\u2190\u3000\u7a7a\u30a8\u30f3\u30bf\u30fc\r\nOK, successfully used password, moving on...\r\n\r\nSetting the root password ensures that nobody can log into the MariaDB\r\nroot user without the proper authorisation.\r\n\r\nSet root password? [Y\/n]\u3000\u2190\u3000\u7a7a\u30a8\u30f3\u30bf\u30fc\r\nNew password:\u3000\u2190\u3000root\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\r\nRe-enter new password:\u3000\u2190\u3000root\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u518d\u5165\u529b\r\nPassword updated successfully!\r\nReloading privilege tables..\r\n ... Success!\r\n\r\n\r\nBy default, a MariaDB installation has an anonymous user, allowing anyone\r\nto log into MariaDB without having to have a user account created for\r\nthem.  This is intended only for testing, and to make the installation\r\ngo a bit smoother.  You should remove them before moving into a\r\nproduction environment.\r\n\r\nRemove anonymous users? [Y\/n]\u3000\u2190\u3000\u7a7a\u30a8\u30f3\u30bf\u30fc\r\n ... Success!\r\n\r\nNormally, root should only be allowed to connect from 'localhost'.  This\r\nensures that someone cannot guess at the root password from the network.\r\n\r\nDisallow root login remotely? [Y\/n]\u3000\u2190\u3000\u7a7a\u30a8\u30f3\u30bf\u30fc\r\n ... Success!\r\n\r\nBy default, MariaDB comes with a database named 'test' that anyone can\r\naccess.  This is also intended only for testing, and should be removed\r\nbefore moving into a production environment.\r\n\r\nRemove test database and access to it? [Y\/n]\u3000\u2190\u3000\u7a7a\u30a8\u30f3\u30bf\u30fc\r\n - Dropping test database...\r\n ... Success!\r\n - Removing privileges on test database...\r\n ... Success!\r\n\r\nReloading the privilege tables will ensure that all changes made so far\r\nwill take effect immediately.\r\n\r\nReload privilege tables now? [Y\/n]\u3000\u2190\u3000\u7a7a\u30a8\u30f3\u30bf\u30fc\r\n ... Success!\r\n\r\nCleaning up...\r\n\r\nAll done!  If you've completed all of the above steps, your MariaDB\r\ninstallation should now be secure.\r\n\r\nThanks for using MariaDB!<\/pre>\n<p>\u25a0MariaDB\u78ba\u8a8d<\/p>\n<pre>[root@server1 ~]# mysql -u root -p\r\nEnter password:\u3000\u2190\u3000MariaDB\u306eroot\u30d1\u30b9\u30ef\u30fc\u30c9\u5165\u529b\r\nWelcome to the MariaDB monitor.  Commands end with ; or \\g.\r\nYour MariaDB connection id is 10\r\nServer version: 5.5.37-MariaDB-wsrep MariaDB Server, wsrep_25.10.r3980\r\n\r\nCopyright (c) 2000, 2014, Oracle, Monty Program Ab and others.\r\n\r\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\r\n\r\nMariaDB [(none)]> select user,host from mysql.user;\u3000\u2190\u3000\u767b\u9332\u6e08\u30e6\u30fc\u30b6\u306e\u78ba\u8a8d\r\n+------+-----------+\r\n| user | host      |\r\n+------+-----------+\r\n| root | 127.0.0.1 |\r\n| root | ::1       |\r\n| root | localhost |\r\n+------+-----------+\r\n3 rows in set (0.00 sec)\r\n\r\nMariaDB [(none)]> show databases;\u3000\u2190\u3000\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u78ba\u8a8d\r\n+--------------------+\r\n| Database           |\r\n+--------------------+\r\n| information_schema |\r\n| mysql              |\r\n| performance_schema |\r\n+--------------------+\r\n3 rows in set (0.00 sec)\r\n\r\nMariaDB [(none)]> select user,host,password from mysql.user;\u3000\u2190\u3000\u767b\u9332\u6e08\u30e6\u30fc\u30b6\u53ca\u3073\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u78ba\u8a8d\r\n+------+-----------+-------------------------------------------+\r\n| user | host      | password                                  |\r\n+------+-----------+-------------------------------------------+\r\n| root | localhost | *4202C8EE0ABB7FD2186E1CB0180B55C5272A8556 |\r\n| root | 127.0.0.1 | *4202C8EE0ABB7FD2186E1CB0180B55C5272A8556 |\r\n| root | ::1       | *4202C8EE0ABB7FD2186E1CB0180B55C5272A8556 |\r\n+------+-----------+-------------------------------------------+\r\n3 rows in set (0.00 sec)\r\n\r\nMariaDB [(none)]> show variables like 'character\\_set\\_%';\u3000\u2190\u3000\u6587\u5b57\u30bb\u30c3\u30c8\u306e\u78ba\u8a8d\r\n+--------------------------+--------+\r\n| Variable_name            | Value  |\r\n+--------------------------+--------+\r\n| character_set_client     | utf8   |\r\n| character_set_connection | utf8   |\r\n| character_set_database   | utf8   |\r\n| character_set_filesystem | binary |\r\n| character_set_results    | utf8   |\r\n| character_set_server     | utf8   |\r\n| character_set_system     | utf8   |\r\n+--------------------------+--------+\r\n7 rows in set (0.00 sec)\r\n\r\nMariaDB [(none)]> exit\r\nBye<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b5\u30fc\u30d0(MariaDB) CentOS7 \u3067\u306f\u3001MySQL\u3067\u306a\u304f\u4e92\u63db &hellip; <a href=\"http:\/\/yokensaka.com\/centos\/?p=310\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[],"class_list":["post-310","post","type-post","status-publish","format-standard","hentry","category-mariadb"],"_links":{"self":[{"href":"http:\/\/yokensaka.com\/centos\/index.php?rest_route=\/wp\/v2\/posts\/310","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/yokensaka.com\/centos\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/yokensaka.com\/centos\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/yokensaka.com\/centos\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/yokensaka.com\/centos\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=310"}],"version-history":[{"count":4,"href":"http:\/\/yokensaka.com\/centos\/index.php?rest_route=\/wp\/v2\/posts\/310\/revisions"}],"predecessor-version":[{"id":451,"href":"http:\/\/yokensaka.com\/centos\/index.php?rest_route=\/wp\/v2\/posts\/310\/revisions\/451"}],"wp:attachment":[{"href":"http:\/\/yokensaka.com\/centos\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=310"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/yokensaka.com\/centos\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=310"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/yokensaka.com\/centos\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=310"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}