通过SQL导入WP帖子

时间:2019-02-10 03:07:23

标签: sql wordpress

我正在尝试将SQL文件导入WordPress,其中包含帖子。我能够成功地将文件导入sql,并且可以看到我的帖子已满。 当我登录WordPress时,没有帖子数据。

有人有什么想法吗?

SET SQL_MODE =“ NO_AUTO_VALUE_ON_ZERO”;

---------------------------------------------- -----------

-表wp_posts的表结构

如果存在wp_posts,则删除表; 创建表wp_posts(   ID bigint(20)unsigned NOT NULL AUTO_INCREMENT,   post_author bigint(20)unsigned NOT NULL DEFAULT'0',   post_date datetime NOT NULL DEFAULT'0000-00-00 00:00:00',   post_date_gmt datetime NOT NULL DEFAULT'0000-00-00 00:00:00',   post_content longtext COLLATE utf8mb4_unicode_ci NOT NULL,   post_title文字COLLATE utf8mb4_unicode_ci NOT NULL,   post_excerpt文字COLLATE utf8mb4_unicode_ci NOT NULL,   post_status varchar(20)收集utf8mb4_unicode_ci NOT NULL缺省'发布',   comment_status varchar(20)收集utf8mb4_unicode_ci NOT NULL缺省'open',   ping_status varchar(20)收集utf8mb4_unicode_ci NOT NULL缺省'open',   post_password varchar(255)COLLUT utf8mb4_unicode_ci NOT NULL DEFAULT'',   post_name varchar(200)收集utf8mb4_unicode_ci NOT NULL DEFAULT'',   to_ping文字COLLATE utf8mb4_unicode_ci NOT NULL,   pinged文字COLLATE utf8mb4_unicode_ci NOT NULL,   post_modified datetime NOT NULL DEFAULT'0000-00-00 00:00:00',   post_modified_gmt datetime NOT NULL DEFAULT'0000-00-00 00:00:00',   post_content_filtered longtext COLLATE utf8mb4_unicode_ci NOT NULL,   post_parent bigint(20)unsigned NOT NULL DEFAULT'0',   guid varchar(255)COLLUT utf8mb4_unicode_ci NOT NULL DEFAULT'',   menu_order int(11)NOT NULL缺省'0',   post_type varchar(20)收集utf8mb4_unicode_ci NOT NULL缺省'post',   post_mime_type varchar(100)COLLUT utf8mb4_unicode_ci NOT NULL DEFAULT'',   comment_count bigint(20)NOT NULL缺省值'0',   主键(ID),   键type_status_datepost_typepost_statuspost_dateID),   键post_parentpost_parent),   键post_authorpost_author),   键post_namepost_name(191)) )ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci AUTO_INCREMENT = 8517;

插入wp_posts值(168,1,'2013-05-10 13:59:51','2013-05-10 13:59:51','POST CONTENT','publish' ,'open','closed','','portfolio-single-side-slideshow-2','','','2013-05-10 13:59:51','2013-05-10 13 :59:51','',0,'http://moozpaper.com/jupiter/?post_type=portfolio&p=168',0,'投资组合','',0);

0 个答案:

没有答案