{"id":11325,"date":"2023-05-09T08:14:29","date_gmt":"2023-05-08T23:14:29","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=11325"},"modified":"2023-08-23T07:15:50","modified_gmt":"2023-08-22T22:15:50","slug":"mariadb%e3%81%ae%e6%96%87%e5%ad%97%e3%82%b3%e3%83%bc%e3%83%89%e3%82%92%e7%a2%ba%e8%aa%8d%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\/11325","title":{"rendered":"MariaDB\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u78ba\u8a8d\u3059\u308b\uff01\uff08Rocky Linux 9\uff09"},"content":{"rendered":"<p>MariaDB\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u78ba\u8a8d\u3057\u3066\u3001\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u300cutf8mb4\u300d\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>\u5909\u66f4\u524d\u306eMariaDB\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>MariaDB\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# mysql -u root -p\r\nEnter password: \r\nWelcome to the MariaDB monitor.  Commands end with ; or \\g.\r\nYour MariaDB connection id is 4\r\nServer version: 10.11.2-MariaDB MariaDB Server\r\n\r\nCopyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.\r\n\r\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\r\n\r\nMariaDB &#x5B;(none)]&gt; show variables like 'character%';\r\n+--------------------------+----------------------------+\r\n| Variable_name            | Value                      |\r\n+--------------------------+----------------------------+\r\n| character_set_client     | utf8mb3                    |\r\n| character_set_connection | utf8mb3                    |\r\n| character_set_database   | latin1                     |\r\n| character_set_filesystem | binary                     |\r\n| character_set_results    | utf8mb3                    |\r\n| character_set_server     | latin1                     |\r\n| character_set_system     | utf8mb3                    |\r\n| character_sets_dir       | \/usr\/share\/mysql\/charsets\/ |\r\n+--------------------------+----------------------------+\r\n8 rows in set (0.002 sec)\r\n\r\nMariaDB &#x5B;(none)]&gt; quit\r\nBye\r\n<\/pre>\n<h2>server.cnf\u3092\u5909\u66f4\u3059\u308b\uff01<\/h2>\n<p>\u300c\/etc\/my.cnf.d\/server.cnf\u300d\u306e\u300cmysqld\u300d\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [2]; title: ; notranslate\" title=\"\">\r\n&#x5B;mysqld]\r\ncharacter-set-server=utf8mb4\r\n<\/pre>\n<h2>client.cnf\u3092\u5909\u66f4\u3059\u308b\uff01<\/h2>\n<p>\u300c\/etc\/my.cnf.d\/client.cnf\u300d\u306e\u300cclient-mariadb\u300d\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [2]; title: ; notranslate\" title=\"\">\r\n&#x5B;client-mariadb]\r\ndefault-character-set=utf8mb4\r\n<\/pre>\n<h2>MariaDB\u3092\u518d\u8d77\u52d5\u3059\u308b\uff01<\/h2>\n<p>MariaDB\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# systemctl restart mariadb\r\n<\/pre>\n<h2>\u5909\u66f4\u5f8c\u306eMariaDB\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>\u300ccharacter_set_filesystem\u300d\u3001\u300ccharacter_set_system\u300d\u4ee5\u5916\u304c\u3001\u300cutfmb4\u300d\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# mysql -u root -p\r\nEnter password: \r\nWelcome to the MariaDB monitor.  Commands end with ; or \\g.\r\nYour MariaDB connection id is 3\r\nServer version: 10.11.2-MariaDB MariaDB Server\r\n\r\nCopyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.\r\n\r\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\r\n\r\nMariaDB &#x5B;(none)]&gt; show variables like 'character%';\r\n+--------------------------+----------------------------+\r\n| Variable_name            | Value                      |\r\n+--------------------------+----------------------------+\r\n| character_set_client     | utf8mb4                    |\r\n| character_set_connection | utf8mb4                    |\r\n| character_set_database   | utf8mb4                    |\r\n| character_set_filesystem | binary                     |\r\n| character_set_results    | utf8mb4                    |\r\n| character_set_server     | utf8mb4                    |\r\n| character_set_system     | utf8mb3                    |\r\n| character_sets_dir       | \/usr\/share\/mysql\/charsets\/ |\r\n+--------------------------+----------------------------+\r\n8 rows in set (0.001 sec)\r\n\r\nMariaDB &#x5B;(none)]&gt; quit\r\nBye\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>MariaDB\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u306f\u3001\u300cutf8mb3\u300d\u306e\u305f\u3081\u3001\u7d75\u6587\u5b57\u306a\u3069\u3082\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u300cutf8mb4\u300d\u306b\u5909\u66f4\u3057\u307e\u3057\u305f\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>MariaDB\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u78ba\u8a8d\u3057\u3066\u3001\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u300cutf8mb4\u300d\u306b\u5909\u66f4\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":[282,722,467,469,932,697],"class_list":["post-11325","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mariadb","tag-linux","tag-mariadb","tag-rocky-linux","tag-rocky-linux-9","tag-932","tag-697"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/11325","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=11325"}],"version-history":[{"count":5,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/11325\/revisions"}],"predecessor-version":[{"id":14050,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/11325\/revisions\/14050"}],"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=11325"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=11325"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=11325"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}