我正在尝试将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_date
(post_type
,post_status
,post_date
,ID
),
键post_parent
(post_parent
),
键post_author
(post_author
),
键post_name
(post_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);