我有一个通过管理面板中的 SQL 备份工具创建的 IPB 论坛的 3GB .sql 备份。我正在尝试将它在我的本地机器上恢复到本地安装的 IPB,但是其中一个CREATE TABLE
语句引发了语法错误。对于我的一生,我看不出这句话有什么问题:
CREATE TABLE core_notification_defaults (
notification_key varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT 'Key',
default set('email','inline') COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT 'Default options',
disabled set('email','inline') COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT 'Disabled options',
editable bit(1) NOT NULL DEFAULT b'1' COMMENT 'Member can edit',
PRIMARY KEY (notification_key)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
我通过将 .sql 文件输入到mysql
. 抛出的错误是:
ERROR 1064 (42000) at line 749558: 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 'default set('email','inline') COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMEN' at line 3
不过,我看不出那条线有什么问题。
我有点恼火的是,IPB 自己的备份工具正在生成标准 MySQL 命令行工具甚至无法读取的输出。
任何帮助,将不胜感激。:)