{"id":16038,"date":"2018-01-18T23:50:51","date_gmt":"2018-01-18T15:50:51","guid":{"rendered":"http:\/\/blog.pmail.idv.tw\/?p=16038"},"modified":"2018-01-18T23:50:51","modified_gmt":"2018-01-18T15:50:51","slug":"windows%e4%b8%8b%e8%a8%ad%e5%ae%9aphpmyadmin-%e5%8f%af%e4%bb%a5%e9%80%a3%e7%b7%9a%e9%81%a0%e7%ab%afmysql-server","status":"publish","type":"post","link":"https:\/\/blog.pmail.idv.tw\/?p=16038","title":{"rendered":"windows\u4e0b\u8a2d\u5b9aphpmyadmin \u53ef\u4ee5\u9023\u7dda\u9060\u7aefmysql server"},"content":{"rendered":"<p>\u901a\u5e38\u6211\u5b89\u88ddphp mysql \u90fd\u6703\u5b89\u88dd\u5728\u540c\u4e00\u53f0\u4e3b\u6a5f\u4e0a\uff0c\u9023\u540cphpmyadmin \u7ba1\u7406\u5de5\u5177\u4e5f\u5728\u540c\u4e00\u53f0\uff0c\u56e0\u70ba\u8fd1\u671f\u6709\u4e00\u53f0AP \u4e3b\u6a5f(WEB)\u53caDB\u4e3b\u6a5f(Mysql)\uff0c\u8981\u5728web\u4e3b\u6a5f(IIS+PHP)\u4e2d\u7ba1\u7406\u53e6\u4e00\u53f0mysql\uff0c\u6240\u4ee5\u5728web\u4e3b\u6a5f\u5b89\u88ddphpmydmin\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u4f46\u662f\u56e0\u70ba\u9810\u8a2dphpmyadmin \u662f\u9023\u7dda\u672c\u6a5f\u4e0a\u7684mysql \uff0c\u6240\u4ee5\u8981\u7ba1\u7406\u5176\u4ed6\u53f0\u4e3b\u6a5f\u5fc5\u9808\u8981\u7279\u5225\u8a2d\u5b9a\u3002<\/p>\n<ol>\n<li>\u00a0mysql \u4e3b\u6a5f\u9810\u8a2d\u53ea\u53ef\u4ee5\u672c\u6a5f\u9023\u7dda\u4e0d\u5141\u8a31\u5176\u4ed6\u9023\u7dda\uff0c\u6240\u4ee5\u8981\u8a2d\u5b9a\u6b0a\u9650<\/li>\n<\/ol>\n<p>\u6307\u4ee4\u5982\u4e0b:<\/p>\n<p><span style=\"color: #000080;\">GRANT ALL PRIVILEGES ON *.* TO username@ip IDENTIFIED BY\u00a0 password;<\/span><\/p>\n<p>username \u4e00\u822c\u4f86\u8aaa\u5c31\u662froot<\/p>\n<p>IP \u662f\u958b\u653e\u9023\u7dda\u7684IP\u4f4d\u5740,\u5982\u679c\u7528\u2018%\u2019, \u6703\u8b93\u6240\u6709\u96fb\u8166\u7686\u53ef\u9023\u7dda<\/p>\n<p>password \u662f\u9023\u7dda\u5bc6\u78bc<\/p>\n<p>GRANT ALL PRIVILEGES ON *.* TO root@192.168.56.1 IDENTIFIED BY &#8216;root&#8217;;<br \/>\nGRANT ALL PRIVILEGES ON *.* TO root@&#8217;%&#8217; IDENTIFIED BY &#8216;root&#8217;;<br \/>\n\u6700\u5f8c\u5c07\u6b0a\u9650flush<br \/>\nFLUSH PRIVILEGES;<\/p>\n<p><a href=\"https:\/\/blog.pmail.idv.tw\/wp-content\/uploads\/2018\/01\/2018-mysql-other-c-1-1.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-16041 size-full\" src=\"https:\/\/blog.pmail.idv.tw\/wp-content\/uploads\/2018\/01\/2018-mysql-other-c-1-1.jpg\" alt=\"\" width=\"675\" height=\"340\" srcset=\"https:\/\/blog.pmail.idv.tw\/wp-content\/uploads\/2018\/01\/2018-mysql-other-c-1-1.jpg 675w, https:\/\/blog.pmail.idv.tw\/wp-content\/uploads\/2018\/01\/2018-mysql-other-c-1-1-300x151.jpg 300w\" sizes=\"auto, (max-width: 675px) 100vw, 675px\" \/><\/a><\/p>\n<p>2.\u00a0phpMyAdmin\u00a0\u8a2d\u5b9a(Windows \u5e95\u4e0b)<\/p>\n<p>\u8907\u88fdconfig.sample.inc.php\u6210config.inc.php\u3002<br \/>\n\u4fee\u6539config.inc.php<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;auth_type&#8217;] = &#8216;http&#8217;;<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;AllowNoPassword&#8217;] = false<\/p>\n<p>&nbsp;<\/p>\n<div class=\"21cd169d3c0f71e95b84db320302cb4a\" data-index=\"1\" style=\"float: right; margin:10px 0 10px 10px;\">\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-8711325745898650\"\r\n     crossorigin=\"anonymous\"><\/script>\n<\/div>\n\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>\u901a\u5e38\u6211\u5b89\u88ddphp mysql \u90fd\u6703\u5b89\u88dd\u5728\u540c\u4e00\u53f0\u4e3b\u6a5f\u4e0a\uff0c\u9023\u540cphpmyadmin  &hellip; <a href=\"https:\/\/blog.pmail.idv.tw\/?p=16038\">\u95b1\u8b80\u5168\u6587 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[10,15,108],"tags":[],"class_list":["post-16038","post","type-post","status-publish","format-standard","hentry","category-windows","category-mysql","category-ws2012r2"],"_links":{"self":[{"href":"https:\/\/blog.pmail.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/16038","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pmail.idv.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pmail.idv.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pmail.idv.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pmail.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=16038"}],"version-history":[{"count":2,"href":"https:\/\/blog.pmail.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/16038\/revisions"}],"predecessor-version":[{"id":16042,"href":"https:\/\/blog.pmail.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/16038\/revisions\/16042"}],"wp:attachment":[{"href":"https:\/\/blog.pmail.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16038"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pmail.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16038"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pmail.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}