{"id":580,"date":"2010-12-27T15:08:24","date_gmt":"2010-12-27T15:08:24","guid":{"rendered":""},"modified":"2010-12-27T15:08:24","modified_gmt":"2010-12-27T15:08:24","slug":"580","status":"publish","type":"post","link":"https:\/\/www.poloo.org\/?p=580","title":{"rendered":"\u914d\u7f6ephpmyadmin2.9"},"content":{"rendered":"<p>phpMyAdmin\u662f\u4e00\u4e2a\u7528PHP\u7f16\u5199\u7684\uff0c\u53ef\u4ee5\u901a\u8fc7\u4e92\u8054\u7f51\u63a7\u5236\u548c\u64cd\u4f5cMySQL\u6570\u636e\u5e93\u7684\u8f6f\u4ef6\u3002\u901a\u8fc7phpMyAdmin\u53ef\u4ee5\u5b8c\u5168\u5bf9\u6570\u636e\u5e93\u8fdb\u884c\u64cd\u4f5c\uff0c\u4f8b\u5982\u5efa\u7acb\u3001\u590d\u5236\/\u5220\u9664\u6570\u636e\u7b49\u7b49\u3002<\/p>\n<p>\u4e0b\u8f7d\u5730\u5740\uff1a http:\/\/www.phpmyadmin.net<br \/>\n\u76ee\u524d\u7684\u6700\u65b0\u7248\u672c\u662f 2.9.1.1<br \/>\n\u4f7f\u7528phpMyAdmin\u7684\u5148\u51b3\u6761\u4ef6\uff1aApache(\u6216\u8005\u662fZeus\u3001IIS)\u3001PHP\u3001MySql\u5fc5\u987b\u5df2\u7ecf\u5b89\u88c5\u597d\uff0c\u5e76\u4e14\u80fd\u591f\u6b63\u5e38\u8fd0\u884c\u3002\u56e0\u4e3aphpMyAdmin\u662f\u7528PHP\u7a0b\u5e8f\u7f16\u5199\u7684\uff0c\u6240\u4ee5\uff0c\u4f60\u5fc5\u987b\u786e\u5b9a\u4f60\u7684PHP\u53ef\u4ee5\u6b63\u5e38\u8fde\u63a5\u5230MySql\u3002<\/p>\n<p>\u4e0b\u9762\u5f00\u59cb\u5b89\u88c5\uff1a<\/p>\n<p>1\u3001\u89e3\u538b\u4e0b\u8f7d\u5230\u7684\u6587\u4ef6\uff0c\u4f1a\u5f97\u5230\u4e00\u4e2a\u76ee\u5f55\uff0c\u5982 phpMyAdmin-2.9.1.1-all-languages-utf-8-only<\/p>\n<p>2\u3001\u5c06\u8fd9\u4e2a\u76ee\u5f55\u79fb\u52a8\u5230\u4f60\u7684\u7f51\u7ad9\u6839\u76ee\u5f55\u4e0b<br \/>\nmv .\/phpMyAdmin-2.9.1.1-all-languages-utf-8-only \/var\/www\/<\/p>\n<p>3\u3001\u4e3a\u4e86\u5b89\u5168\u8d77\u89c1\uff0c\u5efa\u8bae\u4fee\u6539\u76ee\u5f55\u540d\uff0c\u8fd9\u6837\u53ea\u6709\u4f60\u81ea\u5df1\u77e5\u9053phpMyAdmin\u7684\u6240\u5728\u4f4d\u7f6e<br \/>\nmv \/var\/www\/phpMyAdmin-2.9.1.1-all-languages-utf-8-only \/var\/www\/MyphpAdmin<\/p>\n<p>4\u3001\u4fee\u6539phpMyAdmin\u7684\u914d\u7f6e\u6587\u4ef6<br \/>\ncd \/var\/www\/MyphpAdmin<br \/>\nmv config.sample.inc.php config.inc.php<br \/>\nconfig.inc.php\u5c31\u662f\u914d\u7f6e\u6587\u4ef6\uff0c\u9700\u8981\u5c06config.sample.inc.php\u66f4\u540d\u8fc7\u6765\uff0c\u624d\u80fd\u751f\u6548\u3002<br \/>\nkate config.inc.php<\/p>\n<p>\u4ee5$cfg\u5f00\u5934\u7684\u9009\u9879\u90fd\u662f\u53ef\u4ee5\u4fee\u6539\u7684\uff0c\u6839\u636e\u4f60\u7684\u5b9e\u9645\u60c5\u51b5\uff0c\u53c2\u4e0e\u4e0b\u9762\u7684\u6587\u6863\u6765\u4fee\u6539<br \/>\n$cfg[&#8216;blowfish_secret&#8217;] = &#8216;http&#8217;; \/* cookie\u8ba4\u8bc1\u7684\u52a0\u5bc6\u7b97\u6cd5\uff0c\u968f\u4fbf\u586b\u4e00\u4e32\u5b57\u7b26\u5373\u53ef *\/<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;auth_type&#8217;] = &#8216;cookie&#8217;; \/* \u767b\u5f55\u65f6\u7684\u8ba4\u8bc1\u65b9\u5f0f\u3002\u672c\u673a\u767b\u5f55\u7684\u8bbe\u7f6e\u6210config\uff0c\u7f51\u7edc\u8fdc\u7a0b\u767b\u5f55\u7684\u9700\u8981\u8bbe\u7f6e\u6210cookie *\/<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;host&#8217;] = &#8216;localhost&#8217;; \/* \u4e3b\u673a\u540d\uff0c\u53ef\u5728\u7ec8\u7aef\u4e0b\u8f93\u5165uname -n\u67e5\u770b *\/<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;connect_type&#8217;] = &#8216;socket&#8217;; \/* \u4f7f\u7528tcp\uff08Mysql\u5728\u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a\uff09\u6216socket\uff08Mysql\u5728\u672c\u673a\uff09\u65b9\u5f0f\u6765\u8fde\u63a5 *\/<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;compress&#8217;] = true; \/* \u542f\u7528\u538b\u7f29\u4ee5\u63d0\u9ad8\u901f\u5ea6\uff0c\u5982\u679c\u8bbf\u95ee\u4e0d\u6b63\u5e38\u8bf7\u6539\u56defalse\uff08php\u7684\u7248\u672c\u5fc5\u987b\u9ad8\u4e8e4.3.0\uff09 *\/<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;extension&#8217;] = &#8216;mysql&#8217;; \/* \u8bbe\u5b9aphpMyAdmin\u6240\u652f\u6301\u7684\u6570\u636e\u5e93\u7c7b\u578b *\/<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;controluser&#8217;] = &#8221;; \/* Mysql\u7684root\u7528\u6237\u540d\uff0c\u4e0d\u8981\u586b\u5199 *\/<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;controlpass&#8217;] = &#8221;; \/* Mysql\u7684root\u7528\u6237\u5bc6\u7801\uff0c\u4e0d\u8981\u586b\u5199 *\/<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;pmadb&#8217;] = &#8216;phpmyadmin&#8217;; \/* \u5305\u542b\u8fde\u63a5\u8868\u7ed3\u6784\u7684\u6570\u636e\u5e93\u540d\u79f0\u3002\u4e0d\u7528\u4fee\u6539 *\/<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;bookmarktable&#8217;] = &#8216;pma_bookmark&#8217;; \/* \u4ece 2.2.0 \u7248\u672c\u5f00\u59cb\uff0cphpMyAdmin \u5141\u8bb8\u5c06\u7ecf\u5e38\u4f7f\u7528\u7684\u67e5\u8be2\u5b58\u50a8\u5728\u4e66\u7b7e\u4e2d\u3002\u4e0d\u7528\u4fee\u6539 *\/<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;relation&#8217;] = &#8216;pma_relation&#8217;; \/* \u4ece 2.2.4 \u7248\u672c\u5f00\u59cb\uff0c\u60a8\u53ef\u4ee5\u5b9a\u4e49\u4e00\u4e2a\u5173\u8054\u8868\uff0c\u5b83\u7684\u5b57\u6bb5\u662f\u53e6\u4e00\u4e2a\u8868\uff08\u5916\u90e8\u8868\uff09\u7684\u4e3b\u952e\u3002\u4e0d\u7528\u4fee\u6539 *\/<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;table_info&#8217;] = &#8216;pma_table_info&#8217;; \/* \u4e0d\u7528\u4fee\u6539 *\/<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;table_coords&#8217;] = &#8216;pma_table_coords&#8217;; \/* \u4e0d\u7528\u4fee\u6539 *\/<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;pdf_pages&#8217;] = &#8216;pma_pdf_pages&#8217;; \/* \u4e0d\u7528\u4fee\u6539 *\/<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;column_info&#8217;] = &#8216;pma_column_info&#8217;; \/* \u4e0d\u7528\u4fee\u6539 *\/<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;history&#8217;] = &#8216;pma_history&#8217;; \/* \u4e0d\u7528\u4fee\u6539 *\/<br \/>\n$cfg[&#8216;UploadDir&#8217;] = &#8221;; \/* \u4e0d\u7528\u4fee\u6539 *\/<br \/>\n$cfg[&#8216;SaveDir&#8217;] = &#8221;; \/* \u4e0d\u7528\u4fee\u6539 *\/<\/p>\n<p>5\u3001\u914d\u7f6e\u5b8c\u6bd5\u540e\uff0c\u5c31\u53ef\u4ee5\u5728\u6d4f\u89c8\u5668\u91cc\u4f7f\u7528\u4e86\u3002<br \/>\n\u5982 http:\/\/192.168.0.1\/MyphpAdmin\/&nbsp;&nbsp;&nbsp; (\u6ce8\u610f\u5927\u5c0f\u5199\u8981\u8f93\u5165\u6b63\u786e\uff0c\u5426\u5219\u4f1a\u63d0\u793a\u627e\u4e0d\u5230\u9875\u9762)<br \/>\n\u5982\u679c\u5b89\u88c5\u6ca1\u6709\u95ee\u9898\u7684\u8bdd\uff0c\u5c31\u4f1a\u51fa\u73b0\u767b\u5f55\u5bf9\u8bdd\u6846\uff0c\u8f93\u5165MySql\u7684\u5e10\u53f7\u548c\u5bc6\u7801\u5c31\u53ef\u4ee5\u767b\u9646\u4e86\u3002<\/p>\n<p>\u5982\u679c\u5728\u767b\u9646\u65f6\u51fa\u73b0[size=-1]session_start(): Failed to initialize storage module.<br \/>\n\u8bf7\u5c06php.ini\u6587\u4ef6\u4e2d\u5982\u4e0b\u4e24\u53e5\u8fdb\u884c\u4fee\u6539<br \/>\nsession.save_handler = files<br \/>\nsession.save_path = &quot;\/tmp&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \uff08\u8bf7\u786e\u8ba4\/tmp\u76ee\u5f55\u7684\u8bfb\u5199\u6743\u9650\uff09<br \/>\n\u6539\u6210\u8fd9\u6837\u5c31\u884c\u4e86\uff0c\u7136\u540e\u91cd\u542fapache\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>phpMyAdmin\u662f\u4e00\u4e2a\u7528PHP\u7f16\u5199\u7684\uff0c\u53ef\u4ee5\u901a\u8fc7\u4e92\u8054\u7f51\u63a7\u5236\u548c\u64cd\u4f5cM&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-580","post","type-post","status-publish","format-standard","hentry","category-DB"],"_links":{"self":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts\/580","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=580"}],"version-history":[{"count":0,"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts\/580\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=580"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=580"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}