{"id":159,"date":"2023-07-23T09:06:04","date_gmt":"2023-07-23T01:06:04","guid":{"rendered":"https:\/\/lyvba.com\/?p=159"},"modified":"2023-07-24T14:10:24","modified_gmt":"2023-07-24T06:10:24","slug":"typecho_to_wordpress","status":"publish","type":"post","link":"https:\/\/lyvba.com\/index.php\/2023\/07\/23\/typecho_to_wordpress\/","title":{"rendered":"\u862d\u96c5\u4e2a\u4eba\u7b14\u8bb0\u7f51\u7ad9\u4ece 262235.xyz \u8fc1\u79fb\u5230 lyvba.com \u6570\u636e\u8fc1\u79fb\u7b14\u8bb0"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">\u89e3\u51b3_Typecho \u4f7f\u7528 ByeTyp \u5bfc\u51faXML Database Query Error<\/h1>\n\n\n\n<p>Typecho \u4f7f\u7528\u5355\u6587\u4ef6 sqliete \u505a\u6570\u636e<br>\u4f7f\u7528 ByeTyp-1.4 \u6570\u636e\u5bfc\u51fa WordPress<br>\u5bfc\u51faXML\u6587\u4ef6<br>Database Query Error<\/p>\n\n\n\n<p>\u66f4\u65b0\u5230 MYSQL\uff0c\u7ec8\u4e8e\u53ef\u4ee5\u5bfc\u51fa WordPress.2023-07-22.xml<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1. \u6253\u5f00 SQLite \u6570\u636e\u5e93 \u5bfc\u51faSQLite\u6570\u636e\u5e93\u4e3aSQL\u6587\u4ef6<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sqlite3 yourdatabase.db\n        .output yourscript.sql\n        .dump\n        .exit<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">2. \u4fee\u6539SQL\u6587\u4ef6\u4ee5\u9002\u5e94MySQL\u7684\u8bed\u6cd5\uff0c\u4f7f\u7528\u4e0a\u4f20\u7684 perl\u811a\u672c\u8f6c\u6362<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code># \u5c06\u53cc\u5f15\u53f7 (\"\") \u66f4\u6539\u4e3a\u53cd\u5f15\u53f7 (``),\u5220\u9664SQLite\u7279\u5b9a\u7684\u547d\u4ee4\uff0c\u5982 BEGIN TRANSACTION; \u548c COMMIT;\nperl sqlite2mysql.pl your_database.sql &gt; mysql.sql<\/code><\/pre>\n\n\n\n<p><a href=\"https:\/\/262235.xyz\/usr\/uploads\/2023\/07\/4113168381.zip\">sqlite2mysql.zip<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3. \u5907\u4efd config.inc.php \u540e\u5220\u9664 typecho \u4f1a\u91cd\u65b0\u5b89\u88c5\uff0c\u6309\u9ed8\u8ba4\u7684 mysql \u914d\u7f6e\u6210\u5168\u65b0\u535a\u5ba2<\/h2>\n\n\n\n<p>\u9700\u8981\u521b\u5efa2\u4e2a\u6570\u636e\u5e93 blog2023 \u548c typecho\uff0c\u4e00\u4e2a\u7528\u6765\u90e8\u7f72 typecho \uff0c\u53e6\u4e00\u4e2a\u7528\u6765\u6062\u590d\u539f\u6765\u7684\u6570\u636e<br>\u7136\u540e\u53c2\u8003\u56fe\u7247\uff0c\u4e0d\u8981\u628a\u5168\u90e8\u8868\u683c\u90fd\u5bfc\u5165\u3002\u6211\u5c31\u662f\u5728\u8fd9\u91cc\u8e29\u5751\u4e86\u5f88\u4e45\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/262235.xyz\/usr\/uploads\/2023\/07\/2888391894.webp\" alt=\"HeidiSQL.webp\" width=\"975\" height=\"603\" title=\"HeidiSQL.webp\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">4. \u5982\u56fe\uff0c\u628a\u9664 typecho_options \u5916\u7684\u8868\u683c\uff0c\u6062\u590d\u5230 \u90e8\u7f72 typecho \u7684\u6570\u636e\u5e93\u4e2d<\/h2>\n\n\n\n<p>\u73b0\u5728\u5c31\u53ef\u4ee5\u4f7f\u7528 ByeTyp-1.4 \u6570\u636e\u5bfc\u51fa WordPress \u7528\u7684\u6587\u4ef6 WordPress.2023-07-22.xml<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">5. Typecho \u8fc1\u79fb\u5230 WordPress \u56fe\u7247\u6587\u4ef6\u76ee\u5f55\u548c\u6570\u636e\u5e93\u7684\u4fee\u590d<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>cp -r ..\/usr\/uploads\/*   wp-content\/uploads\/\n\nUPDATE wp_posts SET post_content = REPLACE( post_content, '\/usr\/uploads\/', '\/wp-content\/uploads\/');\nUPDATE wp_posts SET post_content = REPLACE(post_content, '262235.xyz', 'lyvba.com');\n\nUPDATE wp_posts SET post_content = REPLACE(post_content, '`', '\"');<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u89e3\u51b3_Typecho \u4f7f\u7528 ByeTyp \u5bfc\u51faXML Database Query Error Ty [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":160,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,9],"tags":[59,75],"class_list":["post-159","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-moment","tag-sql","tag-vps-2"],"_links":{"self":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/159","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/comments?post=159"}],"version-history":[{"count":3,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/159\/revisions"}],"predecessor-version":[{"id":1315,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/159\/revisions\/1315"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/media\/160"}],"wp:attachment":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/media?parent=159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/categories?post=159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/tags?post=159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}