{"id":80163,"date":"2023-10-26T22:13:06","date_gmt":"2023-10-26T14:13:06","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=80163"},"modified":"2023-10-26T22:13:06","modified_gmt":"2023-10-26T14:13:06","slug":"centos-phpmyadmin-install","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/centos-phpmyadmin-install.html","title":{"rendered":"\u5b9e\u6218cetons\u4e2d\u642d\u5efaphpmyadmin"},"content":{"rendered":"

 <\/p>\n\n\n\n
\u5bfc\u8bfb<\/td>\nphpMyAdmin \u662f\u4e00\u4e2a\u7528PHP\u7f16\u5199\u7684\u8f6f\u4ef6\u5de5\u5177\uff0c\u53ef\u4ee5\u901a\u8fc7web\u65b9\u5f0f\u63a7\u5236\u548c\u64cd\u4f5cMySQL\u6570\u636e\u5e93\u3002\u901a\u8fc7phpMyAdmin \u53ef\u4ee5\u5b8c\u5168\u5bf9\u6570\u636e\u5e93\u8fdb\u884c\u64cd\u4f5c\uff0c\u4f8b\u5982\u5efa\u7acb\u3001\u590d\u5236\u548c\u5220\u9664\u6570\u636e\u7b49\u7b49\u3002\u5982\u679c\u4f7f\u7528\u5408\u9002\u7684\u5de5\u5177\uff0cMySQL\u6570\u636e\u5e93\u7684\u7ba1\u7406\u5c31\u4f1a\u53d8\u5f97\u76f8\u5f53\u7b80\u5355\u3002\u5e94\u7528 MySQL \u547d\u4ee4\u884c\u65b9\u5f0f\u9700\u8981\u5bf9 MySQL \u77e5\u8bc6\u975e\u5e38\u719f\u6089\uff0c\u5bf9SQL\u8bed\u8a00\u4e5f\u662f\u540c\u6837\u7684\u9053\u7406\u3002\u4e0d\u4ec5\u5982\u6b64\uff0c\u5982\u679c\u6570\u636e\u5e93\u7684\u8bbf\u95ee\u91cf\u5f88\u5927\uff0c\u5217\u8868\u4e2d\u6570\u636e\u7684\u8bfb\u53d6\u5c31\u4f1a\u76f8\u5f53\u56f0\u96be\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u5f53\u524d\u51fa\u73b0\u5f88\u591aGUI MySQL\u5ba2\u6237\u7a0b\u5e8f\uff0c\u5176\u4e2d\u6700\u4e3a\u51fa\u8272\u7684\u662f\u57fa\u4e8e Web \u7684phpMyAdmin \u5de5\u5177\u3002\u8fd9\u662f\u4e00\u79cd MySQL\u6570\u636e\u5e93\u524d\u53f0\u7684\u57fa\u4e8ePHP\u7684\u5de5\u5177\u3002<\/p>\n

PhpMyAdmin \u7684\u7f3a\u70b9\u662f\u5fc5\u987b\u5b89\u88c5\u5728 Web \u670d\u52a1\u5668\u4e2d\uff0c\u6240\u4ee5\u5982\u679c\u6ca1\u6709\u5408\u9002\u7684\u8bbf\u95ee\u6743\u9650\uff0c\u5176\u5b83\u7528\u6237\u6709\u53ef\u80fd\u635f\u5bb3\u5230 SQL \u6570\u636e\u3002<\/p>\n

\u5b89\u88c5\u73af\u5883<\/strong><\/div>\n

\u5728\u540c\u4e00\u53f0\u4e3b\u673a\u4e0a\u90e8\u7f72LAMP<\/p>\n

Linux\uff08 CentOS 7.3 \uff09 \u3001Apache\uff08httpd2.4\uff09\u3001MariaDB\uff085.5\uff09\u3001PHP\uff085.4\uff09<\/p>\n

\u4e3b\u673aIP\uff1a192.168.29.110<\/p>\n

\u6e90\u7801\u5305\u4e0b\u8f7d<\/p>\n

\u5728\u5b98\u7f51http:\/\/www.phpmyadmin.net\/\u4e0b\u8f7dphpMyAdmin\u6e90\u7801\u5305phpMyAdmin-4.0.10.20-all-languages.tar<\/p>\n

1 \u5b89\u88c5\u8f6f\u4ef6<\/strong><\/div>\n

\uff081\uff09\u5b89\u88c5LAMP<\/p>\n

[root@centos7 ~]# yum install httpd php mariadb-server \u2013y\r\n<\/pre>\n

\uff082\uff09\u5b89\u88c5php\u94fe\u63a5\u6570\u636e\u5e93\u7684\u6269\u5c55\u7a0b\u5e8f\u5305<\/p>\n

[root@centos7 ~]# yum install php-mysql\r\n<\/pre>\n

\uff083\uff09\u5b89\u88c5\u652f\u6301\u591a\u5b57\u8282\u5b57\u7b26\u4e32\u6269\u5c55\u7684\u7a0b\u5e8f\u5305<\/p>\n

[root@centos7 ~]# yum install php-mbstring -y\r\n<\/pre>\n

\uff084\uff09\u5b89\u88c5\u652f\u6301\u591a\u52a0\u5bc6\u6269\u5c55\u7684\u7a0b\u5e8f\u5305<\/p>\n

[root@centos7 ~]# yum install php-mcrypt \u2013y\r\n<\/pre>\n
2 phpmyadmin\u914d\u7f6e<\/strong><\/div>\n

\uff081\uff09\u89e3\u538b\u6587\u4ef6<\/p>\n

\u89e3\u538bphpMyAdmin-4.0.10.20-all-languages.tar \u5230apache\u7684DocumentRoot\u76ee\u5f55\uff08\/var\/www\/html\uff09\u4e2d<\/p>\n

[root@centos7 ~]# tar -xf phpMyAdmin-4.0.10.20-all-languages.tar.gz -C \/var\/www\/html\/\r\n<\/pre>\n

\uff082\uff09\u590d\u5236phpmyadmin\u7684\u7b80\u5355\u914d\u7f6e\u6587\u4ef6config.sample.inc.php\uff0c\u4f5c\u4e3a\u9ed8\u8ba4\u914d\u7f6e\u6587\u4ef6<\/p>\n

[root@centos7 ~]# cp \u2013a \/var\/www\/html\/phpMyAdmin-4.0.10.20-all-languages\/config.sample.inc.php \/var\/www\/html\/phpMyAdmin-4.0.10.20-all-languages\/config.inc.php\r\n<\/pre>\n

\uff083\uff09\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6config.inc.php<\/p>\n

[root@centos7 ~]# vim \/var\/www\/html\/phpMyAdmin-4.0.10.20-all-languages\/config.inc.php\r\n<\/pre>\n

\"\"<\/p>\n

\uff084\uff09\u521b\u5efa\u8f6f\u94fe\u63a5<\/p>\n

[root@centos7 ~]# ln -s \/var\/www\/html\/phpMyAdmin-4.0.10.20-all-languages\/ \/var\/www\/html\/pma<\/p>\n

3 \u6570\u636e\u5e93MariaDB\u914d\u7f6e<\/strong><\/div>\n

\uff081\uff09\u542f\u52a8\u6570\u636e\u5e93\u670d\u52a1<\/p>\n

[root@centos7 ~]# systemctl start mariadb.service\r\n<\/pre>\n

\uff082\uff09\u8bbe\u7f6e\u6570\u636e\u5e93root\u5bc6\u7801<\/p>\n

[root@centos7 ~]# mysqladmin -u root password 'centos'\r\n<\/pre>\n
4\u542f\u52a8WEB\u670d\u52a1<\/strong><\/div>\n

[root@centos7 ~]# systemctl start httpd.service<\/p>\n

5 \u6d4b\u8bd5<\/strong><\/div>\n

\uff081\uff09\u5728\u6d4f\u89c8\u5668\u8f93\u5165http:\/\/192.168.29.110\/pma\/<\/p>\n

\"\"<\/p>\n

\uff082\uff09\u7528root\u7528\u6237\u767b\u5f55<\/p>\n

\"\"<\/p>\n

\u597d\u4e86 \u90e8\u7f72\u5b8c\u6210<\/p>\n

\u8fd9\u662f\u6700\u57fa\u672c\u7684phpmyadmin\u90e8\u7f72\u3002<\/p>\n

\n

\u539f\u6587\u6765\u81ea\uff1ahttp:\/\/www.linuxidc.com\/Linux\/2017-08\/146018.htm<\/a><\/p>\n

\u672c\u6587\u5730\u5740\uff1ahttp:\/\/lrxjmw.cn\/centos-phpmyadmin-install.html<\/a>\u7f16\u8f91\uff1a\u90d1\u5e05\uff0c\u5ba1\u6838\u5458\uff1a\u9004\u589e\u5b9d<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

  \u5bfc\u8bfb phpMyAdmin \u662f\u4e00\u4e2a\u7528PHP\u7f16\u5199\u7684\u8f6f\u4ef6\u5de5\u5177\uff0c\u53ef\u4ee5\u901a\u8fc7web\u65b9\u5f0f\u63a7\u5236\u548c\u64cd\u4f5cMySQL […]<\/p>\n","protected":false},"author":63,"featured_media":80190,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-80163","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/80163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=80163"}],"version-history":[{"count":5,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/80163\/revisions"}],"predecessor-version":[{"id":81555,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/80163\/revisions\/81555"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/80190"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=80163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=80163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=80163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}