{"id":21,"date":"2012-04-01T21:22:08","date_gmt":"2012-04-01T13:22:08","guid":{"rendered":"http:\/\/www.datarelab.com\/blog\/?p=21"},"modified":"2012-04-01T21:22:08","modified_gmt":"2012-04-01T13:22:08","slug":"%e5%a6%82%e4%bd%95%e4%bf%ae%e6%94%b9mysql%e5%af%86%e7%a0%81%e5%8f%8a%e5%bc%80%e5%90%afphpmyadmin%20%e5%90%8c%e6%ad%a5%e5%8a%9f%e8%83%bd","status":"publish","type":"post","link":"https:\/\/www.datarelab.com\/blog\/Technical_literature\/21.html","title":{"rendered":"\u5982\u4f55\u4fee\u6539MySQL\u5bc6\u7801\u53ca\u5f00\u542fphpMyAdmin \u540c\u6b65\u529f\u80fd"},"content":{"rendered":"<p><strong>\u4fee\u6539MySQL\u5bc6\u7801<\/strong><\/p>\n<p>\u8fdb\u5165CMD\u5207\u6362\u5230MySQL \u5b89\u88c5\u76ee\u5f55\u4e2d<br \/>\n\u6bd4\u5982\u5b89\u88c5\u8def\u5f84\u662fD:\\wamp\\bin\\mysql\\mysql5.1.36\\bin<br \/>\n\u524d\u63d0\uff1aMySQL\u7528\u6237ROOT\u5bc6\u7801\u4e3a\u7a7a\u3002<br \/>\n\u8f93\u5165 mysql -u root mysql<br \/>\nmysql&gt; \u72b6\u6001\u4e0b\u8f93\u5165 update user set password=password('\u65b0\u5bc6\u7801') where user='root';<br \/>\n\u56de\u663e <br \/>\nQuery OK, 0 rows affected (0.00 sec)<br \/>\nRows matched: 2 Changed: 0 Warnings: 0<br \/>\nmysql&gt; \u72b6\u6001\u4e0b\u8f93\u5165 FLUSH PRIVILEGES;<br \/>\n\u56de\u663e<br \/>\nQuery OK, 0 rows affected (0.00 sec)<br \/>\nmysql&gt; \u72b6\u6001\u4e0b\u8f93\u5165 exit<br \/>\n\u9000\u51fa sql<br \/>\n\u91cd\u542fMySQL<br \/>\n\u6ce8\u610f\u6bcf\u4e2a\u547d\u4ee4\u540e\u90fd\u8981\u52a0\u4e0a\u4e00\u4e2a\u5206\u53f7 \";\"<br \/>\nMySQL\u624d\u5f00\u59cb\u6267\u884c\u8be5\u884c\u547d\u4ee4<br \/>\n\u800c\u7b2c\u4e8c\u4e2a\u6307\u4ee4\u4f1a\u8ba9\u5df2\u8f7d\u5165\u8bb0\u5fc6\u4f53\u7684 MySQL\u7cfb\u7edf\u8d44\u6599\u5e93\u66f4\u65b0<\/p>\n<p>\u91cd\u8d77 MySQL.<br \/>\n\u5728\u66f4\u65b0ROOT\u5bc6\u7801\u540e\uff0c\u4ee5\u540e\u8981\u4e0eMySQL \u8fde\u63a5\u7684\u65b9\u6cd5\u4e3a\uff1a<\/p>\n<p>mysql -u root -p \u65b0\u5bc6\u7801<\/p>\n<p>\u5982\u4f55\u4f7f\u7528phpMyAdmin\u7ba1\u7406\u6570\u636e\u5e93\u8fd8\u8981\u505a\u76f8\u5e94\u7684\u8bbe\u7f6e\uff1a<br \/>\n\u4fee\u6539phpMyAdmin\u4e2dMySQL ROOT\u7684\u7a7a\u6539\u4e3a\u65b0\u5bc6\u7801<br \/>\n\u4f8b\uff1ad:\\wamp\\apps\\phpmyadmin3.0.1.1\u4e0b\u7684config.inc\u6587\u4ef6\u4e2d<br \/>\n$cfg['Servers'][$i]['password'] = ''\u6539\u4e3a<br \/>\n$cfg['Servers'][$i]['password'] = 'newpassword'<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u5f00\u542fphpMyAdmin \u540c\u6b65\u529f\u80fd<\/strong><\/p>\n<p>phpMyAdmin\u540c\u6b65\u529f\u80fd\u9ed8\u8ba4\u53ea\u6709localhost\uff0c\u4e0d\u80fd\u4fee\u6539\uff0c\u8fd9\u91cc\u9700\u8981\u5728 config.inc.php\u91cc\u6dfb\u52a0\u4e00\u4e2a\u53c2\u6570\uff1a<\/p>\n<pre class=\"brush:php; toolbar: true; auto-links: true;\">\/* AllowArbitraryServer *\/\r\n$cfg['AllowArbitraryServer'] = true;<\/pre>\n<p>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4fee\u6539MySQL\u5bc6\u7801 \u8fdb\u5165CMD\u5207\u6362\u5230MySQL \u5b89\u88c5\u76ee\u5f55\u4e2d \u6bd4\u5982\u5b89\u88c5\u8def\u5f84\u662fD:\\wamp\\bin\\mysql\\ [&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],"tags":[35,28,36],"class_list":["post-21","post","type-post","status-publish","format-standard","hentry","category-Technical_literature","tag-mysql","tag-php","tag-phpmyadmin"],"views":1441,"_links":{"self":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts\/21","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/comments?post=21"}],"version-history":[{"count":0,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts\/21\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/media?parent=21"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/categories?post=21"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/tags?post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}