 | 請問匯入sql 出現錯誤?? 怎麼解決
[SQL] Query l1j_351_demo start
[ERR] 1071 - Specified key was too long; max key length is 767 bytes
[ERR] /*
MySQL Data Transfer
Source Host: localhost
Source Database: l1j_351_demo
Target Host: localhost
Target Database: l1j_351_demo
Date: 2025/8/23 �W�� 03:12:39
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for accounts
-- ----------------------------
CREATE TABLE `accounts` (
`login` varchar(50) NOT NULL DEFAULT '',
`password` varchar(50) DEFAULT NULL,
`lastactive` datetime DEFAULT NULL,
`access_level` int(11) DEFAULT NULL,
`ip` varchar(20) NOT NULL DEFAULT '',
`host` varchar(255) DEFAULT NULL,
`banned` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否連線服務器',
`character_slot` int(2) unsigned NOT NULL DEFAULT '0',
`spw` varchar(12) NOT NULL,
`warehouse` int(10) NOT NULL DEFAULT '-256',
`server_no` int(10) NOT NULL DEFAULT '0' COMMENT '登入服務器編號',
`RoBotFriendly` int(5) NOT NULL DEFAULT '0' COMMENT 'RoBot友好度',
PRIMARY KEY (`login`),
KEY `login` (`login`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='MyISAM free: 3072 kB';
-- ----------------------------
-- Table structure for armor
-- ----------------------------
CREATE TABLE `armor` (
`item_id` int(5) NOT NULL DEFAULT '0',
`name` varchar(70) DEFAULT 'NULL',
`classname` varchar(45) NOT NULL DEFAULT '0',
`name_id` varchar(45) NOT NULL DEFAULT '',
`type` varchar(15) NOT NULL DEFAULT '',
`material` varchar(45) NOT NULL DEFAULT '',
`weight` int(7) unsigned NOT NULL DEFAULT '0',
`invgfx` int(5) unsigned NOT NULL DEFAULT '0',
`grdgfx` int(5) unsigned NOT NULL DEFAULT '0',
`itemdesc_id` int(10) NOT NULL DEFAULT '0',
`ac` int(3) NOT NULL DEFAULT '0',
`safenchant` int(2) NOT NULL DEFAULT '0',
`use_royal` int(2) unsigned NOT NULL DEFAULT '0',
`use_knight` int(2) unsigned NOT NULL DEFAULT '0',
`use_mage` int(2) unsigned NOT NULL DEFAULT '0',
`use_elf` int(2) unsigned NOT NULL DEFAULT '0',
`use_darkelf` int(2) unsigned NOT NULL DEFAULT '0',
`use_dragonknight` int(2) unsigned NOT NULL DEFAULT '0',
`use_illusionist` int(2) unsigned NOT NULL DEFAULT '0',
`add_str` int(2) NOT NULL DEFAULT '0',
`add_con` int(2) NOT NULL DEFAULT '0',
`add_dex` int(2) NOT NULL DEFAULT '0',
`add_int` int(2) NOT NULL DEFAULT '0',
`add_wis` int(2) NOT NULL DEFAULT '0',
`add_cha` int(2) NOT NULL DEFAULT '0',
`add_hp` int(10) NOT NULL DEFAULT '0',
`add_mp` int(10) NOT NULL DEFAULT '0',
`add_hpr` int(10) NOT NULL DEFAULT '0',
`add_mpr` int(10) NOT NULL DEFAULT '0',
`add_sp` int(10) NOT NULL DEFAULT '0',
`min_lvl` int(4) unsigned NOT NULL DEFAULT '0',
`max_lvl` int(4) unsigned NOT NULL DEFAULT '0',
`m_def` int(2) NOT NULL DEFAULT '0',
`haste_item` int(2) unsigned NOT NULL DEFAULT '0',
`damage_reduction` int(10) NOT NULL DEFAULT '0',
`weight_reduction` int(10) unsigned NOT NULL DEFAULT '0',
`hit_modifier` int(10) NOT NULL DEFAULT '0',
`dmg_modifier` int(10) NOT NULL DEFAULT '0',
`bow_hit_modifier` int(10) NOT NULL DEFAULT '0',
`bow_dmg_modifier` int(10) NOT NULL DEFAULT '0',
`bless` int(2) unsigned NOT NULL DEFAULT '1',
`trade` int(2) unsigned NOT NULL DEFAULT '0',
`cant_delete` int(2) unsigned NOT NULL DEFAULT '0',
`max_use_time` int(10) unsigned NOT NULL DEFAULT '0',
`defense_water` int(2) NOT NULL DEFAULT '0',
`defense_wind` int(2) NOT NULL DEFAULT '0',
`defense_fire` int(2) NOT NULL DEFAULT '0',
`defense_earth` int(2) NOT NULL DEFAULT '0',
`regist_stun` int(2) NOT NULL DEFAULT '0',
`regist_stone` int(2) NOT NULL DEFAULT '0',
`regist_sleep` int(2) NOT NULL DEFAULT '0',
`regist_freeze` int(2) NOT NULL DEFAULT '0',
`regist_sustain` int(2) NOT NULL DEFAULT '0',
`regist_blind` int(2) NOT NULL DEFAULT '0',
`greater` int(2) NOT NULL DEFAULT '3',
`DeathDrop` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '死亡是否會噴出去(0: 不會噴、1:會噴(預設))',
PRIMARY KEY (`item_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for armor_set
-- ----------------------------
CREATE TABLE `armor_set` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`note` varchar(45) DEFAULT NULL,
`sets` varchar(1000) NO
[SQL] Process terminated
| |