{"id":5032,"date":"2022-03-18T19:31:46","date_gmt":"2022-03-18T10:31:46","guid":{"rendered":"https:\/\/www.chihayafuru.jp\/tech\/?p=5032"},"modified":"2022-03-18T19:48:41","modified_gmt":"2022-03-18T10:48:41","slug":"mariadb-5-5-%e3%81%8b%e3%82%89-10-5-%e3%81%b8%e3%81%ae%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%82%a2%e3%83%83%e3%83%97","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/5032","title":{"rendered":"MariaDB 5.5 \u304b\u3089 10.5 \u3078\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7"},"content":{"rendered":"<p>Amazon Linux 2 \u74b0\u5883\u306b\u304a\u3044\u3066 amazon-linux-extras \u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089 MariaDB 10.5 \u3078\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3059\u308b\u624b\u9806\u3002<\/p>\n<p><!--more--><\/p>\n<h3>1. \u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u524d\u306e\u72b6\u6cc1<\/h3>\n<pre class=\"lang:sh highlight:0 decode:true \" >$ mysql --version\r\nmysql  Ver 15.1 Distrib 5.5.68-MariaDB, for Linux (x86_64) using readline 5.1<\/pre>\n<pre class=\"lang:sh highlight:0 decode:true \" >$ yum list installed | grep -i mariadb\r\nmariadb.x86_64                 1:5.5.68-1.amzn2              @amzn2-core\r\nmariadb-libs.x86_64            1:5.5.68-1.amzn2              @amzn2-core\r\nmariadb-server.x86_64          1:5.5.68-1.amzn2              @amzn2-core<\/pre>\n<pre class=\"lang:default highlight:0 decode:true \" >$ sudo systemctl status mariadb.service\r\n\u25cf mariadb.service - MariaDB database server\r\n   Loaded: loaded (\/usr\/lib\/systemd\/system\/mariadb.service; enabled; vendor preset: disabled)\r\n   Active: active (running) since \u6c34 2021-09-08 11:01:46 JST; 6 months 8 days ago\r\n Main PID: 2343 (mysqld_safe)\r\n   CGroup: \/system.slice\/mariadb.service\r\n           \u251c\u25002343 \/bin\/sh \/usr\/bin\/mysqld_safe --basedir=\/usr\r\n           \u2514\u25002596 \/usr\/libexec\/mysqld --basedir=\/usr --datadir=\/var\/lib\/mysql...\r\n\r\nWarning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.<\/pre>\n<h3>2. MariaDB \u306e\u30b5\u30fc\u30d3\u30b9\u505c\u6b62<\/h3>\n<pre class=\"lang:default highlight:0 decode:true \" >$ sudo systemctl stop mariadb.service<\/pre>\n<h3>3. MariaDB 10.5 \u306e Exras Library \u304b\u3089\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre class=\"lang:default highlight:0 decode:true \" >$ sudo amazon-linux-extras enable mariadb10.5\r\n\r\n$ sudo yum clean metadata\r\n\r\n$ sudo yum install mariadb<\/pre>\n<h3>4. MariaDB \u306e\u30b5\u30fc\u30d3\u30b9\u8d77\u52d5<\/h3>\n<pre class=\"lang:default highlight:0 decode:true \" >$ sudo systemctl start mariadb<\/pre>\n<h3>5. \u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u5f8c\u306e\u78ba\u8a8d<\/h3>\n<pre class=\"lang:default highlight:0 decode:true \" >$ mysql --version\r\nmysql  Ver 15.1 Distrib 10.5.10-MariaDB, for Linux (x86_64) using  EditLine wrapper<\/pre>\n<pre class=\"lang:default highlight:0 decode:true \" >$ mysqld --version\r\nmysqld  Ver 10.5.10-MariaDB for Linux on x86_64 (MariaDB Server)<\/pre>\n<pre class=\"lang:default highlight:0 decode:true \" >$ yum list installed | grep -i mariadb\r\nJudy.x86_64                    1.0.5-8.amzn2.0.1         @amzn2extra-mariadb10.5\r\nlibsphinxclient.x86_64         2.2.11-5.amzn2.0.1        @amzn2extra-mariadb10.5\r\nmariadb.x86_64                 3:10.5.10-2.amzn2.0.1     @amzn2extra-mariadb10.5\r\nmariadb-backup.x86_64          3:10.5.10-2.amzn2.0.1     @amzn2extra-mariadb10.5\r\nmariadb-common.x86_64          3:10.5.10-2.amzn2.0.1     @amzn2extra-mariadb10.5\r\nmariadb-config.x86_64          3:10.5.10-2.amzn2.0.1     @amzn2extra-mariadb10.5\r\nmariadb-connect-engine.x86_64  3:10.5.10-2.amzn2.0.1     @amzn2extra-mariadb10.5\r\nmariadb-cracklib-password-check.x86_64\r\n                               3:10.5.10-2.amzn2.0.1     @amzn2extra-mariadb10.5\r\nmariadb-devel.x86_64           3:10.5.10-2.amzn2.0.1     @amzn2extra-mariadb10.5\r\nmariadb-errmsg.x86_64          3:10.5.10-2.amzn2.0.1     @amzn2extra-mariadb10.5\r\nmariadb-gssapi-server.x86_64   3:10.5.10-2.amzn2.0.1     @amzn2extra-mariadb10.5\r\nmariadb-libs.x86_64            3:10.5.10-2.amzn2.0.1     @amzn2extra-mariadb10.5\r\nmariadb-oqgraph-engine.x86_64  3:10.5.10-2.amzn2.0.1     @amzn2extra-mariadb10.5\r\nmariadb-pam.x86_64             3:10.5.10-2.amzn2.0.1     @amzn2extra-mariadb10.5\r\nmariadb-rocksdb-engine.x86_64  3:10.5.10-2.amzn2.0.1     @amzn2extra-mariadb10.5\r\nmariadb-server.x86_64          3:10.5.10-2.amzn2.0.1     @amzn2extra-mariadb10.5\r\nmariadb-server-utils.x86_64    3:10.5.10-2.amzn2.0.1     @amzn2extra-mariadb10.5\r\nmariadb-sphinx-engine.x86_64   3:10.5.10-2.amzn2.0.1     @amzn2extra-mariadb10.5\r\nmytop.noarch                   1.7-20.b737f60.amzn2      @amzn2extra-mariadb10.5\r\nsphinx.x86_64                  2.2.11-5.amzn2.0.1        @amzn2extra-mariadb10.5<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Amazon Linux 2 \u74b0\u5883\u306b\u304a\u3044\u3066 amazon-linux-extras \u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089 MariaDB 10.5 \u3078\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3059\u308b\u624b\u9806\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[55],"class_list":["post-5032","post","type-post","status-publish","format-standard","hentry","category-memo","tag-aws"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/5032","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=5032"}],"version-history":[{"count":10,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/5032\/revisions"}],"predecessor-version":[{"id":5042,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/5032\/revisions\/5042"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=5032"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=5032"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=5032"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}