{"id":10309,"date":"2023-04-20T07:00:18","date_gmt":"2023-04-19T22:00:18","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=10309"},"modified":"2023-05-09T08:37:08","modified_gmt":"2023-05-08T23:37:08","slug":"mariadb%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%ef%bc%81%ef%bc%88rocky-linux-9%ef%bc%89","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/10309","title":{"rendered":"MariaDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01\uff08Rocky Linux 9\uff09"},"content":{"rendered":"<p>Rocky Linux 9\u306bMariaDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u74b0\u5883\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u524d\u306b\u3001\u74b0\u5883\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# hostnamectl\r\n Static hostname: vmsrdb21\r\n       Icon name: computer-vm\r\n         Chassis: vm\r\n      Machine ID: c5cfb03d2529409da1a18560f71e844a\r\n         Boot ID: fe1d923765e14436a049b03ef85a0663\r\n  Virtualization: oracle\r\nOperating System: Rocky Linux 9.1 (Blue Onyx)      \r\n     CPE OS Name: cpe:\/o:rocky:rocky:9::baseos\r\n          Kernel: Linux 5.14.0-162.6.1.el9_1.x86_64\r\n    Architecture: x86-64\r\n Hardware Vendor: innotek GmbH\r\n  Hardware Model: VirtualBox\r\n<\/pre>\n<h2>\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u8a2d\u5b9a\u3092\u884c\u3046\uff01<\/h2>\n<p>MariaDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u305f\u3081\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# curl -sS https:\/\/downloads.mariadb.com\/MariaDB\/mariadb_repo_setup | sudo bash\r\n# &#x5B;info] Checking for script prerequisites.\r\n# &#x5B;info] MariaDB Server version 10.11 is valid\r\n# &#x5B;info] Repository file successfully written to \/etc\/yum.repos.d\/mariadb.repo\r\n# &#x5B;info] Adding trusted package signing keys...\r\n\/etc\/pki\/rpm-gpg ~\r\n~\r\n# &#x5B;info] Successfully added trusted package signing keys\r\n# &#x5B;info] Cleaning package cache...\r\n29 files removed\r\n<\/pre>\n<h2>MariaDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/h2>\n<p>MariaDB\u3092dnf\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# sudo dnf install MariaDB-server\r\nMariaDB Server                                                                          140 kB\/s | 480 kB     00:03    \r\nMariaDB MaxScale                                                                        4.6 kB\/s | 8.4 kB     00:01    \r\nMariaDB Tools                                                                           3.8 kB\/s | 4.4 kB     00:01    \r\nRocky Linux 9 - BaseOS                                                                  984 kB\/s | 1.8 MB     00:01    \r\nRocky Linux 9 - AppStream                                                               2.6 MB\/s | 6.8 MB     00:02    \r\nRocky Linux 9 - Extras                                                                  7.0 kB\/s | 8.7 kB     00:01    \r\nDependencies resolved.\r\n========================================================================================================================\r\n Package                            Architecture       Version                           Repository                Size\r\n========================================================================================================================\r\nInstalling:\r\n MariaDB-server                     x86_64             10.11.2-1.el9                     mariadb-main              18 M\r\nInstalling dependencies:\r\n MariaDB-client                     x86_64             10.11.2-1.el9                     mariadb-main             9.0 M\r\n MariaDB-common                     x86_64             10.11.2-1.el9                     mariadb-main              88 k\r\n MariaDB-shared                     x86_64             10.11.2-1.el9                     mariadb-main             122 k\r\n...\r\n<\/pre>\n<h2>MariaDB\u306e\u8d77\u52d5\u8a2d\u5b9a\u3092\u884c\u3046\uff01<\/h2>\n<p>MariaDB\u3092\u81ea\u52d5\u3067\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# systemctl enable --now mariadb\r\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/mariadb.service \u2192 \/usr\/lib\/systemd\/system\/mariadb.service.\r\n<\/pre>\n<h2>MariaDB\u306e\u8d77\u52d5\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>MariaDB\u306e\u8d77\u52d5\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,3]; title: ; notranslate\" title=\"\">\r\n#systemctl is-enabled mariadb\r\nenabled\r\n# systemctl status mariadb\r\n\u25cf mariadb.service - MariaDB 10.11.2 database server\r\n     Loaded: loaded (\/usr\/lib\/systemd\/system\/mariadb.service; enabled; vendor preset: disabled)\r\n    Drop-In: \/etc\/systemd\/system\/mariadb.service.d\r\n             \u2514\u2500migrated-from-my.cnf-settings.conf\r\n     Active: active (running) since Thu 2023-04-20 06:58:26 JST; 37s ago\r\n       Docs: man:mariadbd(8)\r\n             https:\/\/mariadb.com\/kb\/en\/library\/systemd\/\r\n    Process: 3427 ExecStartPre=\/bin\/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0\/SUCC&gt;\r\n    Process: 3428 ExecStartPre=\/bin\/sh -c &#x5B; ! -e \/usr\/bin\/galera_recovery ] &amp;&amp; VAR= ||   VAR=`cd \/usr\/bin\/..; \/usr\/bin\/&gt;\r\n    Process: 3450 ExecStartPost=\/bin\/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0\/SUC&gt;\r\n   Main PID: 3436 (mariadbd)\r\n     Status: &quot;Taking your SQL requests now...&quot;\r\n      Tasks: 14 (limit: 11062)\r\n     Memory: 194.5M\r\n        CPU: 135ms\r\n     CGroup: \/system.slice\/mariadb.service\r\n             \u2514\u25003436 \/usr\/sbin\/mariadbd\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>Rocky Linux 9\u3067\u306f\u3001MariaDB\u306f\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8a2d\u5b9a\u3057\u3066\u3001dnf\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u53c2\u8003\u60c5\u5831<\/h2>\n<ul>\n<li><a href=\"https:\/\/mariadb.com\/kb\/en\/\" target=\"_blank\" rel=\"noopener\">MariaDB - Knowledge Base<\/a><\/li>\n<\/ul>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/10315\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011MariaDB\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2023\/05\/eyecatch_mariadb_01-150x150.png\" class=\"lazyload\"><span style=\"background:\" class=\"sc_getpost_cat\">MariaDB<\/span><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011MariaDB\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01<\/div><div class=\"substr\">MariaDB\u3092\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<h2>\u95a2\u9023\u66f8\u7c4d\uff08Amazon\u5546\u54c1\u30ea\u30f3\u30af\uff09<\/h2>\n<p><iframe sandbox=\"allow-popups allow-scripts allow-modals allow-forms allow-same-origin\" style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&bc1=000000&IS2=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=infotecr-22&language=ja_JP&o=9&p=8&l=as4&m=amazon&f=ifr&ref=as_ss_li_til&asins=4774170208&linkId=800d87b228f07a60389e656d94ab962a\"><\/iframe><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Rocky Linux 9\u306bMariaDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":11333,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[222],"tags":[],"class_list":["post-10309","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mariadb"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/10309","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=10309"}],"version-history":[{"count":12,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/10309\/revisions"}],"predecessor-version":[{"id":10341,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/10309\/revisions\/10341"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/11333"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=10309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=10309"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=10309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}