我从我的服务器导出一个表,它看起来像这样......
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.';
Run Code Online (Sandbox Code Playgroud)
但是,我刚刚重新安装了 WAMP,当我从那里导出时,它看起来像这样....
CREATE TABLE IF NOT EXISTS `actions` (
`aid` varchar(255) NOT NULL DEFAULT '0'COMMENT
) ;
Run Code Online (Sandbox Code Playgroud)
这缺少所有列,并且在尝试导入时出现错误...
#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 上的数据库只是在导出时忽略了列和数据的负载。我肯定选择了所有表结构和数据进行导出。
天知道为什么,但 phpmyadmin 中的导出搞砸了。
我 SSH 到 msql5.7.11/bin 并mysqldump --databases test > dump.sql改为使用
| 归档时间: |
|
| 查看次数: |
1574 次 |
| 最近记录: |