Post没有出现在仪表板中 - wordpress,MySQL

时间:2010-11-07 18:27:10

标签: mysql wordpress mysql-error-1062

我最近重新设计了我的网站,完成了一个新的数据库,但我想抓住旧的wp网站上的所有帖子进入新网站。只有三个。我将数据库中与所述帖子相关的所有行导入到我的新数据库中。只有两个帖子出现了。

当我尝试手动导入第三篇文章时,我明白了:

SQL query:

-- -- Database: `erisdesi_wp` -- -- -- Dumping data for table `wp_posts` -- INSERT INTO `wp_posts` (`ID`, `post_author`, `post_date`, `post_date_gmt`, `post_content`, `post_title`, `post_excerpt`, `post_status`, `comment_status`, `ping_status`, `post_password`, `post_name`, `to_ping`, `pinged`, `post_modified`, `post_modified_gmt`, `post_content_filtered`, `post_parent`, `guid`, `menu_order`, `post_type`, `post_mime_type`, `comment_count`) VALUES (188, 1, '2010-08-26 04:42:37', '2010-08-26 04:42:37', 'Hold yr horses! We’re building it!\r\n
\r\n\r\n
', 'Design Blog', '', 'inherit', 'open', 'open', '', '110-revision-6', '', '', '2010-08-26 04:42:37', '2010-08-26 04:42:37', '', 110, 'http://www.erisdesigns.net/http:/www.erisdesigns.net/wordpress/', 0, 'revision', '', 0), (2, 1, '2010-07-17 18:28:39', '2010-07-17 18:28:39', 'Documentation #1062 - Duplicate entry

我对MySQL很陌生......任何帮助都表示赞赏。提前感谢您进一步了解我的知识。

1 个答案:

答案 0 :(得分:1)

使用WordPress导入和导出工具(在wp-admin的工具菜单下)。听起来您正在尝试导入具有相同ID的两行。如果您尝试两次导入相同的帖子,或者导入已经在其中具有相同ID的帖子的现有表格,则可能会发生这种情况。