FFMS SQL文件执行错误
[mysql]
# 设置mysql客户端默认字符集
default-character-set=utf8 [mysqld]
#设置3306端口
port = 3306
# 设置mysql的安装目录
basedir=I:\数据库\数据库3\mysql-5.7.21-winx64\mysql-5.7.21-winx64
# 设置mysql数据库的数据的存放目录
datadir=I:\数据库\数据库3\mysql-5.7.21-winx64\mysql-5.7.21-winx64\data
# 允许最大连接数
max_connections=200
# 服务端使用的字符集默认为8比特编码的latin1字符集
character-set-server=utf8
# 创建新表时将使用的默认存储引擎
default-storage-engine=INNODB
看来现在新版的MySQL都不可以直接使用了,要先初始化MySQL然后再安装mysql服务,而且还要修改环境变量。
2018-03-25T01:28:55.623699Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-03-25T01:29:00.076651Z 0 [Warning] InnoDB: New log files created, LSN=45790
2018-03-25T01:29:01.567494Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2018-03-25T01:29:01.968857Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: e6131f70-2fcb-11e8-b33e-ac220b028639.
2018-03-25T01:29:02.083954Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2018-03-25T01:29:02.652184Z 1 [Note] A temporary password is generated for root@localhost: #MJVw&Yp.9ue
2018-03-25T01:31:39.603824Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-03-25T01:31:39.603961Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2018-03-25T01:31:39.605005Z 0 [Note] mysql57 (mysqld 5.7.21) starting as process 15268 ...
2018-03-25T01:31:39.625751Z 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2018-03-25T01:31:39.626728Z 0 [Note] InnoDB: Uses event mutexes
2018-03-25T01:31:39.628959Z 0 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier
2018-03-25T01:31:39.629805Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2018-03-25T01:31:39.631362Z 0 [Note] InnoDB: Number of pools: 1
2018-03-25T01:31:39.632295Z 0 [Note] InnoDB: Not using CPU crc32
很明显,mysql 5.7的初始密码是#MJVw&Yp.9ue
[SQL] /*
Navicat MySQL Data Transfer Source Server : root
Source Server Version : 50717
Source Host : localhost:3306
Source Database : ffms Target Server Type : MYSQL
Target Server Version : 50717
File Encoding : 65001 Date: 2018-03-07 02:04:49
*/ SET FOREIGN_KEY_CHECKS=0;
Affected rows: 0
Time: 0.001s [SQL] -- ----------------------------
-- Table structure for t_database
-- ----------------------------
DROP TABLE IF EXISTS `t_database`;
Affected rows: 0
Time: 0.054s [SQL]
CREATE TABLE `t_database` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userid` int(11) DEFAULT NULL,
`filename` varchar(255) DEFAULT NULL,
`time` varchar(255) DEFAULT NULL,
`location` varchar(255) DEFAULT NULL,
`dataid` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=utf8;
Affected rows: 0
Time: 1.331s [SQL] -- ----------------------------
-- Records of t_database
-- ----------------------------
INSERT INTO `t_database` VALUES ('', '', '20170705171442.sql', '2017-07-05 17:14:42', 'E:\\SQLDB122\\20170705171442.sql', '');
Affected rows: 1
Time: 0.188s [SQL] -- ----------------------------
-- Table structure for t_datadic
-- ----------------------------
DROP TABLE IF EXISTS `t_datadic`;
Affected rows: 0
Time: 0.002s [SQL]
CREATE TABLE `t_datadic` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`datadicname` varchar(255) DEFAULT NULL,
`datadicvalue` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8;
Affected rows: 0
Time: 0.431s [SQL] -- ----------------------------
-- Records of t_datadic
-- ----------------------------
INSERT INTO `t_datadic` VALUES ('', '数据库管理', '备份');
Affected rows: 1
Time: 0.033s [SQL]
INSERT INTO `t_datadic` VALUES ('', '数据库管理', '恢复');
Affected rows: 1
Time: 0.063s [SQL]
INSERT INTO `t_datadic` VALUES ('', '数据库管理', '初始化');
Affected rows: 1
Time: 0.134s [SQL]
INSERT INTO `t_datadic` VALUES ('', '数据库管理', '数据整理');
Affected rows: 1
Time: 0.029s [SQL]
INSERT INTO `t_datadic` VALUES ('', '支出类型', '税收');
Affected rows: 1
Time: 0.030s [SQL]
INSERT INTO `t_datadic` VALUES ('', '支出类型', '衣食住行');
Affected rows: 1
Time: 0.025s [SQL]
INSERT INTO `t_datadic` VALUES ('', '支出类型', '医疗');
Affected rows: 1
Time: 0.040s [SQL]
INSERT INTO `t_datadic` VALUES ('', '支出类型', '债券');
Affected rows: 1
Time: 0.032s [SQL]
INSERT INTO `t_datadic` VALUES ('', '收入类型', '工资');
Affected rows: 1
Time: 0.027s [SQL]
INSERT INTO `t_datadic` VALUES ('', '收入类型', '股票');
Affected rows: 1
Time: 0.020s [SQL]
INSERT INTO `t_datadic` VALUES ('', '收入类型', '分红');
Affected rows: 1
Time: 0.073s [SQL]
INSERT INTO `t_datadic` VALUES ('', '收入类型', '奖金');
Affected rows: 1
Time: 0.086s [SQL]
INSERT INTO `t_datadic` VALUES ('', '证券流水账类型', '买入');
Affected rows: 1
Time: 0.113s [SQL]
INSERT INTO `t_datadic` VALUES ('', '证券流水账类型', '卖出');
Affected rows: 1
Time: 0.066s [SQL]
INSERT INTO `t_datadic` VALUES ('', '证券类型', '证据证券');
Affected rows: 1
Time: 0.109s [SQL]
INSERT INTO `t_datadic` VALUES ('', '证券类型', '凭证证券');
Affected rows: 1
Time: 0.103s [SQL]
INSERT INTO `t_datadic` VALUES ('', '证券类型', '有价证券');
Affected rows: 1
Time: 0.067s [SQL]
INSERT INTO `t_datadic` VALUES ('', '支出类型', '股票');
Affected rows: 1
Time: 0.122s [SQL]
INSERT INTO `t_datadic` VALUES ('', '支出类型', '其他');
Affected rows: 1
Time: 0.058s [SQL] -- ----------------------------
-- Table structure for t_income
-- ----------------------------
DROP TABLE IF EXISTS `t_income`;
Affected rows: 0
Time: 0.002s [SQL]
CREATE TABLE `t_income` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userid` int(11) NOT NULL,
`incomer` varchar(255) DEFAULT NULL,
`source` varchar(255) DEFAULT NULL,
`money` bigint(20) DEFAULT NULL,
`dataid` int(11) DEFAULT NULL,
`content` varchar(255) DEFAULT NULL,
`incometime` varchar(255) DEFAULT NULL,
`createtime` varchar(255) NOT NULL,
`updatetime` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=40 DEFAULT CHARSET=utf8;
Affected rows: 0
Time: 0.383s [SQL] -- ----------------------------
-- Records of t_income
-- ----------------------------
INSERT INTO `t_income` VALUES ('', '', 'admin', '', '', '', '无', '2017-07-03 10:25:03', '2017-07-03 10:25:06', '2017-07-04 21:15:08');
Affected rows: 1
Time: 0.027s [SQL]
INSERT INTO `t_income` VALUES ('', '', 'admin', '', '', '', '无', '2017-07-04 10:25:03', '2017-07-03 10:29:20', '2017-07-04 21:15:20');
Affected rows: 1
Time: 0.032s [SQL]
INSERT INTO `t_income` VALUES ('', '', 'admin', '', '', '', '无', '2017-07-05 10:25:03', '2017-07-03 10:48:23', '2017-07-04 21:15:35');
Affected rows: 1
Time: 0.033s [SQL]
INSERT INTO `t_income` VALUES ('', '', 'Tom', '', '', '', '', '2017-07-03 10:25:03', '2017-07-03 15:24:33', '2017-07-04 21:16:07');
Affected rows: 1
Time: 0.031s [SQL]
INSERT INTO `t_income` VALUES ('', '', 'Tom', '', '', '', '', '2017-07-04 10:25:03', '2017-07-03 15:39:45', '2017-07-04 21:16:29');
Affected rows: 1
Time: 0.022s [SQL]
INSERT INTO `t_income` VALUES ('', '', 'Tom', '', '', '', '', '2017-07-05 10:25:03', '2017-07-04 13:54:07', '2017-07-04 21:17:39');
Affected rows: 1
Time: 0.033s [SQL]
INSERT INTO `t_income` VALUES ('', '', 'Tom', '', '', '', '', '2017-07-06 10:25:03', '2017-07-04 13:54:29', '2017-07-04 21:16:58');
Affected rows: 1
Time: 0.024s [SQL]
INSERT INTO `t_income` VALUES ('', '', '普通用户', '', '', '', '', '2017-07-03 10:25:03', '2017-07-04 22:18:59', null);
Affected rows: 1
Time: 0.031s [SQL]
INSERT INTO `t_income` VALUES ('', '', '普通用户', '', '', '', null, '2017-07-04 10:25:03', '2017-07-04 22:20:01', null);
Affected rows: 1
Time: 0.021s [SQL]
INSERT INTO `t_income` VALUES ('', '', '普通用户', '', '', '', '', '2017-07-05 10:25:03', '2017-07-04 22:20:34', '2017-07-04 22:21:00');
Affected rows: 1
Time: 0.025s [SQL]
INSERT INTO `t_income` VALUES ('', '', '普通用户', '', '', '', '', '2017-07-06 10:25:03', '2017-07-04 22:20:53', null);
Affected rows: 1
Time: 0.054s [SQL]
INSERT INTO `t_income` VALUES ('', '', 'admin', 'wu', '', '', '', '2017-07-10 19:30:53', '2017-07-10 19:30:56', null);
Affected rows: 1
Time: 0.066s [SQL]
INSERT INTO `t_income` VALUES ('', '', 'tom', '', '', '', '', '2018-02-22 16:37:51', '2018-02-08 16:37:57', '2018-02-08 16:48:49');
Affected rows: 1
Time: 0.032s [SQL] -- ----------------------------
-- Table structure for t_pay
-- ----------------------------
DROP TABLE IF EXISTS `t_pay`;
Affected rows: 0
Time: 0.002s [SQL]
CREATE TABLE `t_pay` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userid` int(11) NOT NULL,
`payer` varchar(255) DEFAULT NULL,
`tword` varchar(255) DEFAULT NULL,
`money` bigint(20) DEFAULT NULL,
`dataid` int(11) DEFAULT NULL,
`content` varchar(255) DEFAULT NULL,
`paytime` varchar(255) DEFAULT NULL,
`createtime` varchar(255) NOT NULL,
`updatetime` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
Affected rows: 0
Time: 0.530s [SQL] -- ----------------------------
-- Records of t_pay
-- ----------------------------
INSERT INTO `t_pay` VALUES ('', '', 'admin', '吃饭', '', '', '', '2017-07-04 11:10:41', '2017-07-03 11:10:45', '2017-07-08 15:25:49');
Affected rows: 1
Time: 0.045s [SQL]
INSERT INTO `t_pay` VALUES ('', '', '', '', '', '', '', '2017-07-04 11:26:57', '2017-07-03 11:27:06', '2017-07-04 08:42:41');
Affected rows: 1
Time: 0.021s [SQL]
INSERT INTO `t_pay` VALUES ('', '', '', '', '', '', '', '2017-07-06 11:28:19', '2017-07-03 11:28:27', null);
Affected rows: 1
Time: 0.022s [SQL]
INSERT INTO `t_pay` VALUES ('', '', '', '', '', '', '', '2017-07-03 15:07:46', '2017-07-03 15:07:49', null);
Affected rows: 1
Time: 0.022s [SQL]
INSERT INTO `t_pay` VALUES ('', '', 'jinbang', '投资新易贷', '', '', '反反复复', '2018-01-28 00:02:25', '2018-01-28 00:02:32', null);
Affected rows: 1
Time: 0.032s [SQL]
INSERT INTO `t_pay` VALUES ('', '', 'tom', '购买神州高铁债券', '', '', '购买国债', '2018-02-07 16:44:03', '2018-02-08 16:44:13', null);
Affected rows: 1
Time: 0.054s [SQL] -- ----------------------------
-- Table structure for t_role
-- ----------------------------
DROP TABLE IF EXISTS `t_role`;
Affected rows: 0
Time: 0.002s [SQL]
CREATE TABLE `t_role` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '角色表',
`rolename` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
Affected rows: 0
Time: 0.297s [SQL] -- ----------------------------
-- Records of t_role
-- ----------------------------
INSERT INTO `t_role` VALUES ('', '超级管理员');
Affected rows: 1
Time: 0.047s [SQL]
INSERT INTO `t_role` VALUES ('', '心理老师');
Affected rows: 1
Time: 0.033s [SQL] -- ----------------------------
-- Table structure for t_security
-- ----------------------------
DROP TABLE IF EXISTS `t_security`;
Affected rows: 0
Time: 0.002s [SQL]
CREATE TABLE `t_security` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userid` int(11) NOT NULL,
`securityname` varchar(255) DEFAULT NULL,
`securitypassward` varchar(255) DEFAULT NULL,
`company` varchar(255) DEFAULT NULL,
`dataid` int(11) DEFAULT NULL,
`starttime` varchar(255) DEFAULT NULL,
`endtime` varchar(255) DEFAULT NULL,
`createtime` varchar(255) NOT NULL,
`updatetime` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
Affected rows: 0
Time: 0.483s [SQL] -- ----------------------------
-- Records of t_security
-- ----------------------------
INSERT INTO `t_security` VALUES ('', '', '', '', '赵鹏', '', '2017-07-03 11:14:58', '2017-07-05 11:14:55', '2017-07-05 11:15:02', '2017-07-05 11:15:23');
Affected rows: 1
Time: 0.031s [SQL]
INSERT INTO `t_security` VALUES ('', '', '', '', '', '', '2017-07-05 13:52:30', '2017-07-05 13:52:27', '2017-07-05 13:52:47', null);
Affected rows: 1
Time: 0.030s [SQL] -- ----------------------------
-- Table structure for t_shares
-- ----------------------------
DROP TABLE IF EXISTS `t_shares`;
Affected rows: 0
Time: 0.002s [SQL]
CREATE TABLE `t_shares` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userid` int(11) NOT NULL,
`securityid` int(11) NOT NULL,
`sharesname` varchar(255) DEFAULT NULL,
`holder` varchar(255) DEFAULT NULL,
`createtime` varchar(255) NOT NULL,
`updatetime` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
Affected rows: 0
Time: 0.423s [SQL] -- ----------------------------
-- Records of t_shares
-- ----------------------------
INSERT INTO `t_shares` VALUES ('', '', '', '赵鹏', 'admin', '2017-07-05 11:16:43', '2017-07-05 15:57:04');
Affected rows: 1
Time: 0.025s [SQL]
INSERT INTO `t_shares` VALUES ('', '', '', '我哦我我哦', 'Tom', '2017-07-05 15:15:33', null);
Affected rows: 1
Time: 0.023s [SQL]
INSERT INTO `t_shares` VALUES ('', '', '', '腾讯股', 'jinbang', '2018-01-24 16:31:58', null);
Affected rows: 1
Time: 0.054s [SQL]
INSERT INTO `t_shares` VALUES ('', '', '', '平安银行', 'tom', '2018-02-08 16:32:19', null);
Affected rows: 1
Time: 0.031s [SQL]
INSERT INTO `t_shares` VALUES ('', '', '', '平安银行', 'tom', '2018-02-08 16:32:19', null);
Affected rows: 1
Time: 0.031s [SQL] -- ----------------------------
-- Table structure for t_trade
-- ----------------------------
DROP TABLE IF EXISTS `t_trade`;
Affected rows: 0
Time: 0.002s [SQL]
CREATE TABLE `t_trade` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`userid` int(11) DEFAULT NULL,
`sharesid` int(11) DEFAULT NULL,
`price` bigint(20) DEFAULT NULL,
`number` int(11) DEFAULT NULL,
`money` bigint(20) DEFAULT NULL,
`dataid` int(11) DEFAULT NULL,
`content` varchar(255) DEFAULT NULL,
`time` varchar(255) DEFAULT NULL,
`createtime` varchar(255) DEFAULT NULL,
`updatetime` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
Affected rows: 0
Time: 0.319s [SQL] -- ----------------------------
-- Records of t_trade
-- ----------------------------
INSERT INTO `t_trade` VALUES ('', null, null, '', '', '', '', '激活附', '2017-07-04 15:22:21', '2017-07-05 15:22:36', null);
Affected rows: 1
Time: 0.118s [SQL]
INSERT INTO `t_trade` VALUES ('', '', '', '', '', '', '', '地方', '2017-07-07 15:34:14', '2017-07-05 15:34:24', '2017-07-05 19:43:49');
Affected rows: 1
Time: 0.027s [SQL]
INSERT INTO `t_trade` VALUES ('', '', '', '', '', '', '', '今天买入腾讯b股', '2018-02-08 16:31:02', '2018-02-08 16:31:19', null);
Affected rows: 1
Time: 0.103s [SQL] -- ----------------------------
-- Table structure for t_user
-- ----------------------------
DROP TABLE IF EXISTS `t_user`;
Affected rows: 0
Time: 0.003s [SQL]
CREATE TABLE `t_user` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户表(里面的用户包括超级管理员和心理老师)',
`username` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`truename` varchar(255) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`phone` varchar(255) DEFAULT NULL,
`address` varchar(255) DEFAULT NULL,
`sex` tinyint(2) DEFAULT NULL,
`age` int(11) DEFAULT NULL,
`appellation` varchar(255) DEFAULT NULL,
`salary` int(11) DEFAULT NULL,
`card` varchar(255) DEFAULT NULL,
`isvalid` tinyint(2) NOT NULL DEFAULT '',
`createtime` datetime NOT NULL,
`updatetime` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;
Affected rows: 0
Time: 0.628s [SQL] -- ----------------------------
-- Records of t_user
-- ----------------------------
INSERT INTO `t_user` VALUES ('', 'admin', 'MTIz', '管理员', '424107420@qq.com', '', '秦皇岛市海港区燕山大学', '', '', '父亲', '', '', '', '2017-06-30 11:36:21', '2018-01-24 17:38:59');
Affected rows: 1
Time: 0.083s [SQL]
INSERT INTO `t_user` VALUES ('', 'tom', 'MTIz', 'tom', '424107420@qq.com', '', '秦皇岛市海港区燕大小区', '', '', '母亲', '', '', '', '2017-07-01 15:04:19', '2018-01-24 18:05:17');
Affected rows: 1
Time: 0.020s [SQL]
INSERT INTO `t_user` VALUES ('', '', 'MTIz', null, null, null, null, null, null, null, null, null, '', '2017-07-06 15:13:09', null);
Affected rows: 1
Time: 0.051s [SQL]
INSERT INTO `t_user` VALUES ('', '', 'MTIzNDU2Nzg=', '', '424107420@qq.com', '', '秦皇岛市海港区', '', '', '父亲', '', '', '', '2017-07-01 15:24:14', '2017-07-03 10:09:40');
Affected rows: 1
Time: 0.028s [SQL]
INSERT INTO `t_user` VALUES ('', '', 'MTIz', '', '1@qq.com', '', '', '', '', '', '', '', '', '2017-07-03 15:10:15', null);
Affected rows: 1
Time: 0.021s [SQL]
INSERT INTO `t_user` VALUES ('', '', 'MQ==', '', '1@qq.com', '', '', '', '', '', '', '', '', '2017-07-03 15:10:34', null);
Affected rows: 1
Time: 0.214s [SQL]
INSERT INTO `t_user` VALUES ('', '普通用户', 'MTIz', '王大爷', '18713598785@163.com', '', '未知', '', '', '外祖父', '', '', '', '2017-07-03 22:24:20', '2017-07-03 22:30:44');
Affected rows: 1
Time: 0.074s [SQL]
INSERT INTO `t_user` VALUES ('', '田建璐', 'MTIzNDU2', null, null, null, null, null, null, null, null, null, '', '2017-07-03 22:27:15', null);
Affected rows: 1
Time: 0.049s [SQL]
INSERT INTO `t_user` VALUES ('', 'lu', 'MTIz', null, null, null, null, null, null, null, null, null, '', '2017-07-07 10:02:39', null);
Affected rows: 1
Time: 0.021s [SQL]
INSERT INTO `t_user` VALUES ('', '我是谁', 'MTIzNDU2', null, null, null, null, null, null, null, null, null, '', '2017-07-08 15:36:04', null);
Affected rows: 1
Time: 0.052s [SQL]
INSERT INTO `t_user` VALUES ('', 'jinbang', 'MTIz', '小东', '453465325@qq.com', '', '广东茂名', '', null, '阿东', '', '', '', '2018-01-24 16:30:53', '2018-01-25 09:36:44');
Affected rows: 1
Time: 0.032s [SQL] -- ----------------------------
-- Table structure for t_user_role
-- ----------------------------
DROP TABLE IF EXISTS `t_user_role`;
Affected rows: 0
Time: 0.002s [SQL]
CREATE TABLE `t_user_role` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userid` int(11) DEFAULT NULL,
`roleid` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;
Affected rows: 0
Time: 0.582s [SQL] -- ----------------------------
-- Records of t_user_role
-- ----------------------------
INSERT INTO `t_user_role` VALUES ('', '', '');
Affected rows: 1
Time: 0.042s [SQL]
INSERT INTO `t_user_role` VALUES ('', '', '');
Affected rows: 1
Time: 0.025s [SQL]
INSERT INTO `t_user_role` VALUES ('', '', '');
Affected rows: 1
Time: 0.031s [SQL]
INSERT INTO `t_user_role` VALUES ('', '', '');
Affected rows: 1
Time: 0.032s [SQL]
INSERT INTO `t_user_role` VALUES ('', '', '');
Affected rows: 1
Time: 0.034s [SQL]
INSERT INTO `t_user_role` VALUES ('', '', '');
Affected rows: 1
Time: 0.023s [SQL]
INSERT INTO `t_user_role` VALUES ('', '', '');
Affected rows: 1
Time: 0.031s [SQL]
INSERT INTO `t_user_role` VALUES ('', '', '');
Affected rows: 1
Time: 0.024s [SQL]
INSERT INTO `t_user_role` VALUES ('', '', '');
Affected rows: 1
Time: 0.155s [SQL]
INSERT INTO `t_user_role` VALUES ('', '', '');
Affected rows: 1
Time: 0.024s [SQL]
INSERT INTO `t_user_role` VALUES ('', '', '');
Affected rows: 1
Time: 0.043s [SQL] -- ----------------------------
-- Table structure for xl_ads
-- ----------------------------
DROP TABLE IF EXISTS `xl_ads`;
Affected rows: 0
Time: 0.002s [SQL]
CREATE TABLE `xl_ads` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '顶层广告表',
`goodId` int(11) DEFAULT NULL COMMENT '对应的商品id',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=gbk;
Affected rows: 0
Time: 0.215s [SQL] -- ----------------------------
-- Records of xl_ads
-- ---------------------------- -- ----------------------------
-- Table structure for xl_answer
-- ----------------------------
DROP TABLE IF EXISTS `xl_answer`;
Affected rows: 0
Time: 0.002s [SQL]
CREATE TABLE `xl_answer` (
`id` int(11) NOT NULL,
`answer_num` varchar(10) DEFAULT NULL COMMENT '第几个答案',
`answer_content` varchar(255) DEFAULT NULL COMMENT '答案内容',
`questionId` int(11) DEFAULT NULL,
`next_quesionId` int(11) DEFAULT NULL COMMENT '下一题Id',
`answer_score` int(10) DEFAULT NULL COMMENT '答案的分值',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=gbk;
Affected rows: 0
Time: 0.334s [SQL] -- ----------------------------
-- Records of xl_answer
-- ---------------------------- -- ----------------------------
-- Table structure for xl_comment
-- ----------------------------
DROP TABLE IF EXISTS `xl_comment`;
Affected rows: 0
Time: 0.002s [SQL]
CREATE TABLE `xl_comment` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '会员评论表',
`vipId` int(11) DEFAULT NULL COMMENT 'vipid',
`goodId` int(11) DEFAULT NULL COMMENT '题目id',
`good_understandability` varchar(5) DEFAULT '' COMMENT '题目易懂性',
`good_accuracy` varchar(5) DEFAULT '' COMMENT '准确性',
`good_practical` varchar(5) DEFAULT NULL COMMENT '实用性',
`content` varchar(200) DEFAULT NULL,
`comment_time` datetime DEFAULT NULL,
`anonymous` int(2) DEFAULT '' COMMENT '(0:匿名评论;1:不匿名)默认是0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=gb2312;
Affected rows: 0
Time: 0.199s [SQL] -- ----------------------------
-- Records of xl_comment
-- ----------------------------
INSERT INTO `xl_comment` VALUES ('', '', '', '', '', null, 'asdasfsdsf', '2017-01-09 10:01:16', '');
Affected rows: 1
Time: 0.110s [SQL]
INSERT INTO `xl_comment` VALUES ('', '', '', '', '', null, 'qqqqqq', '2017-01-09 10:01:46', '');
Affected rows: 1
Time: 0.031s [SQL] -- ----------------------------
-- Table structure for xl_evaluation
-- ----------------------------
DROP TABLE IF EXISTS `xl_evaluation`;
Affected rows: 0
Time: 0.002s [SQL]
CREATE TABLE `xl_evaluation` (
`id` int(11) NOT NULL,
`goodId` int(11) DEFAULT NULL,
`goodname` varchar(30) DEFAULT NULL COMMENT '评测报告描述',
`report_describe` blob,
`min_score` int(3) DEFAULT NULL,
`max_score` int(20) DEFAULT NULL,
`level` varchar(20) DEFAULT NULL COMMENT '程度(测试分数高低程度)',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=gbk;
Affected rows: 0
Time: 2.090s [SQL] -- ----------------------------
-- Records of xl_evaluation
-- ---------------------------- -- ----------------------------
-- Table structure for xl_evaluation_detail
-- ----------------------------
DROP TABLE IF EXISTS `xl_evaluation_detail`;
Affected rows: 0
Time: 0.001s [SQL]
CREATE TABLE `xl_evaluation_detail` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '评估测试明细表',
`eid` int(11) DEFAULT NULL COMMENT '评估测试表id',
`eval_num` int(30) DEFAULT NULL COMMENT '序号',
`eval_type` char(2) DEFAULT NULL COMMENT '评估测试内容类型(1:文字;2:图片)',
`eval_content` blob,
`eval_url` varchar(30) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=gbk;
Affected rows: 0
Time: 0.556s [SQL] -- ----------------------------
-- Records of xl_evaluation_detail
-- ---------------------------- -- ----------------------------
-- Table structure for xl_evaluation_record
-- ----------------------------
DROP TABLE IF EXISTS `xl_evaluation_record`;
Affected rows: 0
Time: 0.001s [SQL]
CREATE TABLE `xl_evaluation_record` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户测试之后返回的评估记录',
`goodId` int(11) DEFAULT NULL COMMENT '商品id',
`vipId` int(11) DEFAULT NULL COMMENT 'vipid',
`eid` int(11) DEFAULT NULL COMMENT '评测报告表id',
`vipname` char(20) DEFAULT NULL COMMENT '测试者',
`start_time` datetime(6) DEFAULT NULL COMMENT '开始测试时间',
`score` tinyint(10) DEFAULT '' COMMENT '评测分数(满分100)',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=gbk;
Affected rows: 0
Time: 0.586s [SQL] -- ----------------------------
-- Records of xl_evaluation_record
-- ---------------------------- -- ----------------------------
-- Table structure for xl_good
-- ----------------------------
DROP TABLE IF EXISTS `xl_good`;
Affected rows: 0
Time: 0.002s [SQL]
CREATE TABLE `xl_good` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '商品表(心理测试题表)',
`tittle` char(25) CHARACTER SET gbk DEFAULT NULL COMMENT '标题',
`subtittle` char(25) CHARACTER SET gbk DEFAULT NULL COMMENT '副标题',
`typeId` int(20) DEFAULT NULL COMMENT '类型id',
`type_name` varchar(10) CHARACTER SET gbk DEFAULT NULL COMMENT '类型名称',
`price` double(25,1) DEFAULT NULL COMMENT '价格',
` original_price` double(25,1) DEFAULT NULL COMMENT '原价',
`picture_name` char(40) CHARACTER SET gbk DEFAULT NULL,
`answer_time` int(10) DEFAULT NULL COMMENT '回答的多少时间以内',
`description` char(60) CHARACTER SET gbk DEFAULT NULL,
`pay_success_number` int(100) DEFAULT NULL COMMENT '支付成功的数量',
`flag` varchar(2) CHARACTER SET gbk DEFAULT NULL COMMENT '题目是否有效',
`create_user` int(11) DEFAULT NULL COMMENT '创建者id',
`create_username` varchar(20) CHARACTER SET gbk DEFAULT NULL COMMENT '创建人名字',
`create_time` datetime(6) DEFAULT NULL COMMENT '创建时间',
`update_user` int(11) DEFAULT NULL COMMENT '修改人id',
`update_username` varchar(20) CHARACTER SET gbk DEFAULT NULL COMMENT '修改人姓名',
`update_time` datetime(6) DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=gb2312;
Affected rows: 0
Time: 0.336s [SQL] -- ----------------------------
-- Records of xl_good
-- ----------------------------
INSERT INTO `xl_good` VALUES ('', '中国哲学史', null, '', null, '100.0', null, '1482416332286.jpg', null, '一部描述中国上下五千年的哲学史', null, null, '', null, null, null, null, null);
Affected rows: 1
Time: 0.082s [SQL]
INSERT INTO `xl_good` VALUES ('', '国际企业财务管理', null, '', null, '55555.0', null, '1482416369937.jpg', null, '吃的', null, null, '', null, null, null, null, null);
Affected rows: 1
Time: 0.096s [SQL] -- ----------------------------
-- Table structure for xl_good_version
-- ----------------------------
DROP TABLE IF EXISTS `xl_good_version`;
Affected rows: 0
Time: 0.002s [SQL]
CREATE TABLE `xl_good_version` (
`id` int(11) NOT NULL,
`goodId` int(11) DEFAULT NULL COMMENT '产品id',
`version_name` varchar(30) DEFAULT NULL COMMENT '版本名称',
`version_code` varchar(30) DEFAULT NULL COMMENT '版本代码',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=gbk;
Affected rows: 0
Time: 0.321s [SQL] -- ----------------------------
-- Records of xl_good_version
-- ---------------------------- -- ----------------------------
-- Table structure for xl_order
-- ----------------------------
DROP TABLE IF EXISTS `xl_order`;
Affected rows: 0
Time: 0.002s [SQL]
CREATE TABLE `xl_order` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '订单表(当支付返回成功标志的时候就会产生订单)',
`order_no` varchar(20) DEFAULT NULL COMMENT '订单编号(都是数字)',
`time` datetime DEFAULT NULL COMMENT '订单生成时间(支付成功才生成订单)',
`flag` varchar(11) DEFAULT '' COMMENT '是否支付',
`money` double(20,1) DEFAULT NULL COMMENT '金额',
`vipId` int(20) DEFAULT NULL COMMENT '会员id',
`goodId` int(20) DEFAULT NULL COMMENT '题目id',
`commentId` int(20) DEFAULT NULL COMMENT '评价id',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=gb2312;
Affected rows: 0
Time: 0.260s [SQL] -- ----------------------------
-- Records of xl_order
-- ----------------------------
INSERT INTO `xl_order` VALUES ('', null, '2017-01-08 19:58:44', '', '422.0', '', null, null);
Affected rows: 1
Time: 0.044s [SQL]
INSERT INTO `xl_order` VALUES ('', null, '2017-01-08 20:41:18', '', '213.0', '', null, null);
Affected rows: 1
Time: 0.038s [SQL] -- ----------------------------
-- Table structure for xl_order_send
-- ----------------------------
DROP TABLE IF EXISTS `xl_order_send`;
Affected rows: 0
Time: 0.001s [SQL]
CREATE TABLE `xl_order_send` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`order_no` varchar(50) DEFAULT NULL COMMENT '订单编号',
`time` datetime DEFAULT NULL,
`money` double(20,1) DEFAULT NULL,
`goodId` int(11) DEFAULT NULL,
`order_num` int(20) DEFAULT NULL COMMENT '数量',
`from_user` int(11) DEFAULT NULL,
`to_user` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=gbk;
Affected rows: 0
Time: 0.218s [SQL] -- ----------------------------
-- Records of xl_order_send
-- ---------------------------- -- ----------------------------
-- Table structure for xl_question
-- ----------------------------
DROP TABLE IF EXISTS `xl_question`;
Affected rows: 0
Time: 0.002s [SQL]
CREATE TABLE `xl_question` (
`id` int(11) NOT NULL,
`goodId` int(11) DEFAULT NULL,
`question_num` int(33) DEFAULT NULL COMMENT '第几题',
`question_content` blob COMMENT '题目内容',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=gbk;
Affected rows: 0
Time: 0.400s [SQL] -- ----------------------------
-- Records of xl_question
-- ---------------------------- -- ----------------------------
-- Table structure for xl_type
-- ----------------------------
DROP TABLE IF EXISTS `xl_type`;
Affected rows: 0
Time: 0.002s [SQL]
CREATE TABLE `xl_type` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '题目类型表(类型有很多种)',
`name` char(22) DEFAULT NULL COMMENT '类型名称',
`flag` int(11) DEFAULT '' COMMENT '1:表示有效 2:表示无效',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=gb2312;
Affected rows: 0
Time: 0.515s [SQL] -- ----------------------------
-- Records of xl_type
-- ----------------------------
INSERT INTO `xl_type` VALUES ('', ' 哲学类', '');
Affected rows: 1
Time: 0.096s [SQL]
INSERT INTO `xl_type` VALUES ('', '财经管理', '');
Affected rows: 1
Time: 0.034s [SQL]
INSERT INTO `xl_type` VALUES ('', '计算机技术', '');
Affected rows: 1
Time: 0.092s [SQL]
INSERT INTO `xl_type` VALUES ('', ' 美术雕塑', '');
Affected rows: 1
Time: 0.104s [SQL]
INSERT INTO `xl_type` VALUES ('', '中国文学', '');
Affected rows: 1
Time: 0.078s [SQL]
INSERT INTO `xl_type` VALUES ('', '外国文学', '');
Affected rows: 1
Time: 0.034s [SQL]
INSERT INTO `xl_type` VALUES ('', '历史地理', '');
Affected rows: 1
Time: 0.104s [SQL]
INSERT INTO `xl_type` VALUES ('', '自然科学', '');
Affected rows: 1
Time: 0.033s [SQL]
INSERT INTO `xl_type` VALUES ('', '', '');
Affected rows: 1
Time: 0.034s [SQL]
INSERT INTO `xl_type` VALUES ('', '金融类', '');
Affected rows: 1
Time: 0.039s [SQL] -- ----------------------------
-- Table structure for xl_vip
-- ----------------------------
DROP TABLE IF EXISTS `xl_vip`;
Affected rows: 0
Time: 0.001s [SQL]
CREATE TABLE `xl_vip` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`openId` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '用户标示',
`vip_flag` varchar(2) DEFAULT NULL COMMENT '是否vip(1:就是vip)',
`subscribeTime` datetime DEFAULT NULL,
`unsubscribeTime` datetime DEFAULT NULL,
`nickName` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '昵称',
`unionid` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '只有在用户将公众号绑定到微信开放平台帐号后,才会出现该字段',
`privilege` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '用户特权信息,json 数组,如微信沃卡用户为(chinaunicom)',
`headimgurl` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '图像',
`country` varchar(10) CHARACTER SET utf8 DEFAULT NULL COMMENT '国家',
`city` varchar(10) CHARACTER SET utf8 DEFAULT NULL COMMENT '城市',
`province` varchar(10) CHARACTER SET utf8 DEFAULT NULL,
`sex` int(1) DEFAULT NULL COMMENT '用户的性别,值为1时是男性,值为2时是女性,值为0时是未知',
`updateTime` datetime NOT NULL COMMENT '更新时间',
`remark` text CHARACTER SET utf8 COMMENT '备注',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=gbk;
Affected rows: 0
Time: 0.246s [SQL] -- ----------------------------
-- Records of xl_vip
-- ---------------------------- -- ----------------------------
-- Table structure for xl_voucher
-- ----------------------------
DROP TABLE IF EXISTS `xl_voucher`;
Affected rows: 0
Time: 0.002s [SQL]
CREATE TABLE `xl_voucher` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '抵用券表',
`name` char(30) DEFAULT NULL COMMENT '抵用券名称',
`price` double(10,2) DEFAULT NULL COMMENT '抵用券价格',
`flag` char(2) DEFAULT '' COMMENT '抵用券是否有效(1:有效 2:无效)系统应该设定只有一条抵用券记录是有效的,其他都无效',
`type` char(2) DEFAULT NULL COMMENT '优惠券有两种(1:不指定某题的2:指定某题的)',
`validate` datetime(6) DEFAULT NULL COMMENT '有效期',
`vo_num` int(50) DEFAULT NULL COMMENT '数量',
`goodId` int(11) DEFAULT NULL COMMENT '如果type为2,则指定的goodId',
`stipulate_price` double(10,2) DEFAULT NULL COMMENT '到达多少钱才能使用',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=gbk;
Affected rows: 0
Time: 0.351s [SQL] -- ----------------------------
-- Records of xl_voucher
-- ---------------------------- Affected rows: 0
Time: 0.001s
FFMS SQL文件执行错误的更多相关文章
- mysql导入外部.sql文件时错误
当前环境: 操作系统:windows 7 mysql版本:5.5.36 MySQL Community Server (GPL) 当我第一次导入.sql文件时报错: mysql> source ...
- uct框架数据库sql文件导入错误之 sql_mode
uct框架在导入sql文件时可能会出现一种错误 ERROR 1101 (42000): BLOB/TEXT column 'brief' can't have a default value 这是由于 ...
- 记一次sql文件导入错误
乘着暑假的时候想学习一下SpringCloud的相关技术,但在跟着教程时,导入sql文件的时候出现了问题. 百度搜索发现在运行sql文件前需要提前创建数据库. 但创建数据库之后依然存在问题导致运行sq ...
- Code::Blocks生成的EXE文件执行错误解决:The program can't start because libgcc_s_dw2-1.dll is missing
想用C++弄个简单东东,看有没有可行性, 开发软件,微软的太大太肿,就选用了Code::Blocks. 测试HELLO时,在工程环境中没问题的,但生成的EXE执行有问题, 报什么 libgcc_s_d ...
- 使用Python批量修改数据库执行Sql文件
由于上篇文章中批量修改了文件,有的时候数据库也需要批量修改一下,之前的做法是使用宝塔的phpMyAdmin导出一个已经修改好了的sql文件,然后依次去其他数据库里导入,效率不说极低,也算低了,且都是些 ...
- navicat执行大容量的.sql文件时的设置
如果有主外键关联等,执行报错,则去掉中间的对勾保留第三个对勾试试.第三个对勾 是 手动提交(不自动提交,估计是全部导入到数据库中之后再一起提交,而不是导入一条sql语句就提交一次) 如果同时不勾选第2 ...
- C# SQL文件执行器的功能实现
好一段时间没写博客了,这次我们来一起谈谈SQL文件执行器的功能实现,在ERP软件升级时往往在客户端程序更新的同时也要对数据库进行升级,ERP程序开发人员会对数据库升级的执行代码在开发的过程中以SQL文 ...
- Oracle pl/sql导入sql文件,插入更新数据,中文乱码问题解决方案
http://szh-java.iteye.com/blog/1869360 问题描述:用a.sql文件执行insert或update,不论是通过pl/sql还是sqlplus环境下执行,@文件名执行 ...
- myeclipse连接并运行sql文件
1:在工程目录上右键>new >SQL File ,写入sql 2:在sql文件上面右键>execute sql files 3:选择数据库类型,并点击create创建一个连接: ...
随机推荐
- AjaxDemo
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8&quo ...
- Codeforces_733C
C. Epidemic in Monstropolis time limit per test 1 second memory limit per test 256 megabytes input s ...
- -moz、-ms、-webkit
1.-moz代表firefox浏览器私有属性 2.-ms代表IE浏览器私有属性 3.-webkit代表safari.chrome私有属性 需要设置这个的样式: transform,border-rad ...
- CAD动态绘制样条线(com接口)
主要用到函数说明: _DMxDrawX::SendStringToExecuteFun 把命令当着函数执行,可以传参数.详细说明如下: 参数 说明 IDispatch* pParam 命令参数,IMx ...
- POJ 1088 滑雪(简单的记忆化dp)
题目 又一道可以称之为dp的题目,虽然看了别人的代码,但是我的代码写的还是很挫,,,,,, //看了题解做的简单的记忆化dp #include<stdio.h> #include<a ...
- codevs1961 躲避大龙
1961 躲避大龙 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 钻石 Diamond 题解 题目描述 Description 你早上起来,慢悠悠地来到学校门口, ...
- [luogu4728 HNOI2009] 双递增序列 (dp)
传送门 Solution 前几天刚做了类似题,这种将一个序列拆分为两个单调序列的题一般都是设\(dp[i]\)表示i为一个单调序列的末尾时,另一个序列的末尾是多少 然后应用贪心的思想,在这道题中就是让 ...
- NandFlash、NorFlash、DataFlash
1. NandFlash和NorFlash Flash存储芯片,俗称闪存,因其具有非易失性.可擦除性.可重复编程及高密度.低功耗等特点,广泛地应用于手机.数码相机.笔记本电脑等产品. ...
- mysql 源码 王恒 [mysql数据结构+mysql 执行计划]
http://blog.chinaunix.net/uid/26896862/cid-156733-list-1.html http://www.it168.com/redian/wangheng/
- [转]十五天精通WCF——第六天 你必须要了解的3种通信模式
wcf已经说到第六天了,居然还没有说到这玩意有几种通信模式,惭愧惭愧,不过很简单啦,单向,请求-响应,双工模式,其中的第二种“请求-响应“ 模式,这个大家不用动脑子都清楚,这一篇我大概来分析下. 一: ...