{"id":3819,"date":"2019-01-30T11:32:01","date_gmt":"2019-01-30T03:32:01","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=3819"},"modified":"2019-01-30T11:32:01","modified_gmt":"2019-01-30T03:32:01","slug":"%e5%be%ae%e4%bf%a1%e7%be%a4%e9%87%8c%e7%bd%91%e5%8f%8b%e7%bf%bb%e8%bd%a6%ef%bc%8c%e6%95%b0%e6%8d%ae%e5%ba%93%e8%a2%ab%e9%bb%91%e5%ae%a2%e5%88%a0%e9%99%a4%ef%bc%81%e7%9c%8b%e6%88%91%e6%95%99%e4%bd%a0","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=3819","title":{"rendered":"\u5fae\u4fe1\u7fa4\u91cc\u7f51\u53cb\u7ffb\u8f66\uff0c\u6570\u636e\u5e93\u88ab\u9ed1\u5ba2\u5220\u9664\uff01\u770b\u6211\u6559\u4f60\u5982\u4f55\u6062\u590d\uff01"},"content":{"rendered":"<p>\n\t\u5927\u65e9\u4e0a\u8d77\u6765\uff0c\u53d1\u73b0\u5fae\u4fe1\u7fa4\u5237\u5c4f\u4e86\u3002\u722c\u4e86\u4e00\u4e0b\u4fe1\u606f\uff0c\u53d1\u73b0\u4e8c\u7fa4\u91cc\u4e00\u4f4d\u7f51\u53cb\u900f\u9732\uff0c\u6628\u5929\u591c\u91cc\u51cc\u6668 3 \u70b9\u63a5\u5230\u7535\u8bdd\uff0c\u516c\u53f8\u6570\u636e\u5e93\u88ab\u5220\u9664\u4e86\u3002\u4ed6\u5df2\u641e\u4e86\u4e00\u665a\u4e0a\u4e86\uff0c\u4e8b\u6545\u73b0\u573a\u8fd8\u672a\u6062\u590d\uff01\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\u53c8\u7ffb\u8f66\u4e86\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/wx1.sinaimg.cn\/large\/8fa5dcfcgy1fzog3r01kgj206n06mq37.jpg\" style=\"width: 239px;height: 238px\" \/>\n<\/p>\n<p>\n\t\u636e\u8fd9\u4f4d\u7f51\u53cb\u900f\u9732\uff0c\u5b9d\u5854\uff08\u7b80\u5355\u597d\u7528\u7684 Linux\/Windows \u9762\u677f\uff09\u7a0b\u5e8f\u672c\u8eab\u6709\u6f0f\u6d1e\u3002\u5bfc\u81f4\u4e86\u4ed6\u8fd9\u6b21\u88ab\u5220\u5e93\uff01\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\u7f51\u53cb\u7ffb\u8f66\u622a\u56fe\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/wx1.sinaimg.cn\/large\/8fa5dcfcgy1fzog4mj5gzj20et0jwjsp.jpg\" style=\"width: 533px;height: 716px\" \/>\n<\/p>\n<p>\n\t\u6211\u53ea\u622a\u4e86\u8fd9\u4e00\u4f4d\u7f51\u53cb\u7684\u90e8\u5206\u6d88\u606f\uff0c\u5176\u4ed6\u7f51\u53cb\u7684\u6d88\u606f\u592a\u591a\uff0c\u770b\u4e0d\u8fc7\u6765\uff0c\u5c31\u4e0d\u622a\u56fe\u4e86\uff01\n<\/p>\n<p>\n\t\u4eca\u5929\uff0c\u6211\u4eec\u5c31\u6765\u6f14\u793a\u4e00\u4e2a\u7b80\u5355\u7684\u6570\u636e\u5e93\u88ab\u5220\u9664\u540e\u5982\u4f55\u6062\u590d\u7684\u6559\u7a0b\uff01\u5b9e\u9645\u751f\u4ea7\u73af\u5883\u4e2d\uff0c\u60c5\u51b5\u80af\u5b9a\u6bd4\u6211\u8fd9\u4e2a\u590d\u6742\u3002\u6bd4\u5982\uff0c\u6709\u7684\u6709\u5907\u4efd\uff0c\u6709\u7684\u6709 binglog\uff0c\u6709\u7684\u8fde MySQL \u7684 Data \u76ee\u5f55\u90fd\u88ab\u5220\u9664\u4e86\u3002\u4eca\u5929\uff0c\u6211\u4eec\u5c31\u5148\u7b80\u5355\u7684\u6765\u4e00\u4e2a\u6709\u5907\u4efd\uff0c\u6570\u636e\u5e93\u88ab\u5220\u9664\u7684\u6062\u590d\u64cd\u4f5c\u3002\u5176\u4ed6\u7684\u590d\u6742\u60c5\u51b5\uff0c\u6211\u4eec\u4ee5\u540e\u62bd\u65f6\u95f4\u518d\u6765\u8bb2\u3002\n<\/p>\n<p>\n\t\u9996\u5148\uff0c\u6211\u4eec\u767b\u5f55\u5230\u6570\u636e\u5e93\u3002\n<\/p>\n<pre class=\"brush:sql;\">\r\n[root@CentOS ~]# mysql -u root -p \u3000 &larr; \u7528root\u767b\u5f55\u5230MySQL\u670d\u52a1\u5668\r\nEnter password:\u3000 &larr; \u8f93\u5165MySQL\u7684root\u7528\u6237\u5bc6\u7801 \r\nWelcome to the MySQL monitor. Commands end with ; or \\g. \r\nYour MySQL connection id is 8 to server version: 4.1.20\r\n\r\nType &#039;help;&#039; or &#039;\\h&#039; for help. Type &#039;\\c&#039; to clear the buffer.<\/pre>\n<p>\n\t\u7136\u540e\uff0c\u521b\u5efa\u4e00\u4e2a\u6d4b\u8bd5\u6570\u636e\u5e93 xttblog\u3002\n<\/p>\n<pre class=\"brush:bash;\">\r\nmysql&gt; create database xttblog;\u3000 &larr; \u5efa\u7acb\u4e00\u4e2a\u6d4b\u8bd5\u7528\u7684\u6570\u636e\u5e93xttblog\r\nQuery OK, 1 row affected (0.00 sec)\r\n\r\nmysql&gt; use xttblog\u3000 &larr; \u8fde\u63a5\u5230\u8fd9\u4e2a\u6570\u636e\u5e93 \r\nDatabase changed\r\n\r\nmysql&gt; create table xttblog(num int, name varchar(50));\u3000 &larr; \u5728\u6570\u636e\u5e93\u4e2d\u5efa\u7acb\u4e00\u4e2a\u8868 \r\nQuery OK, 0 rows affected (0.07 sec)\r\n\r\nmysql&gt; insert into xttblog values(1,&#039;Hello,CentOS&#039;);\u3000 &larr; \u63d2\u5165\u4e00\u4e2a\u503c\u5230\u8fd9\u4e2a\u8868\uff08\u8fd9\u91cc\u4ee5&ldquo;Hello,CentOS&rdquo;\u4e3a\u4f8b\uff09 \r\nQuery OK, 1 row affected (0.02 sec)\r\n\r\nmysql&gt; select * from xttblog;\u3000 &larr; \u67e5\u770b\u6570\u636e\u5e93\u4e2d\u7684\u5185\u5bb9 \r\n+------+-----------------+ \r\n| num | name | \r\n+------+-----------------+ \r\n|1\u3000 | Hello,Centos |\u3000 &larr; \u786e\u8ba4\u521a\u521a\u63d2\u5165\u5230\u8868\u4e2d\u7684\u503c\u7684\u5b58\u5728 \r\n+------+------------------+ \r\n1 row in set (0.01 sec)\r\n\r\nmysql&gt; exit\u3000 &larr; \u9000\u51faMySQL\u670d\u52a1\u5668 \r\nBye<\/pre>\n<p>\n\t\u7136\u540e\uff0c\u6211\u4eec\u4f7f\u7528 root \u8eab\u4efd\uff0c\u5bf9 MySQL \u6570\u636e\u5e93\u8fdb\u884c\u5907\u4efd\u3002\n<\/p>\n<pre class=\"brush:bash;\">\r\nmysqldump -u root -p xttblog xttblog &gt; D:\\backup_xttblog_2019-01-30.sql<\/pre>\n<p>\n\t\u5907\u4efd\u5b8c xttblog \u6570\u636e\u5e93\u4e2d\u7684 xttblog \u8868\u540e\uff0c\u6211\u4eec\u6267\u884c drop table \u6216 drop database \u547d\u4ee4\uff0c\u5220\u9664\u6570\u636e\u8868\u6216\u5e93\u3002\n<\/p>\n<pre class=\"brush:sql;\">\r\ndrop table test;\u3000 &larr; \u5220\u9664\u6570\u636e\u4e2d\u7684\u8868 \r\ndrop database test;\u3000 &larr; \u5220\u9664\u6d4b\u8bd5\u7528\u6570\u636e\u5e93test \r\nshow databases;\u3000&larr; \u786e\u8ba4\u6d4b\u8bd5\u7528\u7684test\u6570\u636e\u5e93\u5df2\u4e0d\u5b58\u5728\u3001\u5df2\u88ab\u5220\u9664<\/pre>\n<p>\n\t\u7136\u540e\uff0c\u6211\u4eec\u6765\u8fdb\u884c\u5907\u4efd\u6062\u590d\u64cd\u4f5c\u3002\n<\/p>\n<pre class=\"brush:bash;\">\r\nmysql -u root -p xttblog xttblog &lt; backup_xttblog_2019-01-30.sql<\/pre>\n<p>\n\t\u8bf4\u4e00\u4e0b\uff0c\u6211\u7684\u8fd9\u4e2a\u64cd\u4f5c\uff0c\u6f14\u793a\u975e\u5e38\u7684\u7b80\u5355\u3002\u5b9e\u9645\u751f\u4ea7\u4e2d\uff0c\u53ef\u80fd\u5b58\u5728\u4e3b\u4ece\u3001\u96c6\u7fa4\u7b49\u60c5\u51b5\u3002\u5907\u4efd\uff0c\u9664\u4e86 SQL \u5916\uff0c\u8fd8\u53ef\u80fd\u6709\u76ee\u5f55\u3002\u6bd4\u5982\uff0c\u6709\u7684\u4f7f\u7528\u7684\u662f mysqlhotcopy \u547d\u4ee4\u5907\u4efd\u7684\u7b49\u3002\n<\/p>\n<p>\n\t\u518d\u6bd4\u5982\uff0c\u6709\u7684\u5f00\u542f\u4e86 binglog\uff0c\u6709\u7684 binglog \u914d\u7f6e\u4e0d\u662f row\uff0c\u6709\u7684\u5b58\u50a8\u5f15\u64ce\u662f MyISAM\uff0c\u6709\u7684\u662f InnoDB\u3002\u5982\u679c\u662f InnoDB \u7684\u8bdd\uff0c\u8868\u7684\u8868\u7a7a\u95f4\u8fd8\u4e0d\u80fd\u76f4\u63a5\u590d\u5236\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\u7801\u519c\u8001\u53f8\u673a\u4e0d\u6015\u7ffb\u8f66\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/wx1.sinaimg.cn\/large\/8fa5dcfcgy1fzog7sga4gj20d50augnm.jpg\" style=\"width: 473px;height: 390px\" \/>\n<\/p>\n<p>\n\t\u8fd9\u7bc7\u6587\u7ae0\u5c31\u5148\u4ecb\u7ecd\u5230\u8fd9\u91cc\uff0c\u6211\u4eec\u5e74\u540e\u62bd\u65f6\u95f4\u7ee7\u7eed\u5b66\u4e60\u6570\u636e\u5e93\u5907\u4efd\u4e0e\u5220\u9664\u3002\u7ec3\u597d\u6280\u672f\uff0c\u4ece\u6765\u4e0d\u7ffb\u8f66\uff01<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=3819\">\u5fae\u4fe1\u7fa4\u91cc\u7f51\u53cb\u7ffb\u8f66\uff0c\u6570\u636e\u5e93\u88ab\u9ed1\u5ba2\u5220\u9664\uff01\u770b\u6211\u6559\u4f60\u5982\u4f55\u6062\u590d\uff01<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u5927\u65e9\u4e0a\u8d77\u6765\uff0c\u53d1\u73b0\u5fae\u4fe1\u7fa4\u5237\u5c4f\u4e86\u3002\u722c\u4e86\u4e00\u4e0b\u4fe1\u606f\uff0c\u53d1\u73b0\u4e8c\u7fa4\u91cc\u4e00\u4f4d\u7f51\u53cb\u900f\u9732\uff0c\u6628\u5929\u591c\u91cc\u51cc\u6668 3 \u70b9\u63a5\u5230\u7535\u8bdd\uff0c\u516c\u53f8\u6570\u636e\u5e93\u88ab [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,6],"tags":[1911,83,1914,1913,681],"class_list":["post-3819","post","type-post","status-publish","format-standard","hentry","category-sql","category-yyzt","tag-binglog","tag-mysql","tag-mysqldump","tag-mysqlhotcopy","tag-681"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/3819","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3819"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/3819\/revisions"}],"predecessor-version":[{"id":3820,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/3819\/revisions\/3820"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3819"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}