- 精华
- 阅读权限
- 50
- 好友
- 相册
- 分享
- 听众
- 收听
- 注册时间
- 2024-12-10
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
本帖最后由 shgedu 于 2025-3-27 10:20 编辑
大神,我在建立数据库后,auth、characters、world,前两个没问题,导入SQL成功,最后一个,导入出错了,是字符集编码的问题吗?
Query:
CREATE TABLE `game_event` (
`eventEntry` tinyint UNSIGNED NOT NULL COMMENT 'Entry of the game event',
`start_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Absolute start date, the event will never start before',
`end_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Absolute end date, the event will never start afler',
`occurence` bigint UNSIGNED NOT NULL DEFAULT 5184000 COMMENT 'Delay in minutes between occurences of the event',
`length` bigint UNSIGNED NOT NULL DEFAULT 2592000 COMMENT 'Length in minutes of the event',
`holiday` mediumint UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Client side holiday id',
`description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Description of the event displayed in console',
`world_event` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '0 if normal event, 1 if world event',
`announce` tinyint UNSIGNED NULL DEFAULT 2 COMMENT '0 dont announce, 1 announce, 2 value from config',
PRIMARY KEY (`eventEntry`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Dynamic
Error occured at:2025-03-27 10:06:11
Line no.:787718
Error Code: 1067 - Invalid default value for 'start_time'
Query:
CREATE TABLE `game_event` (
`eventEntry` tinyint UNSIGNED NOT NULL COMMENT 'Entry of the game event',
`start_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Absolute start date, the event will never start before',
`end_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Absolute end date, the event will never start afler',
`occurence` bigint UNSIGNED NOT NULL DEFAULT 5184000 COMMENT 'Delay in minutes between occurences of the event',
`length` bigint UNSIGNED NOT NULL DEFAULT 2592000 COMMENT 'Length in minutes of the event',
`holiday` mediumint UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Client side holiday id',
`description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Description of the event displayed in console',
`world_event` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '0 if normal event, 1 if world event',
`announce` tinyint UNSIGNED NULL DEFAULT 2 COMMENT '0 dont announce, 1 announce, 2 value from config',
PRIMARY KEY (`eventEntry`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Dynamic
Error occured at:2025-03-27 10:16:19
Line no.:787718
Error Code: 1067 - Invalid default value for 'start_time'
|
|