{"id":6961,"date":"2020-04-29T08:11:47","date_gmt":"2020-04-29T00:11:47","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=6961"},"modified":"2020-04-29T08:11:48","modified_gmt":"2020-04-29T00:11:48","slug":"mysqlhotcopy","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/mysqlhotcopy","title":{"rendered":"mysqlhotcopy\u547d\u4ee4 – \u5907\u4efd\u6570\u636e\u5e93"},"content":{"rendered":"\n

\u4f7f\u7528mysqlhotcopy\u547d\u4ee4\u53ef\u4ee5\u8fdb\u884cMysql\u6570\u636e\u5e93\u5907\u4efd\uff0c\u5b83\u4f7f\u7528FLUSH TABLES\u3001LOCK TABLES\u548ccp\u6216scp\u6765\u8fdb\u884c\u6570\u636e\u5e93\u5907\u4efd\uff0c\u8fd9\u662f\u4e00\u79cd\u5feb\u901f\u5907\u4efd\u6570\u636e\u5e93\u6216\u8868\u7684\u65b9\u6cd5\uff0c\u4ec5\u7528\u4e8e\u5907\u4efdMyISAM\u548cARCHIVE\u8868\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>mysqlhotcopy [\u53c2\u6570] \u6570\u636e\u5e93\u540d[.\/\u5339\u914d\u8868\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\/] [\u65b0\u6570\u636e\u5e93\u540d|\u76ee\u5f55]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-u<\/td>\u6307\u5b9a\u6570\u636e\u5e93\u767b\u5f55\u7684\u7528\u6237<\/td><\/tr>
-p<\/td>\u8fde\u63a5\u5230\u670d\u52a1\u5668\u65f6\u4f7f\u7528\u7684\u5bc6\u7801<\/td><\/tr>
-h<\/td>\u4ee5TCP\/IP\u8fde\u63a5\u5230\u672c\u5730\u670d\u52a1\u5668\u7684\u4e3b\u673a\u540d<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u5907\u4efd\u6570\u636e\u5e93www\u5230\/root\u76ee\u5f55\u4e0b\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# mysqlhotcopy www \/root<\/pre>\n\n\n\n

\u5907\u4efd\u6570\u636e\u5e93www\u4e3a\u6570\u636e\u5e93abc\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# mysqlhotcopy www abc<\/pre>\n\n\n\n

\u5907\u4efd\u4e3b\u673a\u540dzx\u5bc6\u7801\u4e3ap\u7684\u4e3b\u673a\u7684\u6570\u636e\u5e93data1\u5230\/www\u76ee\u5f55\u4e0b<\/p>\n\n\n\n

[root@linuxcool ~]# mysqlhotcopy -u zx -p 123 data1 \/www<\/pre>\n","protected":false},"excerpt":{"rendered":"

\u4f7f\u7528mysqlhotcopy\u547d\u4ee4\u53ef\u4ee5\u8fdb\u884cMysql\u6570\u636e\u5e93\u5907\u4efd\uff0c\u5b83\u4f7f\u7528FLUSH TABLES\u3001LOCK TAB […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6961"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=6961"}],"version-history":[{"count":2,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6961\/revisions"}],"predecessor-version":[{"id":7157,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6961\/revisions\/7157"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=6961"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=6961"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=6961"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}