{"id":239,"date":"2023-10-14T16:47:16","date_gmt":"2023-10-14T08:47:16","guid":{"rendered":"https:\/\/miie.net\/?p=239"},"modified":"2023-10-14T16:47:16","modified_gmt":"2023-10-14T08:47:16","slug":"install-wordpress-with-sqlite","status":"publish","type":"post","link":"https:\/\/diji.net\/?p=239","title":{"rendered":"\u4f7f\u7528SQLite\u90e8\u7f72WordPress"},"content":{"rendered":"<h1>Install WordPress with SQLite<\/h1>\n<p>\u4f7f\u7528SQLite\u90e8\u7f72Wordpress<\/p>\n<p>\u4f7f\u7528SQLite\u90e8\u7f72Wordpress,\u4e0d\u9700\u8981\u5b89\u88c5MYSQL(MARIADB)\uff0c\u53ea\u9700\u8981\u4e00\u4e2a\u80fd\u6267\u884cPHP\u7684\u73af\u5883\u5c31\u884c\u3002<\/p>\n<h2>1. \u51c6\u5907\u5de5\u4f5c<\/h2>\n<p>1.PHP\u8fd0\u884c\u73af\u5883<br \/>\n2.\u4e0b\u8f7dWordpress<br \/>\n<a href=\"https:\/\/cn.wordpress.org\/download\/\"><a href=\"https:\/\/cn.wordpress.org\/download\/\"><a href=\"https:\/\/cn.wordpress.org\/download\/\">https:\/\/cn.wordpress.org\/download\/<\/a><\/a><\/a><br \/>\n3.\u4e0b\u8f7dSQLite Database Integration<br \/>\n<a href=\"https:\/\/wordpress.org\/plugins\/sqlite-database-integration\/\"><a href=\"https:\/\/wordpress.org\/plugins\/sqlite-database-integration\/\"><a href=\"https:\/\/wordpress.org\/plugins\/sqlite-database-integration\/\">https:\/\/wordpress.org\/plugins\/sqlite-database-integration\/<\/a><\/a><\/a><\/p>\n<h2>2.\u5904\u7406\u63d2\u4ef6\u6587\u4ef6<\/h2>\n<p>1.\u89e3\u538bWordpress\u548cSQLite Database Integration\u538b\u7f29\u5305\u3002<br \/>\n2.\u5c06sqlite-database-integration\u6587\u4ef6\u5939\u590d\u5236\u5230wordpress\\wp-content\\plugins\u6587\u4ef6\u5939\u4e2d\u3002<br \/>\n3.\u5c06wordpress\\wp-content\\plugins\\sqlite-database-integration\u6587\u4ef6\u5939\u4e2d\u7684db.copy\u6587\u4ef6\uff0c\u526a\u5207\u5230wordpress\\wp-content\u6587\u4ef6\u5939\u3002\u5e76\u4e14\u91cd\u547d\u540d\u4e3adb.php<\/p>\n<h2>3.\u4fee\u6539wordpress\u7684wp-config.php\u6587\u4ef6<\/h2>\n<p>1.\u5c06wordpress\u6587\u4ef6\u5939\u4e2d\u7684wp-config-sample.php\u6587\u4ef6\u590d\u5236\u4e00\u4efd\uff0c\u91cd\u547d\u540d\u4e3awp-config.php<br \/>\n2.\u4fee\u6539wp-config.php\u4e2d\u4ee5\u4e0b\u5185\u5bb9\u3002<br \/>\n\u5c06DB_NAME\u3001DB_USER\u3001DB_PASSWORD\u3001DB_HOST\u7684\u503c\u8bbe\u7f6e\u4e3a\u7a7a\u3002<\/p>\n<p><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n\/\/ ** Database settings - You can get this info from your web host ** \/\/\n\/** The name of the database for WordPress *\/\ndefine( 'DB_NAME', '' );\n\n\/** Database username *\/\ndefine( 'DB_USER', '' );\n\n\/** Database password *\/\ndefine( 'DB_PASSWORD', '' );\n\n\/** Database hostname *\/\ndefine( 'DB_HOST', '' );\n\n<\/pre>\n<\/p>\n<h2>4.\u90e8\u7f72<\/h2>\n<p>\u5b8c\u6210\u4e0a\u8ff0\u64cd\u4f5c\uff0c\u5c06wordpress\u6587\u4ef6\u5939\u4e2d\u6574\u4f53\u4e0a\u4f20\u5230\u7f51\u7ad9\u4e0a\u5373\u53ef\u5f00\u59cb\u5b89\u88c5\u3002<\/p>\n<h2>5.\u65e0\u804a\u7684\u5e9f\u8bdd<\/h2>\n<p>WordPress \u9ed8\u8ba4\u53ea\u652f\u6301 MySQL \u6570\u636e\u5e93\uff0cMySQL \u662f\u4e16\u754c\u4e0a\u6700\u6d41\u884c\u7684\u5173\u7cfb\u578b\u6570\u636e\u5e93\uff0cWordPress \u91c7\u7528 MySQL \u4f5c\u4e3a\u6570\u636e\u5e93\u4e5f\u662f\u81ea\u7136\u800c\u7136\u7684\u4e8b\u60c5\u3002\u4e0d\u8fc7\u9664\u4e86 MySQL\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u4f7f\u7528 SQLite \u4f5c\u4e3a WordPress \u7684\u6570\u636e\u5e93\u7cfb\u7edf\u6765\u5b89\u88c5\u4f7f\u7528\u3002<\/p>\n<p>SQLite Database Integration \u662f\u4e00\u4e2a\u300cDrop-in\u300d\u7c7b\u578b\u7684\u63d2\u4ef6\uff0c\u662f\u7528\u6765\u66ff\u6362 WordPress \u5185\u7f6e\u529f\u80fd\u7684\uff0c\u53ea\u8981\u6587\u4ef6\u5b58\u5728\uff0c\u63d2\u4ef6\u5c31\u81ea\u52a8\u542f\u7528\u3002<\/p>\n<p>\u7136\u540e\u6253\u5f00 WordPress \u7ad9\u70b9\u5b89\u88c5\u9875\u9762\uff0c\u6211\u4eec\u4f1a\u53d1\u73b0\uff0c\u6ca1\u6709\u8981\u6c42\u8f93\u5165 MySQL \u6570\u636e\u5e93\u4fe1\u606f\u7684\u6b65\u9aa4\uff0c\u76f4\u63a5\u8fdb\u5165\u4e86\u5b89\u88c5\u754c\u9762\uff0c\u63a5\u4e0b\u6765\u5c31\u548c\u4f7f\u7528 MySQL \u5b89\u88c5\u7684 WordPress \u662f\u4e00\u6837\u7684\u3002\u7ecf\u8fc7\u5728wordpress6.3.2\u7248\u672c\u4e0a\u6d4b\u8bd5\uff0c\u5728\u4f7f\u7528\u4e0a\u6ca1\u6709\u4efb\u4f55\u533a\u522b\u3002<\/p>\n<h3>\u4f7f\u7528 SQLite \u5b89\u88c5 WordPress \u7684\u597d\u5904<\/h3>\n<p>\u4e3a\u4ec0\u4e48 MySQL \u4f7f\u7528\u7684\u597d\u597d\u7684\uff0c\u6211\u4eec\u8981\u4f7f\u7528 SQLite \u6765\u5b89\u88c5 WordPress \u5462\uff1f\u6709\u4ee5\u4e0b\u51e0\u70b9\u597d\u5904\uff1a<\/p>\n<ul>\n<li>\u5bf9\u670d\u52a1\u5668\u8981\u6c42\u4f4e\uff1aSQLite \u662f\u57fa\u4e8e\u6587\u4ef6\u7684\u6570\u636e\u5e93\uff0c\u53ea\u8981\u670d\u52a1\u5668\u4e0a\u6709 Nginx \u548c PHP \u5c31\u53ef\u4ee5\u4f7f\u7528\u4e86\uff0c\u76f8\u5bf9\u4e8e\u9ed8\u8ba4\u7684\u5b89\u88c5\u65b9\u6cd5\uff0c\u5c11\u4e86\u4e00\u4e2a MySQL \u670d\u52a1\u3002<\/li>\n<li>\u65b9\u4fbf\u5907\u4efd\uff1a\u76f4\u63a5\u6253\u5305\u7ad9\u70b9\u76ee\u5f55\u5c31\u628a\u6574\u4e2a\u7ad9\u70b9\u5907\u4efd\u597d\u4e86\u3002<\/li>\n<li>\u65b9\u4fbf\u8fc1\u79fb\uff1a\u5982\u679c\u9700\u8981\u8fc1\u79fb\u670d\u52a1\u5668\uff0c\u76f4\u63a5\u628a\u7ad9\u70b9\u76ee\u5f55\u6253\u5305\uff0c\u4e0a\u4f20\u5230\u53e6\u5916\u4e00\u4e2a\u670d\u52a1\u5668\u4e0a\u5c31\u53ef\u4ee5\u4e86\uff0c\u4e0d\u7528\u518d\u5bfc\u51fa\u3001\u5bfc\u5165\u6570\u636e\u5e93\u3002<\/li>\n<\/ul>\n<h3>\u4ec0\u4e48\u65f6\u5019\u53ef\u4ee5\u4f7f\u7528 SQLite<\/h3>\n<p>\u65e2\u7136\u6709\u4e86\u4e0a\u9762\u8bf4\u7684\u8bf8\u591a\u597d\u5904\uff0c\u90a3\u6211\u4eec\u662f\u5426\u53ef\u4ee5\u5728\u6240\u6709\u60c5\u51b5\u4e0b\u90fd\u4f7f\u7528 SQLite \u6765\u5b89\u88c5 WordPress \u5462\uff1f\u5f53\u7136\u4e0d\u662f\uff0cWordPress \u9ed8\u8ba4\u91c7\u7528 MySQL\u800c\u4e0d\u662f SQLite \u4f5c\u4e3a\u6570\u636e\u5e93\u662f\u6709\u539f\u56e0\u7684\u3002<\/p>\n<p>\u4ece\u540d\u79f0\u5c31\u53ef\u4ee5\u770b\u51fa\uff0cSQLite \u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684\u6570\u636e\u5e93\uff0c\u67d0\u4e9b\u590d\u6742\u7684\u7279\u6027\u662f\u652f\u6301\u4e0d\u4e86\u7684\u3002\u6240\u4ee5\uff0c\u5982\u679c\u6211\u4eec\u5f00\u53d1\u7684\u662f\u4e00\u4e2a\u5f88\u7b80\u5355\u7684\u4f01\u4e1a\u7ad9\u70b9\uff0c\u53ea\u6709\u4e3a\u6570\u4e0d\u591a\u7684\u51e0\u4e2a\u9875\u9762\uff0c\u4e0d\u6d89\u53ca\u590d\u6742\u7684\u6570\u636e\u5e93\u4ea4\u4e92\u7684\u60c5\u51b5\u4e0b\uff0c\u4f7f\u7528 SQLite \u662f\u5b8c\u5168\u6ca1\u6709\u95ee\u9898\u7684\u3002<\/p>\n<p>\u56e0\u4e3a WordPress \u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u751f\u6001\u7cfb\u7edf\uff0c\u5728\u7ad9\u70b9\u67b6\u6784\u4e0a\uff0c\u4f1a\u6709\u5f88\u591a\u53ef\u80fd\uff0c\u4e0d\u53ea\u662f SQLite\uff0cWordPress \u751a\u81f3\u4e5f\u53ef\u4ee5\u4f7f\u7528 PostgreSQL \u8fdb\u884c\u5b89\u88c5\uff0c\u5177\u4f53\u65b9\u6cd5\u5927\u5bb6\u53ef\u4ee5\u81ea\u884c\u641c\u7d22\uff0c\u5728\u8fd9\u91cc\u5c31\u4e0d\u5728\u591a\u8bf4\u4e86\u3002<\/p>\n<h3>\u5728SQLite\u4e0a\u8fd0\u884cWP\u6709\u4ec0\u4e48\u9650\u5236\uff1f\u4e3a\u4ec0\u4e48\u4e0d\u5c06\u5176\u7528\u4e8e\u6240\u6709\u7ad9\u70b9\uff1f<\/h3>\n<p>\u7f3a\u70b9\u4e4b\u4e00\u662fSQLite\u5728\u5177\u6709\u591a\u4e2a\u4f5c\u8005\u7684\u7ad9\u70b9\u4e2d\u8868\u73b0\u4e0d\u4f73\u3002\u5982\u679c\u591a\u4e2a\u4f5c\u8005\u6b63\u5728\u7f16\u8f91\u7f51\u7ad9\u4e0a\u7684\u5e16\u5b50\u5e76\u540c\u65f6\u66f4\u65b0\u5b83\u4eec\uff0c\u90a3\u4e48\u4ed6\u4eec\u7684\u4fdd\u5b58\u8bf7\u6c42\u5c06\u4e00\u4e2a\u63a5\u4e00\u4e2a\u5730\u8fd0\u884c\uff0c\u800c\u4e0d\u662f\u540c\u65f6\u8fd0\u884c\u2014\u2014\u56e0\u6b64\u4f1a\u6709\u4e00\u5c0f\u6bb5\u5ef6\u8fdf\uff08\u53ef\u80fd\u662f\u6beb\u79d2\uff0c\u4f46\u4ecd\u7136\u662f\u5ef6\u8fdf\uff09\u3002<\/p>\n<p>SQLite\u662f\u4e00\u4e2a\u5f88\u68d2\u7684\u5de5\u5177\uff0c\u4f46\u5b83\u4e0d\u662f\u7075\u4e39\u5999\u836f - \u5c31\u50cfMySQL\u4e00\u6837\u3002MySQL\u662f\u5e76\u4e14\u5e94\u8be5\u7ee7\u7eed\u6210\u4e3a\u9ed8\u8ba4\u7684\uff0c\u56e0\u4e3a\u5982\u679c\u4f60\u6709\u6210\u4e3a\u4e0b\u4e00\u4ef6\u5927\u4e8b\u7684\u613f\u671b\uff0c\u90a3\u4e48MySQL\u53ef\u4ee5\u66f4\u597d\u5730\u6269\u5c55\u3002\u53e6\u4e00\u65b9\u9762\uff0c\u5982\u679c\u60a8\u53ea\u60f3\u8981\u4e00\u4e2a\u535a\u5ba2\uff0c\u4e00\u4e2a\u5e26\u6709\u60a8\u7684\u5173\u4e8e\u9875\u9762\u548c\u8054\u7cfb\u8868\u5355\u7684\u516c\u53f8\u7f51\u7ad9\uff0c\u6216\u8005\u4efb\u4f55\u7c7b\u578b\u7684\u5c0f\u578b\u7f51\u7ad9\uff08\u53ef\u4ee5\u8bf4\u662fWordPress\u4e0a\u7684\u5927\u591a\u6570\u7f51\u7ad9\uff09\uff0c\u90a3\u4e48SQLite\u5c31\u662f\u60a8\u6240\u9700\u8981\u7684\uff0c\u5b83\u4f1a\u8868\u73b0\u5f97\u66f4\u597d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install WordPress with SQLite \u4f7f\u7528SQLite\u90e8\u7f72Wordpress \u4f7f\u7528SQLite\u90e8\u7f72Wordpress,\u4e0d\u9700\u8981\u5b89\u88c5MYSQL(MARIADB)\uff0c\u53ea\u9700\u8981\u4e00\u4e2a\u80fd\u6267\u884cPHP\u7684\u73af\u5883\u5c31\u884c\u3002 1. \u51c6\u5907\u5de5\u4f5c 1.PHP\u8fd0\u884c\u73af\u5883 2.\u4e0b\u8f7dWordpress https:\/\/cn.wordpress.org\/download\/ 3.\u4e0b\u8f7dSQLite Database Integration https:\/\/wordpress.org\/plugins\/sqlite-database-integration\/ 2.\u5904\u7406\u63d2\u4ef6\u6587\u4ef6 1.\u89e3\u538bWordpress\u548cSQLite Database Integration\u538b\u7f29\u5305\u3002 2.\u5c06sqlite-database-integration\u6587\u4ef6\u5939\u590d\u5236\u5230wordpress\\wp-content\\plugins\u6587\u4ef6\u5939\u4e2d\u3002 3.\u5c06wordpress\\wp-content\\plugins\\sqlite-database-integration\u6587\u4ef6\u5939\u4e2d\u7684db.copy\u6587\u4ef6\uff0c\u526a\u5207\u5230wordpress\\wp-content\u6587\u4ef6\u5939\u3002\u5e76\u4e14\u91cd\u547d\u540d\u4e3adb.php 3.\u4fee\u6539wordpress\u7684wp-config.php\u6587\u4ef6 1.\u5c06wordpress\u6587\u4ef6\u5939\u4e2d\u7684wp-config-sample.php\u6587\u4ef6\u590d\u5236\u4e00\u4efd\uff0c\u91cd\u547d\u540d\u4e3awp-config.php 2.\u4fee\u6539wp-config.php\u4e2d\u4ee5\u4e0b\u5185\u5bb9\u3002 \u5c06DB_NAME\u3001DB_USER\u3001DB_PASSWORD\u3001DB_HOST\u7684\u503c\u8bbe\u7f6e\u4e3a\u7a7a\u3002 \/\/ ** Database settings &#8211; You can get this info from your web host ** \/\/ \/** The name of the database for WordPress *\/ define( &#8216;DB_NAME&#8217;, &#8221; ); \/** [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,14,16],"tags":[],"class_list":["post-239","post","type-post","status-publish","format-standard","hentry","category-php","category-sqlite","category-wordpress"],"_links":{"self":[{"href":"https:\/\/diji.net\/index.php?rest_route=\/wp\/v2\/posts\/239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/diji.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/diji.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/diji.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/diji.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=239"}],"version-history":[{"count":0,"href":"https:\/\/diji.net\/index.php?rest_route=\/wp\/v2\/posts\/239\/revisions"}],"wp:attachment":[{"href":"https:\/\/diji.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/diji.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/diji.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}