PHPMyAdmin 导出中缺少列

PHPMyAdmin Missing Columns in Export

我从我的服务器导出一个 table,它看起来像这样...

CREATE TABLE IF NOT EXISTS `actions` (
  `aid` varchar(255) NOT NULL DEFAULT '0' COMMENT 'Primary Key: Unique actions ID.',
  `type` varchar(32) NOT NULL DEFAULT '' COMMENT 'The object that that action acts on (node, user, comment, system or custom types.)',
  `callback` varchar(255) NOT NULL DEFAULT '' COMMENT 'The callback function that executes when the action runs.',
  `parameters` longblob NOT NULL COMMENT 'Parameters to be passed to the callback function.',
  `label` varchar(255) NOT NULL DEFAULT '0' COMMENT 'Label of the action.',
  PRIMARY KEY (`aid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores action information.';

但是,我刚刚重新安装了 WAMP,当我从那里导出时,它看起来像这样....

CREATE TABLE IF NOT EXISTS `actions` (
  `aid` varchar(255) NOT NULL DEFAULT '0'COMMENT
) ;

这缺少所有列,并且在尝试导入时出现错误...

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 3

有什么我应该在这里设置的吗?之前装过几次WAMP,默认的SQL导出一直没问题。数据库完全相同,WAMP 上的数据库在导出时只是忽略了列和数据的负载。我确实选择了所有 table 结构和数据进行导出。

天知道为什么,但 Phpmyadmin 中的导出搞砸了。

我 ssh 到 msql5.7.11/bin 并使用 mysqldump --databases test > dump.sql 代替

在我的例子中,它是由错误形成的 table(从迁移生成)

引起的
  • 我无法复制 table,它显示了警告
  • 我修复了 table 表单(终于可以复制)并且它正确导出了