php - 错误 #1136 但上传备份的 WordPress 数据库时,列似乎与值匹配

标签 php mysql wordpress

我一直在尝试将备份的 wp 数据库上传到我的服务器,但我在帖子表中不断收到此错误

#1136 - Column count doesn't match value count at row 37

这是转储到数据库中的代码

CREATE TABLE IF NOT EXISTS `eel_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 NOT NULL,
  `post_title` text NOT NULL,
  `post_excerpt` text NOT NULL,
  `post_status` varchar(20) NOT NULL DEFAULT 'publish',
  `comment_status` varchar(20) NOT NULL DEFAULT 'open',
  `ping_status` varchar(20) NOT NULL DEFAULT 'open',
  `post_password` varchar(20) NOT NULL DEFAULT '',
  `post_name` varchar(200) NOT NULL DEFAULT '',
  `to_ping` text NOT NULL,
  `pinged` text 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 NOT NULL,
  `post_parent` bigint(20) unsigned NOT NULL DEFAULT '0',
  `guid` varchar(255) NOT NULL DEFAULT '',
  `menu_order` int(11) NOT NULL DEFAULT '0',
  `post_type` varchar(20) NOT NULL DEFAULT 'post',
  `post_mime_type` varchar(100) NOT NULL DEFAULT '',
  `comment_count` bigint(20) NOT NULL DEFAULT '0',
  PRIMARY KEY (`ID`),
  KEY `post_name` (`post_name`),
  KEY `type_status_date` (`post_type`,`post_status`,`post_date`,`ID`),
  KEY `post_parent` (`post_parent`),
  KEY `post_author` (`post_author`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=247 ;




INSERT INTO `eel_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
(121, 1, '2015-01-12 20:45:09', '2015-01-12 23:45:09', 'Se sugiere que exista una entidad en el gobierno, preferentemente en el Ministerio de Energía, que pueda hacer seguimiento y auditoría de las EEL, además de aconsejar a los diversos territorios de cómo poder alcanzar las metas y postular a los diversos fondos existentes. Para no tener mucha burocracia, se pueden revisar las metas en los Municipios cada 4 y/o 5 años. Es importante enfocarse en pocos indicadores pero que sean importantes.', 'Seguimiento', '', 'inherit', 'closed', 'open', '', '109-revision-v1', '', '', '2015-01-12 20:45:09', '2015-01-12 23:45:09', '', 109, 'http://eel.cl/eel/sin-categoria/109-revision-v1/', 0, 'revision', '', 0),

最佳答案

这意味着您有 23 列,但您错过了某些列的值。

关于php - 错误 #1136 但上传备份的 WordPress 数据库时,列似乎与值匹配,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32273670/

相关文章:

php - 无法使用 Flash 应用程序更新 PHP 数据库

php - 调用未定义函数 curl_version

php - 在 laravel 中使用或声明

java - JDBC 会做些什么来保护我的密码和用户名不被嗅探吗?

php - 从文件名中删除特殊字符

MySQL 包含带有 order by 的特定行

php - 多个 SQL 查询的复选框

php - 可湿性粉剂;无法从 iOS 移动设备向搜索输入字段输入文本

wordpress - Google Analytics(分析)和WordPress-我找不到合适的位置将代码粘贴到

notifications - 当所有插件都已更新时,Wordpress 显示我有 1 个插件更新