{"id":6980,"date":"2020-04-26T19:24:26","date_gmt":"2020-04-26T11:24:26","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=6980"},"modified":"2020-04-26T19:24:30","modified_gmt":"2020-04-26T11:24:30","slug":"db-load","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/db-load","title":{"rendered":"db_load\u547d\u4ee4 – \u751f\u6210db\u6570\u636e\u5e93"},"content":{"rendered":"\n
db_load\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u5c06\u7528\u6237\u4fe1\u606f\u6587\u4ef6\u8f6c\u6362\u4e3a\u6570\u636e\u5e93\u5e76\u4f7f\u7528 hash \u52a0\u5bc6\uff0c\u5982\u679c\u9700\u8981\u4fdd\u5b58\u865a\u62df\u5e10\u53f7\u548c\u5bc6\u7801\u7684\u6587\u672c\u6587\u4ef6\u4e14\u4e0d\u8ba9\u88ab\u7cfb\u7edf\u5e10\u53f7\u76f4\u63a5\u8c03\u7528\uff0c\u6211\u4eec\u5c31\u9700\u8981\u4f7f\u7528db_load \u547d\u4ee4\u751f\u6210db\u6570\u636e\u5e93\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>db_load [\u53c2\u6570] [\u6587\u4ef6]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6users.txt \u628a\u7528\u6237\u540d\u5bc6\u7801\u653e\u5165\u5176\u4e2d\uff1a<\/p>\n\n\n\n \u6307\u5b9a\u6570\u636e\u5e93\u7c7b\u578b\u4e3abtree\uff0c\u6307\u5b9a\u6570\u636e\u5e93\u73af\u5883\u4e3b\u76ee\u5f55\uff1a<\/p>\n\n\n\n \u6570\u636e\u5e93\u4e3arecno\u628a\u7528\u6237\u540d\u5bc6\u7801\u653e\u5165vsftpd_login.db\uff1a<\/p>\n\n\n\n <\/p>\n","protected":false},"excerpt":{"rendered":" db_load\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u5c06\u7528\u6237\u4fe1\u606f\u6587\u4ef6\u8f6c\u6362\u4e3a\u6570\u636e\u5e93\u5e76\u4f7f\u7528 hash \u52a0\u5bc6\uff0c\u5982\u679c\u9700\u8981\u4fdd\u5b58\u865a\u62df\u5e10\u53f7\u548c\u5bc6\u7801\u7684\u6587\u672c\u6587 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6980"}],"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=6980"}],"version-history":[{"count":4,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6980\/revisions"}],"predecessor-version":[{"id":7208,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6980\/revisions\/7208"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=6980"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=6980"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=6980"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-t<\/td> hash\u4f7f\u7528hash\u7801\u52a0\u5bc6<\/td><\/tr> -f<\/td> \u6307\u5b9a\u5305\u542b\u7528\u6237\u540d\u548c\u5bc6\u7801\u6587\u672c\u6587\u4ef6\u3002\u6b64\u6587\u4ef6\u683c\u5f0f\u8981\u793a\uff1a\u5947\u6570\u884c\u7528\u6237\u540d\u3001\u5076\u6570\u884c\u5bc6\u7801<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# db_load -T -t hash -f \/users.txt \/users.db<\/pre>\n\n\n\n
[root@linuxcool ~]# db_load -T -t btree -h \/root -<\/strong>f \/users.txt \/users.db<\/pre>\n\n\n\n
[root@linuxcool ~]# db_load -T -t recno -f \/etc\/vsftpd\/logins.txt \/etc\/vsftd\/vsftpd_login.db<\/pre>\n\n\n\n