我的数据库错误似乎有什么问题?我是SQL的新手。谢谢< 3
/*
Navicat MySQL数据传输
源服务器:Localhost 源服务器版本:50141 源主机:localhost:3306 来源数据库:tabulaDb
目标服务器类型:MYSQL 目标服务器版本:50141 文件编码:65001
日期:2011-02-10 23:56:02 * /
SET FOREIGN_KEY_CHECKS = 0;
- characters
DROP TABLE IF EXISTS characters
;
CREATE TABLE characters
(
id
int(11)NOT NULL AUTO_INCREMENT,
name
varchar(64)NOT NULL,
slotID
tinyint(4)NOT NULL,
userID
int(11)NOT NULL,
gender
tinyint(4)NOT NULL,
raceID
tinyint(4)NOT NULL,
classID
tinyint(4)NOT NULL,
ad1_classId
int(11)NOT NULL,
ad1_hue
int(10)unsigned NOT NULL,
ad2_classId
int(11)NOT NULL,
ad2_hue
int(10)unsigned NOT NULL,
ad3_classId
int(11)NOT NULL,
ad3_hue
int(10)unsigned NOT NULL,
ad4_classId
int(11)NOT NULL,
ad4_hue
int(10)unsigned NOT NULL,
ad5_classId
int(11)NOT NULL,
ad5_hue
int(10)unsigned NOT NULL,
ad6_classId
int(11)NOT NULL,
ad6_hue
int(10)unsigned NOT NULL,
ad7_classId
int(11)NOT NULL,
ad7_hue
int(10)unsigned NOT NULL,
ad8_classId
int(11)NOT NULL,
ad8_hue
int(10)unsigned NOT NULL,
ad9_classId
int(11)NOT NULL,
ad9_hue
int(10)unsigned NOT NULL,
ad10_classId
int(11)NOT NULL,
ad10_hue
int(10)unsigned NOT NULL,
ad11_classId
int(11)NOT NULL,
ad11_hue
int(10)unsigned NOT NULL,
ad12_classId
int(11)NOT NULL,
ad12_hue
int(10)unsigned NOT NULL,
ad13_classId
int(11)NOT NULL,
ad13_hue
int(10)unsigned NOT NULL,
ad14_classId
int(11)NOT NULL,
ad14_hue
int(10)unsigned NOT NULL,
ad15_classId
int(11)NOT NULL,
ad15_hue
int(10)unsigned NOT NULL,
ad16_classId
int(11)NOT NULL,
ad16_hue
int(10)unsigned NOT NULL,
ad17_classId
int(11)NOT NULL,
ad17_hue
int(10)unsigned NOT NULL,
ad18_classId
int(11)NOT NULL,
ad18_hue
int(10)unsigned NOT NULL,
ad19_classId
int(11)NOT NULL,
ad19_hue
int(10)unsigned NOT NULL,
ad20_classId
int(11)NOT NULL,
ad20_hue
int(10)unsigned NOT NULL,
ad21_classId
int(11)NOT NULL,
ad21_hue
int(10)unsigned NOT NULL,
currentContextId
int(11)NOT NULL COMMENT'当前地图id',
posX
浮动NOT NULL,
posY
浮动NOT NULL,
posZ
浮动NOT NULL,
rotation
浮动NOT NULL,
主要关键(id
)
)ENGINE = MyISAM AUTO_INCREMENT = 31 DEFAULT CHARSET = utf8;
- 字符记录
- missionstate
DROP TABLE IF EXISTS missionstate
;
CREATE TABLE missionstate
(
id
int(11)NOT NULL AUTO_INCREMENT,
character
int(11)NOT NULL,
mission
int(11)NOT NULL,
status
int(11)NOT NULL,
主要关键(id
)
)ENGINE = MyISAM DEFAULT CHARSET = utf8;
- 任务状态记录
- npc
DROP TABLE IF EXISTS npc
;
CREATE TABLE npc
(
id
int(11)NOT NULL AUTO_INCREMENT,
name
varchar(56)NOT NULL,
mapContextId
int(11)NOT NULL,
posX
浮动NOT NULL,
posY
浮动NOT NULL,
posZ
浮动NOT NULL,
rotation
浮动NOT NULL,
entityClassID
int(11)NOT NULL,
ad1_classId
int(11)NOT NULL,
ad1_hue
int(10)unsigned NOT NULL,
ad2_classId
int(11)NOT NULL,
ad2_hue
int(10)unsigned NOT NULL,
ad3_classId
int(11)NOT NULL,
ad3_hue
int(10)unsigned NOT NULL,
ad4_classId
int(11)NOT NULL,
ad4_hue
int(10)unsigned NOT NULL,
ad5_classId
int(11)NOT NULL,
ad5_hue
int(10)unsigned NOT NULL,
ad6_classId
int(11)NOT NULL,
ad6_hue
int(10)unsigned NOT NULL,
ad7_classId
int(11)NOT NULL,
ad7_hue
int(10)unsigned NOT NULL,
ad8_classId
int(11)NOT NULL,
ad8_hue
int(10)unsigned NOT NULL,
ad9_classId
int(11)NOT NULL,
ad9_hue
int(10)unsigned NOT NULL,
ad10_classId
int(11)NOT NULL,
ad10_hue
int(10)unsigned NOT NULL,
ad11_classId
int(11)NOT NULL,
ad11_hue
int(10)unsigned NOT NULL,
ad12_classId
int(11)NOT NULL,
ad12_hue
int(10)unsigned NOT NULL,
ad13_classId
int(11)NOT NULL,
ad13_hue
int(10)unsigned NOT NULL,
ad14_classId
int(11)NOT NULL,
ad14_hue
int(10)unsigned NOT NULL,
ad15_classId
int(11)NOT NULL,
ad15_hue
int(10)unsigned NOT NULL,
ad16_classId
int(11)NOT NULL,
ad16_hue
int(10)unsigned NOT NULL,
ad17_classId
int(11)NOT NULL,
ad17_hue
int(10)unsigned NOT NULL,
ad18_classId
int(11)NOT NULL,
ad18_hue
int(10)unsigned NOT NULL,
ad19_classId
int(11)NOT NULL,
ad19_hue
int(10)unsigned NOT NULL,
ad20_classId
int(11)NOT NULL,
ad20_hue
int(10)unsigned NOT NULL,
ad21_classId
int(11)NOT NULL,
ad21_hue
int(10)unsigned NOT NULL,
主要关键(id
)
)ENGINE = MyISAM DEFAULT CHARSET = utf8;
- npc的记录
注意:如果需要上传Sql,似乎粘贴了奇怪的代码!
答案 0 :(得分:0)
您尚未选择要添加创建这些表的数据库
首先创建数据库并在创建表之前使用它; 如果'tabuladb'是数据库,则在开始
中执行以下行CREATE DATABASE IF NOT EXISTS `tabuladb`;
USE tabuladb;