
{"id":1089,"date":"2021-11-30T10:23:20","date_gmt":"2021-11-30T02:23:20","guid":{"rendered":"http:\/\/dba.qishuo.xin\/?p=1089"},"modified":"2021-11-30T10:24:51","modified_gmt":"2021-11-30T02:24:51","slug":"mariadb-binlog%e5%88%a0%e9%99%a4%e5%90%8e%e4%b8%8d%e8%83%bd%e9%87%8d%e5%90%af%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88","status":"publish","type":"post","link":"http:\/\/dba.qishuo.xin\/?p=1089","title":{"rendered":"MariaDB binlog\u5220\u9664\u540e\u4e0d\u80fd\u91cd\u542f\u89e3\u51b3\u65b9\u6848"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_76 ez-toc-wrap-right counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<label for=\"ez-toc-cssicon-toggle-item-69f35ad2afabb\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69f35ad2afabb\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"http:\/\/dba.qishuo.xin\/?p=1089\/#1_%E6%95%85%E9%9A%9C%E7%8E%B0%E8%B1%A1%EF%BC%88SYMPTOMS%EF%BC%89\" >1. \u6545\u969c\u73b0\u8c61\uff08SYMPTOMS\uff09<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"http:\/\/dba.qishuo.xin\/?p=1089\/#2_%E5%8F%98%E5%8C%96%EF%BC%88CHANGES%EF%BC%89\" >2. \u53d8\u5316\uff08CHANGES\uff09<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"http:\/\/dba.qishuo.xin\/?p=1089\/#3_%E6%95%85%E9%9A%9C%E5%8E%9F%E5%9B%A0%EF%BC%88CAUSE%EF%BC%89\" >3. \u6545\u969c\u539f\u56e0\uff08CAUSE\uff09<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"http:\/\/dba.qishuo.xin\/?p=1089\/#4_%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88%EF%BC%88SOLUTION%EF%BC%89\" >4. \u89e3\u51b3\u65b9\u6848\uff08SOLUTION\uff09<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"http:\/\/dba.qishuo.xin\/?p=1089\/#5_%E6%80%BB%E7%BB%93%EF%BC%88SUMMARY%EF%BC%89\" >5. \u603b\u7ed3\uff08SUMMARY\uff09<\/a><\/li><\/ul><\/nav><\/div>\n<h4><span class=\"ez-toc-section\" id=\"1_%E6%95%85%E9%9A%9C%E7%8E%B0%E8%B1%A1%EF%BC%88SYMPTOMS%EF%BC%89\"><\/span>1. \u6545\u969c\u73b0\u8c61\uff08SYMPTOMS\uff09<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>\u91cd\u542f mariadb \u670d\u52a1\u540e\u62a5\u5982\u4e0b\u9519\u8bef\uff1a<\/p>\n<pre><code class=\"line-numbers\">2037-08-01 15:11:36 0 [Warning] The parameter innodb_buffer_pool_instances is deprecated and has no effect.\n2037-08-01 15:11:36 0 [Warning] The parameter innodb_log_files_in_group is deprecated and has no effect.\n2037-08-01 15:11:36 0 [Note] InnoDB: Using Linux native AIO\n2037-08-01 15:11:36 0 [Note] InnoDB: Uses event mutexes\n2037-08-01 15:11:36 0 [Note] InnoDB: Compressed tables use zlib 1.2.11\n2037-08-01 15:11:36 0 [Note] InnoDB: Number of pools: 1\n2037-08-01 15:11:36 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions\n2037-08-01 15:11:36 0 [Note] mariadbd: O_TMPFILE is not supported on \/data\/etmaridb\/tmp (disabling future attempts)\n2037-08-01 15:11:36 0 [Note] InnoDB: Initializing buffer pool, total size = 8589934592, chunk size = 134217728\n2037-08-01 15:11:36 0 [Note] InnoDB: Completed initialization of buffer pool\n2037-08-01 15:11:36 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().\n2037-08-01 15:11:36 0 [Note] InnoDB: 128 rollback segments are active.\n2037-08-01 15:11:36 0 [Note] InnoDB: Creating shared tablespace for temporary tables\n2037-08-01 15:11:36 0 [Note] InnoDB: Setting file '\/data\/etmaridb\/data\/ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...\n2037-08-01 15:11:36 0 [Note] InnoDB: File '\/data\/etmaridb\/data\/ibtmp1' size is now 12 MB.\n2037-08-01 15:11:36 0 [Note] InnoDB: 10.5.8 started; log sequence number 1642963204395; transaction id 68855179\n2037-08-01 15:11:36 0 [Note] InnoDB: Loading buffer pool(s) from \/data\/etmaridb\/data\/ib_buffer_pool\n2037-08-01 15:11:36 0 [Note] Plugin 'FEEDBACK' is disabled.\n2037-08-01 15:11:36 0 [ERROR] mariadbd: File '\/data\/etmaridb\/log\/mysql-bin.000791' not found (Errcode: 2 \"No such file or directory\")\n2037-08-01 15:11:36 0 [ERROR] Failed to open log (file '\/data\/etmaridb\/log\/mysql-bin.000791', errno 2)\n2037-08-01 15:11:36 0 [ERROR] Could not open log file\n2037-08-01 15:11:36 0 [ERROR] Can't init tc log\n2037-08-01 15:11:36 0 [ERROR] Aborting\n<\/code><\/pre>\n<h4><span class=\"ez-toc-section\" id=\"2_%E5%8F%98%E5%8C%96%EF%BC%88CHANGES%EF%BC%89\"><\/span>2. \u53d8\u5316\uff08CHANGES\uff09<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<h4><span class=\"ez-toc-section\" id=\"3_%E6%95%85%E9%9A%9C%E5%8E%9F%E5%9B%A0%EF%BC%88CAUSE%EF%BC%89\"><\/span>3. \u6545\u969c\u539f\u56e0\uff08CAUSE\uff09<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>\u6ce8\u610f\u5230\uff1a<\/p>\n<pre><code class=\"line-numbers\">[ERROR] mariadbd: File '\/data\/etmaridb\/log\/mysql-bin.000791' not found (Errcode: 2 \"No such file or directory\")\n[ERROR] Failed to open log (file '\/data\/etmaridb\/log\/mysql-bin.000791', errno 2)\n[ERROR] Could not open log file\n<\/code><\/pre>\n<p><code>\/data\/etmaridb\/log\/mysql-bin.000791<\/code> \u6587\u4ef6\u88ab\u5220\u9664\u3002<\/p>\n<h4><span class=\"ez-toc-section\" id=\"4_%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88%EF%BC%88SOLUTION%EF%BC%89\"><\/span>4. \u89e3\u51b3\u65b9\u6848\uff08SOLUTION\uff09<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ul>\n<li>\u6ce8\u91camy.cnf\u7684log-bin\u914d\u7f6e<\/li>\n<li>\u5982\u679c\u9700\u8981\u5f00\u542fbin-log\uff0c\u90a3\u5c31\u5220\u9664bin-log\u65e5\u5fd7\u76ee\u5f55\u91cc\u7684mysql-bin.index\u6587\u4ef6\u6216\u5c06\u5176\u5907\u4efd<\/li>\n<\/ul>\n<h4><span class=\"ez-toc-section\" id=\"5_%E6%80%BB%E7%BB%93%EF%BC%88SUMMARY%EF%BC%89\"><\/span>5. \u603b\u7ed3\uff08SUMMARY\uff09<span class=\"ez-toc-section-end\"><\/span><\/h4>\n","protected":false},"excerpt":{"rendered":"<p>1. \u6545\u969c\u73b0\u8c61\uff08SYMPTOMS\uff09 \u91cd\u542f mari&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31,3],"tags":[152,12],"class_list":["post-1089","post","type-post","status-publish","format-standard","hentry","category-mariadb","category-mariadbmysql","tag-binlog","tag-mariadb"],"_links":{"self":[{"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=\/wp\/v2\/posts\/1089","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1089"}],"version-history":[{"count":3,"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=\/wp\/v2\/posts\/1089\/revisions"}],"predecessor-version":[{"id":1092,"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=\/wp\/v2\/posts\/1089\/revisions\/1092"}],"wp:attachment":[{"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1089"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1089"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1089"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}