{"id":68523,"date":"2018-09-12T08:10:47","date_gmt":"2018-09-12T00:10:47","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=68523"},"modified":"2018-09-05T09:12:26","modified_gmt":"2018-09-05T01:12:26","slug":"mysql-manage","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/mysql-manage.html","title":{"rendered":"MySQL\u8fd0\u7ef4\u7ecf\u9a8c"},"content":{"rendered":"
<\/p>\n
\u6bcf\u53f0\u673a\u5668\u90fd\u4f7f\u7528\u591a\u5b9e\u4f8b\u7684\u6a21\u578b\u3002 \u6bcf\u4e2a\u673a\u5668\u653e\u591a\u4e2a\u5b9e\u4f8b\uff0c\u6bcf\u4e2a\u5b9e\u4f8b\u653e\u591a\u4e2aDB\u3002<\/p>\n
\u591a\u5b9e\u4f8b\u4e4b\u95f4\u6ca1\u6709\u8fdb\u884c\u8d44\u6e90\u9694\u79bb\uff0c\u8fd9\u4e48\u505a\u662f\u8ba9\u6bcf\u4e2a\u5b9e\u4f8b\u90fd\u80fd\u53d1\u6325\u6700\u5927\u6027\u80fd\u3002<\/p>\n
\u76ee\u524d\u5927\u90e8\u5206\u6838\u5fc3\u4e1a\u52a1\u5df2\u5207\u6362\u6210MyRocks\u5f15\u64ce\uff0c\u5728\u673a\u5668\u786c\u4ef6\u914d\u7f6e\u4e0d\u53d8\u7684\u60c5\u51b5\uff0c\u7ea6\u53ef\u8282\u7701\u4e00\u534a\u673a\u5668\u3002<\/p>\n
\u653e\u5728MyRocks\u4e0a\u7684\u6838\u5fc3\u4e1a\u52a1\u4e3b\u8981\u6709\uff1aFeed\u3001Post\u3001\u793e\u4ea4\u56fe\u8c31\u7b49\u8bfb\u5199\u6df7\u5408\u4e1a\u52a1\u3002<\/p>\n
MyRocks\u9879\u76ee\u5730\u5740\uff1ahttps:\/\/github.com\/facebook\/mysql-5.6<\/p>\n
\u53e6\u5916\uff0cMariaDB 10.2\u7248\u672c\u4e5f\u5373\u5c06\u6574\u5408MyRocks\u5f15\u64ce\u3002<\/p>\n
\u91c7\u7528\u57fa\u4e8eGTID\u7684\u4e00\u4e3b\u591a\u4ece\u7ed3\u6784\uff0c\u5916\u52a0\u4e00\u4e2a\u57fa\u4e8elossless semi-sync\u673a\u5236\u7684mysqlbinlog\u5b9e\u73b0\u7684binlog server\uff08\u53ef\u4ee5\u7406\u89e3\u4e3aMySQL 5.7\u7684loss zero replication\uff09\u3002<\/p>\n
\u57fa\u4e8e\u591a\u6570\u6d3e\u5b9e\u73b0\u81ea\u52a8\u9009\u4e3b\u3002<\/p>\n
\u57fa\u4e8e\u914d\u7f6e\u4e2d\u5fc3\u5b9e\u73b0\u5207\u6362\uff0c\u672a\u4f7f\u7528VIP\u3002<\/p>\n
\u5728\u8ba4\u4e3asemi-sync\u590d\u5236\u53ef\u4fdd\u8bc1\u4e3b\u4ece\u6570\u636e\u4e00\u81f4\u6027\u7684\u5047\u8bbe\u524d\u63d0\u4e0b\uff0c\u53d1\u751f\u6545\u969c\u5207\u6362\u65f6\uff0c\u5229\u7528\u4e0a\u8ff0\u7684binlog server\u4e2d\u7684\u65e5\u5fd7\u8fdb\u884c\u8865\u5168\u540e\u518d\u9009\u65b0\u4e3b\u3001\u5207\u6362\u3002<\/p>\n
\u82e5\u4e2a\u522b\u60c5\u51b5\u4e0b\u7531\u4e8e\u7279\u6b8a\u539f\u56e0\uff0c\u51fa\u73b0\u4ece\u5e93\u5168\u90e8\u6302\u6389\u7684\u60c5\u51b5\uff0c\u4f1a\u5c06\u5168\u90e8\u8bf7\u6c42\u5207\u5230\u4e3b\u5e93\uff0c\u7531\u5b83\u625b\u8d77\u6240\u6709\u7684\u4e1a\u52a1\u670d\u52a1\u538b\u529b\u3002<\/p>\n
\u67d0\u4e2a\u4ece\u5e93\u6302\u6389\u65f6\uff0c\u53ef\u4ee5\u52a8\u6001\u6458\u9664\u3002<\/p>\n
\u6240\u6709\u7684\u5907\u4efd\u90fd\u662f\u57fa\u4e8emysqldump\u5b9e\u73b0\uff0c\u4e4b\u6240\u4ee5\u91c7\u7528mysqldump\u903b\u8f91\u5907\u4efd\u597d\u5904\u6709\uff1a<\/p>\n
\u4e0a\u9762\u63d0\u5230\uff0c\u56e0\u4e3a\u91c7\u7528\u591a\u5b9e\u4f8b\u3001\u591aDB\u7ed3\u6784\uff0c\u5907\u4efd\u65f6\u53ef\u4ee5\u591aDB\u5e76\u884c\u5907\u4efd\u3002\u5f53\u7136\u4e86\uff0c\u4e5f\u4f1a\u63a7\u5236\u5e76\u884c\u5907\u4efd\u7684\u6570\u91cf\uff0c\u907f\u514d\u5f71\u54cd\u5728\u7ebf\u4e1a\u52a1\u6027\u80fd\u3002<\/p>\n
\u5907\u4efd\u653e\u5728\u96c6\u4e2d\u5b58\u50a8\uff08HDFS\uff09\u4e0a\uff0c \u636e\u8bf4\u5df2\u8fbeEB\u7ea7\u522b\u5bb9\u91cf\u3002<\/p>\n
\u5173\u4e8e\u5907\u4efd\u7684\u4f5c\u7528\u5b9a\u4f4d\uff1a<\/p>\n
\u53ef\u4f7f\u7528xtrabackup\u5728\u73b0\u6709\u5b58\u6d3b\u7684SLAVE\u5b9e\u4f8b\u4e0a\u5907\u4efd\uff0c\u4e5f\u53ef\u5728\u4e3b\u5e93\u4e0a\u53d1\u8d77\u5907\u4efd\uff0c\u518d\u5229\u7528WDT\uff08\u6216\u8005\u662fBT\uff09\u534f\u8bae\u4f20\u8f93\u5230\u5f02\u5730\uff0c\u7528\u4e8e\u62c9\u8d77\u4ece\u5e93\u3002<\/p>\n
\u5173\u4e8eWDT\u9879\u76ee\uff1ahttps:\/\/github.com\/facebook\/wdt<\/p>\n
\u9762\u5bf9\u5927\u89c4\u6a21\u7684\u6570\u636e\u5e93\u5b9e\u4f8b\uff0c\u624b\u5de5\u5904\u7406\u5b8c\u5168\u4e0d\u73b0\u5b9e\u3002\u76ee\u524d\u5728facebook\u4e3b\u8981\u662f\u5229\u7528Python\u5f00\u53d1\u5185\u90e8DB\u8fd0\u7ef4\u5e73\u53f0\uff0c\u6240\u4ee5Python\u6280\u80fd\u65b9\u9762\u8981\u6c42\u6bd4\u8f83\u9ad8\u3002<\/p>\n
\u91c7\u7528\u4ed6\u4eec\u81ea\u5df2\u7684osc\u5de5\u5177\u6267\u884cOnline DDL\uff08\u4e5f\u662f\u672c\u6b21DTCC\u5927\u4f1a\u4e0alulu\u7684\u5206\u4eab\u4e3b\u9898\uff09\uff0c\u5b83\u6700\u65e9\u7528PHP\u5f00\u53d1\uff0c\u867d\u65e9\u5df2\u5f00\u6e90\uff0c\u4f46\u5b9e\u5728\u4e0d\u597d\u7528\uff0c\u6240\u4ee5\u51e0\u4e4e\u53ea\u5728\u5185\u90e8\u4f7f\u7528\u3002\u8fd9\u4e2a\u5de5\u5177\u4e0d\u540c\u4e8ept-osc\uff0c\u76f8\u5bf9\u6765\u8bf4\u66f4\u6709\u4f18\u52bf\uff0c\u6bd4\u5982\u53ef\u4ee5\u907f\u514d\u4f7f\u7528pt-osc\u6700\u5e38\u9047\u5230\u7684\u4e3b\u4ece\u6570\u636e\u5ef6\u8fdf\u95ee\u9898\u3002<\/p>\n
\u9879\u76ee\u5730\u5740\uff1ahttps:\/\/github.com\/facebookincubator\/OnlineSchemaChange<\/a><\/p>\n DBA\u56e2\u961f\u66f4\u591a\u7684\u662f\u8d1f\u8d23\u79c1\u6709DB\u4e91\u5e73\u53f0\u7684\u5efa\u8bbe\u3002<\/p>\n Schema\u8bbe\u8ba1\u53caDB\u62c6\u5206\u7b49\u7531\u6027\u80fd\u4f18\u5316\u56e2\u961f\u8d1f\u8d23\u3002<\/p>\n \u5728\u7ebf\u8868\u7ed3\u6784\u53d8\u66f4\uff1a\u6570\u636e\u5e93\u8d44\u6e90\u7533\u8bf7\u7531\u8d28\u91cf\u670d\u52a1\u56e2\u961f\u8d1f\u8d23\uff0c\u505a\u5230\u8d44\u6e90\u7684\u5408\u7406\u5206\u5e03\u3001\u5206\u914d\uff0c\u5982\u679c\u67d0\u4e2a\u4e1a\u52a1\u53ea\u9700\u8981\u4e2a\u4f4d\u6570\u7ea7\u522b\u7684DB\u5b9e\u4f8b\uff0c\u53ef\u4ee5\u81ea\u884c\u5728\u79c1\u6709DB\u4e91\u5e73\u53f0\u4e2d\u7533\u8bf7\u90e8\u7f72\uff0c\u5f53\u6570\u91cf\u6bd4\u8f83\u5927\u65f6\uff0c\u9700\u8981\u5148\u7ecf\u8fc7\u8d28\u91cf\u670d\u52a1\u56e2\u961f\u8bc4\u4f30\u901a\u8fc7\u3002<\/p>\n \u6570\u636e\u5e93\u8d44\u6e90\u7533\u8bf7\u7531\u8d28\u91cf\u670d\u52a1\u56e2\u961f\u8d1f\u8d23\uff0c\u505a\u5230\u8d44\u6e90\u7684\u5408\u7406\u5206\u5e03\u3001\u5206\u914d\u3002\u5982\u679c\u67d0\u4e2a\u4e1a\u52a1\u9700\u8981\u5c0f\u91cfDB\u5b9e\u4f8b\uff0c\u53ef\u4ee5\u81ea\u884c\u5728\u79c1\u6709DB\u4e91\u5e73\u53f0\u4e2d\u7533\u8bf7\u90e8\u7f72\uff1b\u5f53\u6570\u91cf\u6bd4\u8f83\u5927\u65f6\uff0c\u9700\u8981\u5148\u7ecf\u8fc7\u8d28\u91cf\u670d\u52a1\u56e2\u961f\u8bc4\u4f30\u901a\u8fc7\u624d\u53ef\u4ee5\u3002<\/p>\n \u539f\u6587\u6765\u81ea\uff1ahttp:\/\/www.yunweipai.com\/archives\/18029.html<\/a><\/p>\n\n