{"id":72,"date":"2010-12-12T12:11:58","date_gmt":"2010-12-12T04:11:58","guid":{"rendered":"http:\/\/tengs.info\/?p=72"},"modified":"2010-12-12T12:11:58","modified_gmt":"2010-12-12T04:11:58","slug":"phpmyadmin%e9%85%8d%e7%bd%ae%e5%85%a8%e8%bf%87%e7%a8%8b","status":"publish","type":"post","link":"http:\/\/www.tengs.info\/?p=72","title":{"rendered":"phpmyadmin\u914d\u7f6e\u5168\u8fc7\u7a0b"},"content":{"rendered":"<p>\u8fd9\u51e0\u5929\u7740\u624b\u505a\u5e08\u5927\u9752\u5e74\u7684\u65b0\u7ad9\u70b9\uff0c\u539f\u672c\u5b9a\u4e0b\u662fMySQL\u914dNavicat Lite\u6570\u636e\u5e93\u7ba1\u7406\u8f6f\u4ef6\u2014\u2014\u4e8b\u5b9e\u4e0aNavicat Lite\u7684\u786e\u662f\u4e2a\u597d\u4e1c\u897f\uff0c\u7528\u6237\u754c\u9762\u8bbe\u8ba1\u5f97\u5f88\u50cfSQL Server Management Studio Express\uff0c\u5bf9\u4e8e\u719f\u6089mssql\u7684\u7528\u6237\u6765\u8bf4\u65e0\u7591\u5f88\u4e0a\u624b\u3002\u66f4\u91cd\u8981\u7684\u662f\u6709\u514d\u8d39\u7248\u672c\uff0c\u8fd9\u5bf9\u6211\u4eec\u7a77\u4eba\u6765\u8bf4\u662f\u4ef6\u5927\u597d\u4e8b\u3002<\/p>\n<p>\u7136\u800c\u540e\u6765\u5e08\u5144\u53c8\u8bf4navicat\u7684\u514d\u8d39\u7248\u4e0d\u9760\u8c31\uff0c\u4e0d\u80fd\u5907\u4efd\u6570\u636e\u5e93\u2014\u2014\u8fd9\u5c31\u60b2\u5267\u4e86\uff0c\u6ca1\u4eba\u6562\u4fdd\u8bc1\u81ea\u5df1\u7684\u6570\u636e\u5e93\u4e0d\u4f1a\u51fa\u9519\uff0c\u4e0d\u5907\u4efd\u4e00\u51fa\u9519\u5c31\u6ca1\u6551\u4e86\uff0c\u770b\u6765\u8fd8\u662f\u4e0d\u5f97\u4e0d\u7528\u56dephpmyadmin\u3002<\/p>\n<p>\u65e2\u7136\u5982\u6b64\uff0c\u4e5f\u53ea\u597d\u52c9\u4e3a\u5176\u96be\u914dphpmyadmin\u4e86\u2014\u2014\u8bb0\u5f97\u5927\u4e00\u7684\u65f6\u5019\u914d\u8fc7\u4e00\u6b21\uff0c\u8fc7\u7a0b\u76f8\u5f53\u75db\u82e6\uff0c\u771f\u53ef\u8c13\u8bb0\u5fc6\u72b9\u65b0\u3002<\/p>\n<p>\u4e0a<a title=\"phpMyAdmin\u5b98\u7f51\" href=\"http:\/\/www.phpmyadmin.net\/home_page\/downloads.php\">\u5b98\u7f51<\/a>\u627e\u5230\u4e86\u6700\u65b0\u7a33\u5b9a\u7248\u672cphpMyAdmin3.3.8.1\uff0c\u6beb\u4e0d\u72b9\u8c6bdownload\u4e86\u4e00\u4e2aphpMyAdmin-3.3.8.1-all-languages.zip\uff0c\u867d\u7136size\u6bd4\u8d77\u5176\u4ed6\u538b\u7f29\u683c\u5f0f\u5927\u4e86\u70b9\uff0c\u4f46.zip\u683c\u5f0f\u603b\u8ba9\u6211\u66f4\u52a0\u653e\u5fc3\uff0c\u8fd9\u53ea\u80fd\u8bf4\u662f\u4e00\u4e2a\u7656\u597d\u5427\u3002<\/p>\n<p>\u4e0b\u5b8c\u89e3\u538b\u624d\u60f3\u8d77\uff0cphpmyadmin\u5fc5\u987b\u5728php\u73af\u5883\u4e0b\u8fd0\u884c\uff0c\u7531\u4e8e\u5230\u76ee\u524d\u4e3a\u6b62\u90fd\u6ca1\u7a7a\u53bb\u78b0php\uff0c\u6211\u7684\u7b14\u8bb0\u672c\u4e0a\u4e5f\u4e00\u76f4\u6ca1\u6709\u5b89\u88c5php\u7684\u73af\u5883\uff0c\u8fd9\u6b21\u770b\u6765\u4e0d\u5f97\u4e0d\u88c5\u4e86\u3002\u4e8e\u662f\u4e4e\u4e0a<a title=\"php\u5b98\u7f51Windows\u4e0b\u8f7d\u533a\" href=\"http:\/\/windows.php.net\/download\/\">php\u5b98\u7f51windows\u4e0b\u8f7d\u533a<\/a>\u3002\u53d1\u73b0\u6700\u65b0\u7248\u672c\u662fPHP 5.3 (5.3.4)\uff0c\u4ed4\u7ec6\u770b\u4e86\u4e00\u4e0b\uff0c\u6709VC9\u3001VC6\u3001Non Thread Safe(\u975e\u7ebf\u6027\u5b89\u5168)\u3001Thread Safe\uff08\u7ebf\u6027\u5b89\u5168\uff09\u7684\u533a\u522b\uff0cGoogle\u4e86\u4e00\u4e0b\uff0c\u539f\u6765VC6\u7248\u672c\u662f\u4f7f\u7528Visual Studio 6\u7f16\u8bd1\u5668\u7f16\u8bd1\u7684\uff0c\u5982\u679cPHP\u662f\u7528Apache\u6765\u67b6\u8bbe\u7684\uff0c\u5e94\u8be5\u9009\u62e9VC6\u7248\u672c\uff1b\u800cVC9\u7248\u672c\u662f\u4f7f\u7528Visual Studio 2008\u7f16\u8bd1\u5668\u7f16\u8bd1\u7684\uff0c\u5982\u679cPHP\u662f\u7528IIS\u6765\u67b6\u8bbe\u7684\uff0c\u5c31\u9009\u62e9VC9\u7248\u672c\u3002\u800cThread Safe\u662f\u7ebf\u7a0b\u5b89\u5168\uff0c\u6267\u884c\u65f6\u4f1a\u8fdb\u884c\u7ebf\u7a0b\uff08Thread\uff09\u5b89\u5168\u68c0\u67e5\uff0c\u4ee5\u9632\u6b62\u6709\u65b0\u8981\u6c42\u5c31\u542f\u52a8\u65b0\u7ebf\u7a0b\u7684CGI\u6267\u884c\u65b9\u5f0f\u800c\u8017\u5c3d\u7cfb\u7edf\u8d44\u6e90\uff1bNon Thread Safe\u662f\u975e\u7ebf\u7a0b\u5b89\u5168\uff0c\u5728\u6267\u884c\u65f6\u4e0d\u8fdb\u884c\u7ebf\u7a0b\uff08Thread\uff09\u5b89\u5168\u68c0\u67e5\u3002\u5b98\u7f51\u4e0d\u5efa\u8bae\u4f7f\u7528\u975e\u7ebf\u7a0b\u5b89\u5168\u7248\uff0c\u4e8e\u662f\u4e0b\u4e86\u4e00\u4e2a\u7ebf\u7a0b\u5b89\u5168\u7684php-5.3.4-Win32-VC9-x86.msi\u3002<\/p>\n<p>\u7531\u4e8e\u6211\u7684\u7cfb\u7edf\u662fwin7\uff0cwin7\u7684iis\u7248\u672c\u4e3aiis 7\uff0c\u5f97\u5e08\u5144\u4e00\u7bc7\u535a\u6587\uff08<a href=\"http:\/\/heeroluo.net\/ShowPost80.aspx\">\u70b9\u8fd9\u91cc\u770b\u770b<\/a>\uff09\u6307\u5bfc\uff0c\u77e5\u9053\u6709\u4e00\u4e2a\u53ebIIS Manager For IIS 7\u7684\u56fe\u5f62\u5316PHP\u7ba1\u7406\u8f6f\u4ef6\uff0c\u5b89\u88c5\u540e\u53ef\u4ee5\u5728Internet \u4fe1\u606f\u670d\u52a1(IIS)\u7ba1\u7406\u5668\u91cc\u627e\u5230\u4e00\u4e2aPHP Manager\u7684\u56fe\u6807\uff0c\u65b9\u4fbf\u5bf9php\u8fdb\u884c\u5404\u79cd\u8bbe\u7f6e\u3002\u4f9d\u7167\u6211\u70ed\u8877\u5077\u61d2\u7684\u672c\u6027\uff0c\u5f53\u7136\u5f97\u88c5\uff0c\u4e8e\u662f\u5c41\u98a0\u5c41\u98a0\u5f97\u4e0a<a title=\"phpmanager.codeplex.com\" href=\"http:\/\/phpmanager.codeplex.com\/releases\/view\/53121\"> codeplex.com<\/a>\u4e0b\u8f7d\u5b89\u88c5\u4e86\u4e00\u4e2a\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\u5b89\u88c5php\uff1a\u4e2d\u95f4\u63d0\u793a\u8981\u9009\u62e9Web Server Setup\uff0c\u624d\u53d1\u73b0\u6211IIS CGI\u8fd8\u6ca1\u5b89\u88c5\uff0c\u4e8e\u662f\u6253\u5f00\u63a7\u5236\u9762\u677f\u2014\u2014\u5b89\u88c5\u6216\u5173\u95edwindows\u529f\u80fd\u2014\u2014Internet\u4fe1\u606f\u670d\u52a1\u2014\u2014\u4e07\u7ef4\u7f51\u670d\u52a1\u2014\u2014\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u529f\u80fd\u2014\u2014\u52fe\u9009CGI\uff0c\u786e\u5b9a\u5b89\u88c5\u3002\u5b89\u88c5\u5b8c\u6bd5\u7ee7\u7eed\u5b89\u88c5php\uff0c\u5f53\u7136Web Server Setup\u5c31\u9009IIS CGI\u3002<\/p>\n<div class=\"box2\">\n<a href=\"http:\/\/tengs.info\/wp-content\/uploads\/2010\/12\/20101212122051812.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tengs.info\/wp-content\/uploads\/2010\/12\/20101212122051812.jpg\" alt=\"phpmyadmin\u914d\u7f6e\" width=\"600\" height=\"450\" class=\"aligncenter size-full wp-image-607\" \/><\/a>\n<\/div>\n<p>\u641e\u5b9aphp\uff0c\u7740\u624b\u914d\u7f6ephpmyadmin\uff0c\u4e3a\u4e86\u65b9\u4fbf\u7ba1\u7406\uff0c\u7279\u610f\u5728\u4fe1\u606f\u670d\u52a1\u5668\u4e0a\u65b0\u5efa\u4e86\u4e00\u4e2a\u672c\u5730\u7ad9\u70b9\uff0c\u628aphpmyadmin\u89e3\u538b\u5230\u4e86\u8fd9\u4e2a\u7ad9\u70b9\u7684\u6839\u76ee\u5f55\u4e0b\uff0c\u53c8Google\u4e86\u4e00\u756a\uff0c\u5f97\u5230\u5927\u81f4\u914d\u7f6e\u5982\u4e0b\uff1a<\/p>\n<p>\u6253\u5f00 libraries \u76ee\u5f55\u4e0b\u7684 config.default.php \u6587\u4ef6\uff0c\u4f9d\u6b21\u627e\u5230\u4e0b\u9762\u5404\u9879\uff0c\u6309\u7167\u8bf4\u660e\u914d\u7f6e\u5373\u53ef\u3002<\/p>\n<p>1\u3001\u8bbf\u95ee\u7f51\u5740<\/p>\n<pre><code class=\"language-javascript\">\n$cfg['PmaAbsoluteUri'] = ''; \/\/\u8fd9\u91cc\u586b\u5199phpMyAdmin\u7684\u8bbf\u95ee\u7f51\u5740\n<\/code><\/pre>\n<p>2\u3001MySQL \u4e3b\u673a\u4fe1\u606f<\/p>\n<pre><code class=\"language-javascript\">\n$cfg['Servers'][$i]['host'] = 'localhost'; \/\/MySQL hostname or IP address \u586b\u5199localhost\u6216MySQL\u6240\u5728\u670d\u52a1\u5668\u7684ip\u5730\u5740\uff0c\u5982\u679cMySQL\u548c\u8be5phpMyAdmin\u5728\u540c\u4e00\u670d\u52a1\u5668\uff0c\u5219\u6309\u9ed8\u8ba4localhost\n$cfg['Servers'][$i]['port'] = ''; \/\/MySQL port - leave blank for default port \u8fd9\u662fMySQL\u7aef\u53e3\uff0c\u9ed8\u8ba4\u4e3a3306\uff0c\u4fdd\u7559\u4e3a\u7a7a\u5373\u53ef\uff0c\u5982\u679c\u60a8\u5b89\u88c5MySQL\u65f6\u4f7f\u7528\u4e86\u5176\u5b83\u7684\u7aef\u53e3\uff0c\u9700\u8981\u5728\u8fd9\u91cc\u586b\u5199\u3002\n<\/code><\/pre>\n<p>3\u3001MySQL \u7528\u6237\u540d\u548c\u5bc6\u7801<\/p>\n<pre><code class=\"language-javascript\">\n$cfg['Servers'][$i]['user'] = 'root'; \/\/\u586b\u5199MySQL\u8bbf\u95eephpMyAdmin\u4f7f\u7528\u7684MySQL\u7528\u6237\u540d\uff0c\u9ed8\u8ba4\u4e3aroot\nfg['Servers'][$i]['password'] = ''; \/\/\u586b\u5199\u5bf9\u5e94\u4e0a\u8ff0MySQL\u7528\u6237\u540d\u7684\u5bc6\u7801\n<\/code><\/pre>\n<p>4\u3001\u8ba4\u8bc1\u65b9\u6cd5<\/p>\n<pre><code class=\"language-javascript\">\n$cfg['Servers'][$i]['auth_type'] = 'cookie'; \/\/\u8003\u8651\u5230\u5b89\u5168\u7684\u56e0\u7d20\uff0c\u5efa\u8bae\u8fd9\u91cc\u586b\u5199cookie\n<\/code><\/pre>\n<p>\u5728\u6b64\u6709\u56db\u79cd\u6a21\u5f0f\u53ef\u4f9b\u9009\u62e9\uff0ccookie\uff0chttp\uff0cHTTP\uff0cconfig\uff1a<\/p>\n<p>config\u65b9\u5f0f\u5373\u8f93\u5165phpMyAdmin\u7684\u8bbf\u95ee\u7f51\u5740\u5373\u53ef\u76f4\u63a5\u8fdb\u5165\uff0c\u65e0\u9700\u8f93\u5165\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0c\u662f\u4e0d\u5b89\u5168\u7684\uff0c\u4e0d\u63a8\u8350\u4f7f\u7528\u3002<\/p>\n<p>\u5f53\u8be5\u9879\u8bbe\u7f6e\u4e3acookie\uff0chttp\u6216HTTP\u65f6\uff0c\u767b\u5f55phpMyAdmin\u9700\u8981\u6570\u636e\u7528\u6237\u540d\u548c\u5bc6\u7801\u8fdb\u884c\u9a8c\u8bc1\uff0c\u5177\u4f53\u5982\u4e0b\uff1a<\/p>\n<p>PHP\u5b89\u88c5\u6a21\u5f0f\u4e3aApache\uff0c\u53ef\u4ee5\u4f7f\u7528http\u548ccookie\uff1b<\/p>\n<p>PHP\u5b89\u88c5\u6a21\u5f0f\u4e3aCGI\uff0c\u53ef\u4ee5\u4f7f\u7528cookie\u3002<\/p>\n<p>5\u3001\u77ed\u8bed\u5bc6\u7801\uff08blowfish_secret\uff09\u7684\u8bbe\u7f6e<\/p>\n<pre class=\"language-javascript\"><code>\n$cfg['blowfish_secret'] = '';\n<\/code><\/pre>\n<p>\u5982\u679c\u8ba4\u8bc1\u65b9\u6cd5\u8bbe\u7f6e\u4e3acookie\uff0c\u5c31\u9700\u8981\u8bbe\u7f6e\u77ed\u8bed\u5bc6\u7801\uff0c\u8bbe\u7f6e\u4e3a\u4ec0\u4e48\u5bc6\u7801\uff0c\u7531\u60a8\u81ea\u5df1\u51b3\u5b9a\uff0c\u8fd9\u91cc\u4e0d\u80fd\u7559\u7a7a\uff0c\u5426\u5219\u4f1a\u5728\u767b\u5f55phpMyAdmin\u65f6\u63d0\u793a\u9519\u8bef\u3002<\/p>\n<p>\u6574\u4e2a\u8fc7\u7a0b\u5386\u65f63\u30014\u4e2a\u591a\u5c0f\u65f6\uff0c\u4e3a\u4e86\u4f7f\u7528phpmyadmin\uff0c\u5148\u540e\u5b89\u88c5\u4e86php\u3001IIS Manager For IIS 7\u3001IIS CGI\uff0c\u53ef\u89c1\u8fd9\u4e2a\u4e16\u754c\u7684\u786e\u662f\u666e\u904d\u8054\u7cfb\u7684\uff0c\u7275\u4e00\u53d1\u800c\u52a8\u5168\u8eab\uff0c\u7528\u5728\u8fd9\u91cc\u4e5f\u4e0d\u4e3a\u8fc7\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u51e0\u5929\u7740\u624b\u505a\u5e08\u5927\u9752\u5e74\u7684\u65b0\u7ad9\u70b9\uff0c\u539f\u672c\u5b9a\u4e0b\u662fMySQL\u914dNavicat Lite\u6570\u636e\u5e93\u7ba1\u7406\u8f6f\u4ef6\u2014\u2014\u4e8b\u5b9e\u4e0aNavic &#8230; <span class=\"more\"><a class=\"more-link\" href=\"http:\/\/www.tengs.info\/?p=72\">[Read more&#8230;]<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[29,30,115],"class_list":{"0":"entry","1":"post","2":"publish","3":"author-tengs","4":"post-72","6":"format-standard","7":"category-document","8":"post_tag-php","9":"post_tag-phpmyadmin","10":"post_tag-configuration-procedure"},"_links":{"self":[{"href":"http:\/\/www.tengs.info\/index.php?rest_route=\/wp\/v2\/posts\/72","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.tengs.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.tengs.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.tengs.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.tengs.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=72"}],"version-history":[{"count":0,"href":"http:\/\/www.tengs.info\/index.php?rest_route=\/wp\/v2\/posts\/72\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.tengs.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=72"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.tengs.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=72"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.tengs.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=72"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}