{"id":110582,"date":"2020-05-09T14:53:55","date_gmt":"2020-05-09T06:53:55","guid":{"rendered":"http:\/\/4563.org\/?p=110582"},"modified":"2020-05-09T14:53:55","modified_gmt":"2020-05-09T06:53:55","slug":"docker-%e9%83%a8%e7%bd%b2-mysql%ef%bc%8c%e6%80%8e%e4%b9%88%e5%8d%87%e7%ba%a7%e8%a1%a8%e6%9b%b4%e6%94%b9%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=110582","title":{"rendered":"Docker \u90e8\u7f72 MySQL\uff0c\u600e\u4e48\u5347\u7ea7\u8868\u66f4\u6539\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Docker \u90e8\u7f72 MySQL\uff0c\u600e\u4e48\u5347\u7ea7\u8868\u66f4\u6539\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zealinux <\/span>  <span><i><\/i> 2<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u7cfb\u7edf\u662f Java\uff0c\uff08 spring boot\/cloud \uff09\uff0c \u5982\u679c\u65b0\u4ee3\u7801\u5347\u7ea7\u8fd8\u8981\uff0c\u53ea\u8981\u91cd\u65b0\u6253\u5305 jar\uff0c\u7136\u540e\u518d\u91cd\u542f docker \u5bb9\u5668\u5c31\u597d\u4e86\u3002<\/p>\n<p>\u90a3\u4e48 MySQL \u6570\u636e\u5e93\uff0c\u6709\u8868\u7ed3\u6784\u6216\u79cd\u5b50\u6570\u636e\u66f4\u6539\uff0c \u4e00\u822c\u662f\u600e\u4e48\u4e2a\u64cd\u4f5c\u6d41\u7a0b\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>2<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1814909\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Latin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6301\u4e45\u5316 \/var\/lib\/mysql                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1814910\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : leishi1313 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8981\u4fee\u6539\u8868\u7ed3\u6784\u76f4\u63a5 docker exec CONTAINER mysql -u USER -d DATABASE &lt; migration.sql \u5c31\u597d\u4e86\u3002<br \/>\u8981\u662f\u95ee\u600e\u4e48\u7ba1\u7406\uff0c\u4e00\u822c\u662f\u4e13\u95e8\u5efa\u4e2a migration table\uff0c\u7136\u540e\u628a\u5df2\u7ecf\u5e94\u7528\u7684 migration \u540d\u5b57\u5b58\u8fdb\u53bb\u5c31\u597d\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Docker \u90e8\u7f72 MySQL\uff0c\u600e&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\/110582"}],"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=110582"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/110582\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=110582"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=110582"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=110582"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}