{"id":15,"date":"2007-01-07T09:16:58","date_gmt":"2007-01-07T09:16:58","guid":{"rendered":"http:\/\/learn-house.idv.tw\/?p=15"},"modified":"2011-03-16T21:16:03","modified_gmt":"2011-03-16T13:16:03","slug":"%e7%b6%b2%e8%aa%8c%e5%8d%87%e7%b4%9a%e8%87%b31-1-x","status":"publish","type":"post","link":"https:\/\/learn-house.idv.tw\/?p=15","title":{"rendered":"\u7db2\u8a8c\u5347\u7d1a\u81f31.1.x!!"},"content":{"rendered":"<p>\u7576\u521d\u5b89\u88dd\u5b8c1.0.6\u7248\u5f8c\u767c\u73fe\uff0c\u73fe\u5728\u90fd\u5df2\u7d93\u767c\u5c55\u52301.1.X\u4e86\uff0c\u56e0\u6b64\u7576\u7136\u8981\u8ddf\u4e0a\u6d41\u884c<\/p>\n<p>\u53c3\u8003\u4e86<a href=\"http:\/\/wiki.lifetype.org.tw\/index.php?title=LifeType_1.1_Upgrade#.E5.8D.87.E7.B4.9A.E5.88.B0LifeType_1.1%5C%22\" target=\"_blank\">\u5b98\u65b9<\/a>\u8207<a href=\"http:\/\/blog.nlhs.tyc.edu.tw\/post\/2\/153\" target=\"_blank\">lss\u5be6\u9a57\u5ba4<\/a>\u958b\u59cb\u52d5\u624b\u5347\u7d1a\u6211\u7684\u7db2\u8a8c\uff0c\u53ef\u60dc\u7684\u662f\u6709\u4e9b\u6a21\u677f\u90fd\u8207\u65b0\u7248\u4e0d\u76f8\u5bb9<\/p>\n<p>\u60f3\u8981\u7528\u820a\u6709\u7684\u6a21\u677f\u5c31\u6703\u5931\u53bb\u5f88\u591a\u65b0\u7248\u7684\u529f\u80fd\uff0c\u5169\u908a\u771f\u662f\u5f88\u96e3\u6289\u64c7\u3002<\/p>\n<p>\u5728\u5347\u7d1a\u6642\u6703\u6709\u8cc7\u6599\u5eab\u8b8a\u6210???\u7684\u554f\u984c\u767c\u751f <!--more--><strong>\u70ba\u4e86\u9632\u6b62\u597d\u6587\u7ae0\u6d88\u5931\uff0c\u56e0\u6b64\u4ee5\u4e0b\u5f15\u7528\u4f86\u81f3\u65bc<a href=\"http:\/\/blog.nlhs.tyc.edu.tw\/post\/2\/153\" target=\"_blank\">lss\u5be6\u9a57\u5ba4<\/a>\u7684\u6587\u7ae0<\/strong><\/p>\n<p>\u5728\u5b98\u65b9\u7684\u91cb\u51fa\u6587\u7ae0\u88e1\u8aaa\uff0c\u5347\u7d1a\u6642\uff0c\u53ea\u8981\u4fdd\u7559\u539f\u4f86\u7684 config\/config.properities.php \uff0c\u5176\u9918\u7684\u7528\u65b0\u7684\u7a0b\u5f0f\u8986\u84cb\uff0c\u518d\u57f7\u884c wizard.php \u5c31\u53ef\u4ee5\u4e86\u3002\u9019\u539f\u672c\u6c92\u932f\uff0c\u4e0d\u904e\uff0c\u9084\u662f\u6709\u4e00\u4e9b\u5c0f\u5730\u65b9\u8981\u6ce8\u610f\uff0c\u4e3b\u8981\u9084\u662f<strong>\u8cc7\u6599\u5eab\u7de8\u78bc<\/strong>\u7684\u554f\u984c\uff1a<\/p>\n<p>\u5148\u8aaa\u505a\u6cd5\uff1a<\/p>\n<p>\u5efa\u8b70\u624b\u52d5\u7de8\u8f2f config\/config.properities.php \u6a94\uff0c\u56e0\u70ba\u88e1\u9762\u591a\u4e86\u5169\u500b\u65b0\u7684\u53c3\u6578\uff1a<\/p>\n<blockquote><p>$config[\"db_host\"] = \"localhost\";<br \/>\n$config[\"db_username\"] = \"root\";<br \/>\n$config[\"db_password\"] = \"password\";<br \/>\n$config[\"db_database\"] = \"lifetypedb\";<br \/>\n<span style=\"color: #ff0000;\">$config[\"db_persistent\"] = true;<\/span><br \/>\n<span style=\"color: #ff0000;\">$config[\"db_character_set\"] = \"utf8\"<\/span>;<br \/>\n$config[\"db_prefix\"] = \"lt_\";<\/p><\/blockquote>\n<p>\u7d05\u8272\u90e8\u4efd\uff0c db_persistent \u6307\u5b9a\u8cc7\u6599\u5eab\u9023\u7d50\u65b9\u5f0f\uff0c\u5efa\u8b70\u7528\u539f\u9810\u8a2d\u503c\u5c31\u597d\uff1b\u53e6\u4e00\u500b <strong>db_character_set<\/strong> \u662f\u91cd\u9ede\uff0c\u8acb\u8a2d\u70ba <strong>utf8<\/strong> \u4e4b\u5f8c\uff0c\u518d\u57f7\u884c wizard.php \u5b89\u88dd\u7a0b\u5f0f\u3002\u5176\u9918\u7684\u53c3\u6578\uff0c\u61c9\u8a72\u4e0d\u7528\u8aaa\u660e\u5427\u3002<\/p>\n<p>\u70ba \u4ec0\u9ebc\u8981\u9019\u6a23\u505a\u5462\uff1f\u800c\u4e0d\u4f7f\u7528\u539f\u4f86\u7684 default \u5c31\u597d\uff1f\u56e0\u70ba\uff0c\u9019\u500b\u53c3\u6578\u662f\u6307\u5b9a\u8cc7\u6599\u5eab\u7684\u7de8\u78bc\u65b9\u5f0f\u3002\u7d55\u5927\u90e8\u4efd\u7684 LifeType \u7ba1\u7406\u54e1\u61c9\u8a72\u90fd\u662f\u4f7f\u7528 utf8 \u7de8\u78bc\u7684\u8cc7\u6599\u5eab\u5b58\u653e\u8cc7\u6599\u5427\u3002\u4f46\u662f\u4e3b\u6a5f\u7684 MySQL \u9810\u8a2d\u7de8\u78bc\u537b\u5f88\u53ef\u80fd\u662f latin1 \u6216\u5176\u4ed6\u65b9\u5f0f\uff0c\u5c24\u5176\u662f\u79df\u570b\u5916\u865b\u64ec\u4e3b\u6a5f\u7684\u4eba\u66f4\u5bb9\u6613\u9047\u5230\u9019\u7a2e\u60c5\u5f62\u3002\u82e5\u662f db_character_set \u4f7f\u7528 default \uff0c\u90a3 LifeType \u5c31\u6703\u7528 MySQL \u7684\u9810\u8a2d\u7de8\u78bc\u65b9\u5f0f\u5e6b\u4f60\u505a\u5347\u7d1a\u6642\u7684\u8cc7\u6599\u5eab\u8f49\u63db\u3002\u65bc\u662f\uff0c\u932f\u8aa4\u51fa\u73fe\u4e86\u3002<\/p>\n<p>\u6211\u7684\u6e2c\u8a66\u74b0\u5883\u88e1\uff0c MySQL \u7684\u9810\u8a2d\u9023\u7dda\u662f latin1 \uff0c\u4f7f\u7528 default \u8a2d\u5b9a\u503c\u5347\u7d1a\u5f8c\u9047\u5230\u7684\u72c0\u6cc1\u6709\u5169\u7a2e\uff1a<\/p>\n<p>\u4e00\u3001\u6240\u6709\u7684\u4e2d\u6587\u5168\u90fd\u8b8a\u6210\u554f\u865f(?)\u3002<\/p>\n<p>\u9032\u8cc7\u6599\u5eab\u770b\uff0c\u6587\u7ae0\u90fd\u9084\u662f utf8 \u4e2d\u6587\uff0c\u539f\u4ee5\u70ba\u6b64\u6642\u5c07 db_character_set \u6539\u70ba utf8 \u5c31\u641e\u5b9a\u4e86\uff0c\u7d50\u679c\uff0c\u6587\u7ae0\u662f\u6c92\u554f\u984c\u4e86\uff0c\u4f46\u662f\u53e6\u4e00\u500b\u554f\u984c\u51fa\u73fe\u4e86\uff1a<\/p>\n<p>\u4e8c\u3001\u5f15\u7528\u9801\u7684\u4e2d\u6587\u9084\u662f\u8b8a\u6210\u554f\u865f(?) \u3002<\/p>\n<p>\u539f\u4f86\uff0c LifeType 1.1 \u5c07\u5f15\u7528\u8207\u8ff4\u97ff\u5169\u500b\u8868\u683c\u5408\u4f75\u4e86\uff0c\u6240\u4ee5\u6240\u6709\u7684\u5f15\u7528\u5168\u90fd\u88ab\u79fb\u5230\u8ff4\u97ff\u7684\u8868\u683c\u88e1\u3002\u4f46\u662f\uff0c\u5347\u7d1a\u6642\u7684 db_character_set \u662f default \uff0c\u6240\u4ee5\u9019\u88e1\u5df2\u7d93\u5168\u90fd\u8b8a\u6210\u4e82\u78bc(\u554f\u865f)\u4e86\u3002<\/p>\n<p>\u6240\u4ee5\uff0c\u8a18\u5f97\u54e6\uff0c\u5728\u5347\u7d1a\u4e4b\u524d\uff0c\u628a db_character_set \u8a2d\u5b9a\u6210 utf8 \u3002\u90a3\u9ebc\uff0c\u4e0d\u7ba1\u4f60\u4e3b\u6a5f\u7684 MySQL \u7684\u9810\u8a2d\u9023\u7dda\u662f\u4ec0\u9ebc\u8a9e\u8a00\uff0c\u90fd\u80fd\u6b63\u78ba\u7684\u8f49\u63db\u4f60\u7684 LifeType \u539f\u4f86\u7684 utf8 \u8cc7\u6599\u5eab\u3002<\/p>\n<p>\u4ec0\u9ebc\u60c5\u6cc1\u4e0b db_character_set \u4f7f\u7528 default \u4e0d\u6703\u51fa\u554f\u984c\uff1f<\/p>\n<p>1.MySQL \u5df2\u7d93\u8abf\u6821\u597d\u4f7f\u7528 utf8 \u9810\u8a2d\u9023\u7dda\uff0c\u6216\u8005<\/p>\n<p>2.\u8cc7\u6599\u5eab\u539f\u4f86\u5c31\u4e0d\u662f utf8 \u7684\u683c\u5f0f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7576\u521d\u5b89\u88dd\u5b8c1.0.6\u7248\u5f8c\u767c\u73fe\uff0c\u73fe\u5728\u90fd\u5df2\u7d93\u767c\u5c55\u52301.1.X\u4e86\uff0c\u56e0\u6b64\u7576\u7136\u8981\u8ddf\u4e0a\u6d41\u884c \u53c3\u8003\u4e86\u5b98\u65b9\u8207lss\u5be6\u9a57\u5ba4\u958b\u59cb\u52d5 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-15","post","type-post","status-publish","format-standard","hentry","category-6"],"_links":{"self":[{"href":"https:\/\/learn-house.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/15"}],"collection":[{"href":"https:\/\/learn-house.idv.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/learn-house.idv.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/learn-house.idv.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/learn-house.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15"}],"version-history":[{"count":0,"href":"https:\/\/learn-house.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/15\/revisions"}],"wp:attachment":[{"href":"https:\/\/learn-house.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/learn-house.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/learn-house.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}