{"id":1151,"date":"2024-07-08T09:16:10","date_gmt":"2024-07-08T00:16:10","guid":{"rendered":"https:\/\/www.aqua-informatics.jp\/?p=1151"},"modified":"2024-07-08T09:16:10","modified_gmt":"2024-07-08T00:16:10","slug":"mariadb%e3%81%a7%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%8c%e3%81%a7%e3%81%a6%e3%82%8b%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.aqua-informatics.jp\/?p=1151","title":{"rendered":"mariadb\u3067\u30a8\u30e9\u30fc\u304c\u3067\u3066\u308b\u3002"},"content":{"rendered":"\n<p>\u30bb\u30f3\u30b5\u30fc\u306e\u30c7\u30fc\u30bf\u3092\u84c4\u7a4d\u3057\u3066\u3044\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u89b3\u5bdf\u3057\u3066\u3044\u305f\u3089\u3001\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u3092\u898b\u3064\u3051\u305f\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>\nJul 07 18:20:04 raspberrypi4b-gamma mariadbd[918]: 2024-07-07 18:20:04 6 [ERROR] Incorrect definition of table mysql.column_stats: expected column &#39;hist_type&#39; at position 9 to have type enum(&#39;SINGLE_PREC_HB&#39;,&#39;DOUBLE_PREC_HB&#39;,&#39;JSON_HB&#39;), found type enum(&#39;SINGLE_PREC_HB&#39;,&#39;DOUBLE_PREC_HB&#39;).\nJul 07 18:20:04 raspberrypi4b-gamma mariadbd[918]: 2024-07-07 18:20:04 6 [ERROR] Incorrect definition of table mysql.column_stats: expected column &#39;histogram&#39; at position 10 to have type longblob, found type varbinary(255).\nJul 07 18:20:04 raspberrypi4b-gamma mariadbd[918]: 2024-07-07 18:20:04 6 [ERROR] Incorrect definition of table mysql.column_stats: expected column &#39;hist_type&#39; at position 9 to have type enum(&#39;SINGLE_PREC_HB&#39;,&#39;DOUBLE_PREC_HB&#39;,&#39;JSON_HB&#39;), found type enum(&#39;SINGLE_PREC_HB&#39;,&#39;DOUBLE_PREC_HB&#39;).\nJul 07 18:20:04 raspberrypi4b-gamma mariadbd[918]: 2024-07-07 18:20:04 6 [ERROR] Incorrect definition of table mysql.column_stats: expected column &#39;histogram&#39; at position 10 to have type longblob, found type varbinary(255)<\/code><\/pre><\/div>\n\n\n\n<p>mysql\u306ecolumn_stats\u30c6\u30fc\u30d6\u30eb\u306e 'hist_type'\u3068'histogram\u306e\u578b\u9055\u3044\u306e\u30a8\u30e9\u30fc\u2026<\/p>\n\n\n\n<p><code>mysql.column_stats<\/code> \u30c6\u30fc\u30d6\u30eb\u306e <code>hist_type<\/code> \u5217\u306e\u578b\u304c <code>enum('SINGLE_PREC_HB','DOUBLE_PREC_HB','JSON_HB')<\/code> \u3067\u3042\u308b\u3079\u304d\u306a\u306e\u306b\u3001\u5b9f\u969b\u306b\u306f <code>enum('SINGLE_PREC_HB','DOUBLE_PREC_HB')<\/code> \u306b\u306a\u3063\u3066\u3044\u308b\u3002<code>mysql.column_stats<\/code> \u30c6\u30fc\u30d6\u30eb\u306e <code>histogram<\/code> \u5217\u306e\u578b\u304c <code>longblob<\/code> \u3067\u3042\u308b\u3079\u304d\u306a\u306e\u306b\u3001\u5b9f\u969b\u306b\u306f <code>varbinary(255)<\/code> \u306b\u306a\u3063\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>mariadb\u306b\u30ed\u30b0\u30a4\u30f3\nmysql -u root -p\n\nmysql\u3092\u4f7f\u7528\nUSE mysql;\n\nhist_type \u5217\u306e\u578b\u3092\u4fee\u6b63\nALTER TABLE column_stats MODIFY hist_type ENUM(&#39;SINGLE_PREC_HB&#39;, &#39;DOUBLE_PREC_HB&#39;, &#39;JSON_HB&#39;);\n\nhistogram \u5217\u306e\u578b\u3092\u4fee\u6b63\nALTER TABLE column_stats MODIFY histogram LONGBLOB;\n\n\u30b7\u30b9\u30c6\u30e0\u30c6\u30fc\u30d6\u30eb\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3068mariadb\u3092\u5ff5\u306e\u70ba\u518d\u8d77\u52d5\nsudo mysql_upgrade\nsudo systemctl restart mariadb\n<\/code><\/pre><\/div>\n\n\n\n<p>\u5909\u66f4\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092phpmyadmin\u3067\u78ba\u8a8d\u3057\u3066\u307f\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"354\" src=\"https:\/\/www.aqua-informatics.jp\/wp-content\/uploads\/2024\/07\/image-1024x354.png\" alt=\"\" class=\"wp-image-1153\" style=\"width:726px;height:auto\" srcset=\"https:\/\/www.aqua-informatics.jp\/wp-content\/uploads\/2024\/07\/image-1024x354.png 1024w, https:\/\/www.aqua-informatics.jp\/wp-content\/uploads\/2024\/07\/image-300x104.png 300w, https:\/\/www.aqua-informatics.jp\/wp-content\/uploads\/2024\/07\/image-768x265.png 768w, https:\/\/www.aqua-informatics.jp\/wp-content\/uploads\/2024\/07\/image.png 1103w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5074\u3067\u3082\u540c\u69d8\u306b\u5909\u66f4\u3055\u308c\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30bb\u30f3\u30b5\u30fc\u306e\u30c7\u30fc\u30bf\u3092\u84c4\u7a4d\u3057\u3066\u3044\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u89b3\u5bdf\u3057\u3066\u3044\u305f\u3089\u3001\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u3092\u898b\u3064\u3051\u305f\u3002 mysql\u306ecolumn_stats\u30c6\u30fc\u30d6\u30eb\u306e 'hist_type'\u3068'histogram\u306e\u578b\u9055\u3044\u306e\u30a8\u30e9\u30fc\u2026 my [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":87,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"common","vkexunit_cta_each_option":"","_lightning_design_setting":[],"footnotes":""},"categories":[7],"tags":[],"class_list":["post-1151","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=\/wp\/v2\/posts\/1151","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1151"}],"version-history":[{"count":3,"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=\/wp\/v2\/posts\/1151\/revisions"}],"predecessor-version":[{"id":1155,"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=\/wp\/v2\/posts\/1151\/revisions\/1155"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=\/wp\/v2\/media\/87"}],"wp:attachment":[{"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}