{"id":88370,"date":"2020-02-12T17:18:19","date_gmt":"2020-02-12T09:18:19","guid":{"rendered":"http:\/\/4563.org\/?p=88370"},"modified":"2020-02-12T17:18:19","modified_gmt":"2020-02-12T09:18:19","slug":"docker-%e4%b8%8b%e7%9a%84-mariadb-10-4-8-%e6%96%ad%e7%94%b5%e5%90%8e%e5%b4%a9%e4%ba%86%ef%bc%8c%e6%b1%82%e4%b8%aa%e6%81%a2%e5%a4%8d%e7%9a%84%e6%96%b9%e5%bc%8f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=88370","title":{"rendered":"docker \u4e0b\u7684 mariadb 10.4.8 \u65ad\u7535\u540e\u5d29\u4e86\uff0c\u6c42\u4e2a\u6062\u590d\u7684\u65b9\u5f0f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  docker \u4e0b\u7684 mariadb 10.4.8 \u65ad\u7535\u540e\u5d29\u4e86\uff0c\u6c42\u4e2a\u6062\u590d\u7684\u65b9\u5f0f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : magicdu <\/span>  <span><i><\/i> 19<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u62a5\u9519\u5982\u4e0b\uff1a<\/p>\n<pre><code>[ERROR] Found 1 prepared transactions! It means that mysqld was not shut down properly last time and critical recovery information (last binlog or tc.log file) was manually deleted after a crash. You have to start mysqld with --tc-heuristic-recover switch to commit or rollback pending transactions.  <\/code><\/pre>\n<p>\u914d\u7f6e\u6587\u4ef6\u52a0\u4e86\uff1ainnodb_force_recovery = 1 Google \u4e86\u4e0b\u90fd\u8ba9\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\uff0c\u6062\u590d\u4e0d\u6210\u529f<\/p>\n<pre><code>mysqld_safe --tc-heuristic-recover=COMMIT   <\/code><\/pre>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>15<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1142681\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : defunct9 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5f00 ssh\uff0c\u8ba9\u6211\u4e0a\u53bb\u770b\u770b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1142682\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : magicdu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @defunct9 \u8001\u54e5\uff0c\u4f60\u6bcf\u4e2a\u5e16\u5b50\u90fd\u662f\u8fd9\u4e48\u56de\u7684\uff0c\u6211\u90fd\u770b\u5230\u4f60\u597d\u51e0\u56de\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1142683\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : defunct9 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @magicdu \u662f\u7684\uff0c\u4f60\u8981\u7ee7\u7eed\u7ffb\u4f1a\u770b\u5230\u66f4\u591a\u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1142684\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sprite82 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u662f\u5f88\u7406\u89e3\u4e3a\u4ec0\u4e48\u6570\u636e\u5e93\u4e5f\u8981\u653e docker \u4e2d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1142685\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : littlewing <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6062\u590d\u4e0d\u6210\u529f\u62a5\u4ec0\u4e48\u9519\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1142686\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gz911122 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @defunct9 \u90a3\u4f60\u8fd9\u6837\u7684\u610f\u4e49\u662f\u5565?                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1142687\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gz911122 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @defunct9 \u987a\u4fbf\u8bf4\u53e5\u4f60\u5934\u50cf\u4e5f\u592a\u4e11\u4e86&#8230;\u4e0d\u80fd\u6362\u4e2a\u597d\u770b\u7684\u4e48                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1142688\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gz911122 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @defunct9 \u5f53\u7136\u5982\u679c\u662f\u4eb2\u4eba\u5f53\u6211\u6ca1\u8bf4.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1142689\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : magicdu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @littlewing \u611f\u8c22\u56de\u590d\uff0c\u6570\u636e\u5df2\u7ecf\u6062\u590d\u4e86\uff0c\u628a data \u6570\u636e\u6587\u4ef6\u62f7\u51fa\u6765\u4e86\u5728\u672c\u5730\u6062\u590d\u7684\uff0c\u5bb9\u5668\u91cc\u4e0d\u597d\u641e\uff0c\u62a5\u4e86\u4e2a\u8fd9\u6837\u7684\u9519 [ERROR] Fatal error: Can&#8217;t open and lock privilege tables: &#8216;mysql.user&#8217; is not of type &#8216;TABLE&#8217;\u3002<br \/>\u4e4b\u540e\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u542f\u52a8\u8d77\u6765\u4e86<br \/>&#8220;`<br \/>\/usr\/sbin\/mysqld &#8211;skip-grant-tables &#8211;general-log &amp;<br \/>&#8220;`<br \/>\u7136\u540e\u628a\u6570\u636e\u641e\u51fa\u6765\u4e86\uff0c\u611f\u89c9\u7a00\u91cc\u7cca\u6d82\u7684\u8fd8\u662f\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1142690\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xfriday <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u624b\u52a8\u5220\u6389\u90a3\u4e2a prepared transaction                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1142691\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : defunct9 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @gz911122 \u731c\u6d4b\u6ca1\u6709\u610f\u4e49\uff0c\u4e0a\u53bb\u770b\u4e86\u624d\u77e5\u9053\u771f\u6b63\u539f\u56e0\u3002\u5934\u50cf\u4e48\uff0c\u5c0f\u5a03\u7167\u7247\uff0c\u8bdd\u8bf4\u4f60\u5c0f\u65f6\u5019\u4e5f\u662f\u4e00\u6837\u4e11\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1142692\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gz911122 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @defunct9 \u8fd9\u5012\u6ca1\u6709.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1142693\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : neroxps <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e3b docker -v \u6ca1\u7528\uff1f\uff1f\uff1f\u6570\u636e\u5e93\u6587\u4ef6\u76f4\u63a5\u5728\u5bb9\u5668\u5185\u90e8\uff1f\uff1f\uff1f\u52c7\u6c14\u53ef\u5609<\/p>\n<p>docker rm -f \u4e0d\u5c31 GG \u4e86\uff1f                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1142694\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : idealhs <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u91cc\u4e92\u52a8\u5c5e\u5b9e\u7ed9\u6211\u770b\u7b11\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1142695\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : magicdu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @neroxps \u5f53\u7136 \u5f97 -v \u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>docker \u4e0b\u7684 mariadb&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/88370"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=88370"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/88370\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=88370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=88370"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=88370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}