﻿{"id":512,"date":"2009-12-11T21:29:00","date_gmt":"2009-12-11T13:29:00","guid":{"rendered":"http:\/\/blog.jixin.ntxz.net\/?p=512"},"modified":"2010-07-30T15:40:54","modified_gmt":"2010-07-30T07:40:54","slug":"%e4%bf%ae%e6%94%b9mysql-5-1-data%e6%96%87%e4%bb%b6%e5%a4%b9%e8%b7%af%e5%be%84","status":"publish","type":"post","link":"http:\/\/www.ntxz.net\/?p=512","title":{"rendered":"\u4fee\u6539MySQL 5.1 data\u6587\u4ef6\u5939\u8def\u5f84"},"content":{"rendered":"<p>\u6211\u5b89\u88c5\u7684\u8fd9\u4e2a\u7248\u672c\u7684MY<span class=t_tag onclick=tagshow(event) href=\"http:\/\/blog.cnbytes.net\/tag.php?name=SQL\">SQL<\/span>\u6ca1\u6709data\u6587\u4ef6\u5939\uff0c\u4f46\u662f\u53ef\u4ee5\u6b63\u5e38\u4f7f\u7528\uff0c\u4e0d\u77e5\u9053\u4f60\u4eec\u7684\u6709\u6ca1\u6709\u5462\uff1f\u600e\u4e48\u624d\u53ef\u4ee5\u51fa\u73b0data\u6587\u4ef6\u5939\u5462\uff0c\u6ca1\u6709data\u6587\u4ef6\u5939\uff0c\u90a3\u6211\u7684\u6570\u636e\u5e93\u6587\u4ef6\u5b58\u653e\u5728\u4ec0\u4e48\u5730\u65b9\u4e86\u5462\uff1f\u6211\u641c\u7d22\u4e86\u6574\u4e2a\u7535\u8111\u90fd\u6ca1\u6709\u627e\u5230\u3002<br \/>\u597d\u5fc3\u7684\u670b\u53cb\uff0c\u5feb\u544a\u8bc9\u6211\u600e\u4e48\u56de\u4e8b\uff1f\u8be5\u600e\u4e48<span class=t_tag onclick=tagshow(event) href=\"http:\/\/blog.cnbytes.net\/tag.php?name=%BD%E2%BE%F6\">\u89e3\u51b3<\/span>\uff1f<br \/>\u8c22\u8c22\u4e86\uff01\uff01\uff01 <br \/>=====================================================================<br \/>\u53ef\u4ee5\u67e5\u770b<strong>mysql<\/strong>\u6587\u4ef6\u76ee\u5f55<strong>my.ini<\/strong>\u6587\u4ef6\uff0c\u53ef\u4ee5\u627e\u5230\u7c7b\u4f3c\u4e8e<br \/><strong>datadir<\/strong>=&#8221;D:\/beeagle\/Program Files\/MySQL\/MySQL Server 5.0\/Data\/&#8221;\u7684\u5b57\u6bb5 \u8be5\u8def\u5f84\u4e3amysql data\u76ee\u5f55 <br \/>\u9ed8\u8ba4\u5728\uff1a&#8221;C:\\Documents and Settings\\All Users\\Application Data\\MySQL\\MySQL Server 5.1\\Data\\&#8221;<br \/><strong>\u6ce8\u610f\uff1aApplication Data\u6587\u4ef6\u5939\u662f\u9690\u85cf\u7684\uff01\uff01\uff01<br \/><\/strong>\u53ef\u4ee5\u4fee\u6539\u4e0a\u8ff0\u914d\u7f6e\uff0c\u628aData\u6587\u4ef6\u5939\u653e\u5728\u4f60\u60f3\u653e\u7684\u5730\u65b9\u3002<br \/>&#8212;\u4fee\u6539\u65b9\u5f0f\u5982\u4e0b\uff1a<br \/>1.\u505c\u6b62mysql\uff0c\u5728\u547d\u4ee4\u7a97\u53e3\u4e2d\u8f93\u5165\u5e76\u8fd0\u884c\uff1a<strong>net stop mysql<\/strong><br \/>\u5373\u53ef\uff1b<br \/>2.\u628a&#8221;C:\\Documents and Settings\\All Users\\Application Data\\MySQL\\MySQL Server 5.1\\Data\\&#8221; \u91cc\u7684Data\u6587\u4ef6\u5939\u526a\u5207\u5230\u76ee\u7684\u5730\u3002\u672c\u4eba\u628a\u5b83\u653e\u5230\u4e86&#8221;D:\\PHP\\MySQL\\MySQL Server 5.1&#8243;\u76ee\u5f55\u4e0b\uff08\u8ddfmysql\u653e\u5230\u4e86\u4e00\u8d77\uff09\uff0c\u5e76\u4e14\u628a\u76ee\u5f55&#8221;C:\\Documents and Settings\\All Users\\Application Data\\MySQL\\MySQL Server 5.1\\&#8221;\u5220\u9664\u6389\u3002<br \/>3.\u4fee\u6539<strong>my.ini<\/strong>\u6587\u4ef6\uff0c\u628a<strong>datadir<\/strong>\u6539\u6210&nbsp;&nbsp;<u><font color=red>datadir=&#8221;D:\\PHP\\MySQL\\MySQL Server 5.1\\data\\&#8221;<\/font><\/u><br \/>4.\u542f\u52a8mysql,\u5728\u547d\u4ee4\u7a97\u53e3\u4e2d\u8f93\u5165\u5e76\u8fd0\u884c\uff1a<strong>net start mysql&nbsp;&nbsp;<\/strong>\u5373\u53ef\uff1b<br \/>5.\u4fee\u6539\u5b8c\u6bd5\uff0c\u4ee5\u540e\u5c31\u53ef\u4ee5\u628a\u76f8\u5e94\u7684\u6570\u636e\u5e93\u9644\u52a0\u5bf9\u8c61\u62f7\u8d1d\u5230\u91cc\u9762\u6765\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u5b89\u88c5\u7684\u8fd9\u4e2a\u7248\u672c\u7684MYSQL\u6ca1\u6709data\u6587\u4ef6\u5939\uff0c\u4f46\u662f\u53ef\u4ee5\u6b63\u5e38\u4f7f\u7528\uff0c\u4e0d\u77e5\u9053\u4f60\u4eec\u7684\u6709\u6ca1\u6709\u5462\uff1f\u600e\u4e48\u624d\u53ef\u4ee5\u51fa\u73b0data [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,8],"tags":[],"class_list":["post-512","post","type-post","status-publish","format-standard","hentry","category-1","category-oldblog"],"views":295,"_links":{"self":[{"href":"http:\/\/www.ntxz.net\/index.php?rest_route=\/wp\/v2\/posts\/512","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.ntxz.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.ntxz.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.ntxz.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ntxz.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=512"}],"version-history":[{"count":1,"href":"http:\/\/www.ntxz.net\/index.php?rest_route=\/wp\/v2\/posts\/512\/revisions"}],"predecessor-version":[{"id":809,"href":"http:\/\/www.ntxz.net\/index.php?rest_route=\/wp\/v2\/posts\/512\/revisions\/809"}],"wp:attachment":[{"href":"http:\/\/www.ntxz.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ntxz.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=512"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ntxz.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}