drop database`netctoss_demo` ;
CREATE DATABASE `netctoss_demo`
CHARACTER SET 'utf8'
COLLATE 'utf8_general_ci';

/*
Navicat MySQL Data Transfer

Source Server : localhost
Source Server Version : 50621
Source Host : localhost:3306
Source Database : netctoss_demo

Target Server Type : MYSQL
Target Server Version : 50621
File Encoding : 65001

Date: 2016-02-18 21:32:28
*/

SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for `account`
-- ----------------------------
DROP TABLE IF EXISTS `account`;
CREATE TABLE `account` (
`ACCOUNT_ID` decimal(9,0) NOT NULL,
`RECOMMENDER_ID` decimal(9,0) DEFAULT NULL,
`LOGIN_NAME` varchar(30) NOT NULL,
`LOGIN_PASSWD` varchar(30) NOT NULL,
`STATUS` char(1) DEFAULT NULL,
`CREATE_DATE` datetime DEFAULT NULL,
`PAUSE_DATE` datetime DEFAULT NULL,
`CLOSE_DATE` datetime DEFAULT NULL,
`REAL_NAME` varchar(20) NOT NULL,
`IDCARD_NO` char(18) NOT NULL,
`BIRTHDATE` datetime DEFAULT NULL,
`GENDER` char(1) DEFAULT NULL,
`OCCUPATION` varchar(50) DEFAULT NULL,
`TELEPHONE` varchar(15) NOT NULL,
`EMAIL` varchar(50) DEFAULT NULL,
`MAILADDRESS` varchar(200) DEFAULT NULL,
`ZIPCODE` char(6) DEFAULT NULL,
`QQ` varchar(15) DEFAULT NULL,
`LAST_LOGIN_TIME` datetime DEFAULT NULL,
`LAST_LOGIN_IP` varchar(15) DEFAULT NULL,
PRIMARY KEY (`ACCOUNT_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of account
-- ----------------------------
INSERT INTO `account` VALUES ('1005', null, 'taiji001', '256528', '1', '2008-03-15 00:00:00', null, null, 'zhangsanfeng', '', '1943-02-25 00:00:00', null, null, '13669351234', null, null, null, null, null, null);
INSERT INTO `account` VALUES ('1010', null, 'xl18z60', '190613', '1', '2009-01-10 00:00:00', null, null, 'guojing', '', '1969-03-19 00:00:00', null, null, '13338924567', null, null, null, null, null, null);
INSERT INTO `account` VALUES ('1011', '1010', 'dgbf70', '270429', '1', '2009-03-01 00:00:00', null, null, 'huangrong', '', '1971-08-27 00:00:00', null, null, '13637811357', null, null, null, null, null, null);
INSERT INTO `account` VALUES ('1015', '1005', 'mjjzh64', '041115', '1', '2010-03-12 00:00:00', null, null, 'zhangwuji', '', '1989-06-04 00:00:00', null, null, '13572952468', null, null, null, null, null, null);
INSERT INTO `account` VALUES ('1018', '1011', 'jmdxj00', '010322', '1', '2011-01-01 00:00:00', null, null, 'guofurong', '', '1996-01-01 00:00:00', null, null, '18617832562', null, null, null, null, null, null);
INSERT INTO `account` VALUES ('1019', '1011', 'ljxj90', '310346', '1', '2012-02-01 00:00:00', null, null, 'luwushuang', '', '1993-07-31 00:00:00', null, null, '13186454984', null, null, null, null, null, null);
INSERT INTO `account` VALUES ('1020', null, 'kxhxd20', '012115', '1', '2012-02-20 00:00:00', null, null, 'weixiaobao', '', '2000-10-01 00:00:00', null, null, '13953410078', null, null, null, null, null, null);
INSERT INTO `account` VALUES ('1021', null, 'kxhxd21', '012116', '1', '2012-02-20 00:00:00', null, null, 'zhangsan', '', '2000-10-02 00:00:00', null, null, '13953410079', null, null, null, null, null, null);
INSERT INTO `account` VALUES ('1022', null, 'kxhxd22', '012117', '1', '2012-02-20 00:00:00', null, null, 'lisi', '', '2000-10-03 00:00:00', null, null, '13953410080', null, null, null, null, null, null);
INSERT INTO `account` VALUES ('1023', null, 'kxhxd23', '012118', '1', '2012-02-20 00:00:00', null, null, 'wangwu', '', '2000-10-04 00:00:00', null, null, '13953410081', null, null, null, null, null, null);
INSERT INTO `account` VALUES ('1024', null, 'kxhxd24', '012119', '1', '2012-02-20 00:00:00', null, null, 'zhouliu', '', '2000-10-05 00:00:00', null, null, '13953410082', null, null, null, null, null, null);
INSERT INTO `account` VALUES ('1025', null, 'kxhxd25', '012120', '1', '2012-02-20 00:00:00', null, null, 'maqi', '', '2000-10-06 00:00:00', null, null, '13953410083', null, null, null, null, null, null);

-- ----------------------------
-- Table structure for `admin_info`
-- ----------------------------
DROP TABLE IF EXISTS `admin_info`;
CREATE TABLE `admin_info` (
`ADMIN_ID` decimal(8,0) NOT NULL,
`ADMIN_CODE` varchar(30) NOT NULL,
`PASSWORD` varchar(30) NOT NULL,
`NAME` varchar(30) NOT NULL,
`TELEPHONE` varchar(15) DEFAULT NULL,
`EMAIL` varchar(50) DEFAULT NULL,
`ENROLLDATE` datetime NOT NULL,
PRIMARY KEY (`ADMIN_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of admin_info
-- ----------------------------
INSERT INTO `admin_info` VALUES ('2000', 'admin', 'admin', 'ADMIN', '123456789', 'admin@tarena.com.cn', '2016-02-18 00:00:00');
INSERT INTO `admin_info` VALUES ('3000', 'zhangfei', 'admin', 'ZhangFei', '123456789', 'zhangfei@tarena.com.cn', '2016-02-18 00:00:00');
INSERT INTO `admin_info` VALUES ('4000', 'liubei', 'admin', 'LiuBei', '123456789', 'liubei@tarena.com.cn', '2016-02-18 00:00:00');
INSERT INTO `admin_info` VALUES ('5000', 'caocao', '123', 'CaoCao', '123456789', 'caocao@tarena.com.cn', '2016-02-18 00:00:00');
INSERT INTO `admin_info` VALUES ('6000', 'aaa', '123', 'AAA', '123456789', 'aaa@tarena.com.cn', '2016-02-18 00:00:00');
INSERT INTO `admin_info` VALUES ('7000', 'bbb', '123', 'BBB', '123456789', 'bbb@tarena.com.cn', '2016-02-18 00:00:00');

-- ----------------------------
-- Table structure for `admin_role`
-- ----------------------------
DROP TABLE IF EXISTS `admin_role`;
CREATE TABLE `admin_role` (
`ADMIN_ID` decimal(8,0) NOT NULL,
`ROLE_ID` decimal(4,0) NOT NULL,
PRIMARY KEY (`ADMIN_ID`,`ROLE_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of admin_role
-- ----------------------------
INSERT INTO `admin_role` VALUES ('2000', '100');
INSERT INTO `admin_role` VALUES ('3000', '200');
INSERT INTO `admin_role` VALUES ('4000', '300');
INSERT INTO `admin_role` VALUES ('5000', '100');
INSERT INTO `admin_role` VALUES ('5000', '200');
INSERT INTO `admin_role` VALUES ('5000', '300');

-- ----------------------------
-- Table structure for `cost`
-- ----------------------------
DROP TABLE IF EXISTS `cost`;
CREATE TABLE `cost` (
`COST_ID` decimal(4,0) NOT NULL,
`NAME` varchar(50) NOT NULL,
`BASE_DURATION` decimal(11,0) DEFAULT NULL,
`BASE_COST` decimal(7,2) DEFAULT NULL,
`UNIT_COST` decimal(7,4) DEFAULT NULL,
`STATUS` char(1) DEFAULT NULL,
`DESCR` varchar(100) DEFAULT NULL,
`CREATIME` datetime DEFAULT NULL,
`STARTIME` datetime DEFAULT NULL,
`COST_TYPE` char(1) DEFAULT NULL,
PRIMARY KEY (`COST_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of cost
-- ----------------------------
INSERT INTO `cost` VALUES ('1', '5.9元套餐', '20', '5.90', '0.4000', '0', '5.9元20小时/月,超出部分0.4元/时', null, null, null);
INSERT INTO `cost` VALUES ('2', '6.9元套餐', '40', '6.90', '0.3000', '0', '6.9元40小时/月,超出部分0.3元/时', null, null, null);
INSERT INTO `cost` VALUES ('3', '8.5元套餐', '100', '8.50', '0.2000', '0', '8.5元100小时/月,超出部分0.2元/时', null, null, null);
INSERT INTO `cost` VALUES ('4', '10.5元套餐', '200', '10.50', '0.1000', '0', '10.5元200小时/月,超出部分0.1元/时', null, null, null);
INSERT INTO `cost` VALUES ('5', '计时收费', null, null, '0.5000', '0', '0.5元/时,不使用不收费', null, null, null);
INSERT INTO `cost` VALUES ('6', '包月', null, '20.00', null, '0', '每月20元,不限制使用时间', null, null, null);
INSERT INTO `cost` VALUES ('7', 'mm', '10', '5.00', null, '0', '', null, null, null);
INSERT INTO `cost` VALUES ('8', 'nn', '10', '7.00', null, '0', '', null, null, null);
INSERT INTO `cost` VALUES ('9', 'qq', '10', '4.00', null, '0', '', null, null, null);

-- ----------------------------
-- Table structure for `module_info`
-- ----------------------------
DROP TABLE IF EXISTS `module_info`;
CREATE TABLE `module_info` (
`MODULE_ID` decimal(4,0) NOT NULL,
`NAME` varchar(50) NOT NULL,
PRIMARY KEY (`MODULE_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of module_info
-- ----------------------------
INSERT INTO `module_info` VALUES ('1', '角色管理');
INSERT INTO `module_info` VALUES ('2', '管理员');
INSERT INTO `module_info` VALUES ('3', '资费管理');
INSERT INTO `module_info` VALUES ('4', '账务账号');
INSERT INTO `module_info` VALUES ('5', '业务账号');
INSERT INTO `module_info` VALUES ('6', '账单管理');
INSERT INTO `module_info` VALUES ('7', '报表');

-- ----------------------------
-- Table structure for `role_info`
-- ----------------------------
DROP TABLE IF EXISTS `role_info`;
CREATE TABLE `role_info` (
`ROLE_ID` decimal(4,0) NOT NULL,
`NAME` varchar(50) NOT NULL,
PRIMARY KEY (`ROLE_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of role_info
-- ----------------------------
INSERT INTO `role_info` VALUES ('100', '管理员');
INSERT INTO `role_info` VALUES ('200', '营业员');
INSERT INTO `role_info` VALUES ('300', '经理');
INSERT INTO `role_info` VALUES ('400', 'aaa');
INSERT INTO `role_info` VALUES ('500', 'bbb');
INSERT INTO `role_info` VALUES ('600', 'ccc');

-- ----------------------------
-- Table structure for `role_module`
-- ----------------------------
DROP TABLE IF EXISTS `role_module`;
CREATE TABLE `role_module` (
`ROLE_ID` decimal(4,0) NOT NULL,
`MODULE_ID` decimal(4,0) NOT NULL,
PRIMARY KEY (`ROLE_ID`,`MODULE_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of role_module
-- ----------------------------
INSERT INTO `role_module` VALUES ('100', '1');
INSERT INTO `role_module` VALUES ('100', '2');
INSERT INTO `role_module` VALUES ('100', '4');
INSERT INTO `role_module` VALUES ('100', '5');
INSERT INTO `role_module` VALUES ('100', '6');
INSERT INTO `role_module` VALUES ('100', '7');
INSERT INTO `role_module` VALUES ('200', '3');
INSERT INTO `role_module` VALUES ('200', '4');
INSERT INTO `role_module` VALUES ('200', '5');
INSERT INTO `role_module` VALUES ('200', '6');
INSERT INTO `role_module` VALUES ('300', '7');

-- ----------------------------
-- Table structure for `service`
-- ----------------------------
DROP TABLE IF EXISTS `service`;
CREATE TABLE `service` (
`SERVICE_ID` decimal(10,0) NOT NULL,
`ACCOUNT_ID` decimal(9,0) NOT NULL,
`UNIX_HOST` varchar(15) NOT NULL,
`OS_USERNAME` varchar(8) NOT NULL,
`LOGIN_PASSWD` varchar(30) NOT NULL,
`STATUS` char(1) DEFAULT NULL,
`CREATE_DATE` datetime DEFAULT NULL,
`PAUSE_DATE` datetime DEFAULT NULL,
`CLOSE_DATE` datetime DEFAULT NULL,
`COST_ID` decimal(4,0) NOT NULL,
PRIMARY KEY (`SERVICE_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of service
-- ----------------------------
INSERT INTO `service` VALUES ('2001', '1010', '192.168.0.26', 'guojing', 'guo1234', '0', '2016-02-18 00:00:00', null, null, '1');
INSERT INTO `service` VALUES ('2002', '1011', '192.168.0.26', 'huangr', 'huang234', '0', '2016-02-18 00:00:00', null, null, '1');
INSERT INTO `service` VALUES ('2003', '1011', '192.168.0.20', 'huangr', 'huang234', '0', '2016-02-18 00:00:00', null, null, '3');
INSERT INTO `service` VALUES ('2004', '1011', '192.168.0.23', 'huangr', 'huang234', '0', '2016-02-18 00:00:00', null, null, '6');
INSERT INTO `service` VALUES ('2005', '1019', '192.168.0.26', 'luwsh', 'luwu2345', '0', '2016-02-18 00:00:00', null, null, '4');
INSERT INTO `service` VALUES ('2006', '1019', '192.168.0.20', 'luwsh', 'luwu2345', '0', '2016-02-18 00:00:00', null, null, '5');
INSERT INTO `service` VALUES ('2007', '1020', '192.168.0.20', 'weixb', 'wei12345', '0', '2016-02-18 00:00:00', null, null, '6');
INSERT INTO `service` VALUES ('2008', '1010', '192.168.0.20', 'guojing', 'guo09876', '0', '2016-02-18 00:00:00', null, null, '6');

-- ----------------------------
-- Table structure for `service_update_bak`
-- ----------------------------
DROP TABLE IF EXISTS `service_update_bak`;
CREATE TABLE `service_update_bak` (
`ID` decimal(10,0) NOT NULL,
`SERVICE_ID` decimal(9,0) NOT NULL,
`COST_ID` decimal(4,0) NOT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of service_update_bak
-- ----------------------------

Mysql中文乱码问题完美解决方案的更多相关文章

  1. mysql中文乱码的完美解决方案

    问题描述: mysql插入中文时显示为乱码或"?"号 解决方案: 修改mysql的my.ini配置 [mysql] default_character_set=utf8 [mysq ...

  2. Mysql中文乱码问题完美解决方案[转]

    原文地址 MySQL会出现中文乱码的原因不外乎下列几点:1.server本身设定问题,例如还停留在latin12.table的语系设定问题(包含character与collation)3.客户端程式( ...

  3. Mysql 中文乱码问题完美解决方案

    MySQL会出现中文乱码的原因不外乎下列几点: 1.server本身设定问题,例如还停留在latin1 2.table的语系设定问题(包含character与collation) 3.客户端程式(例如 ...

  4. SecureCRT 下MySQL中文乱码问题终极解决方案-乾颐堂

    一.查看Linux主机系统字符集 命令: echo $LANG [root@pythontab.com ~]# echo $LANG [root@pythontab.com ~]# en_US.UTF ...

  5. 关于Mysql中文乱码问题该如何解决(乱码问题完美解决方案)(转)

    这篇文章给大家介绍关于Mysql中文乱码问题该如何解决(乱码问题完美解决方案)的相关资料,还给大家收集些关于MySQL会出现中文乱码原因常见的几点,小伙伴快来看看吧   最近两天做项目总是被乱码问题困 ...

  6. MySQL编程(0) - Mysql中文乱码问题解决方案

    MySQL 5.6 for Windows 解压缩版配置安装: http://jingyan.baidu.com/article/f3ad7d0ffc061a09c3345bf0.html MySQL ...

  7. JSP 中文乱码显示处理解决方案

    来源: <http://blog.csdn.net/joyous/article/details/1504274> JSP 中文乱码显示处理解决方案 分类: 所有 Web前端 J2EE20 ...

  8. 通过msyql proxy链接mysql中文乱码及session问题

    1.session问题 问题前提:一台机数据库为两个实例,通过不同的socket监听不同端口对外提供服务.不同的站点都访问同一个VIP不同的端口进行访问数据库. 故障现象:一旦有一个站点先用了这个vi ...

  9. Mysql中文乱码以及导出为sql语句和Excel问题解决

    Mysql中文乱码以及导出为sql语句和Excel问题解决 这几天基于Heritrix写了一个爬虫,用到mysql,在导入导出数据时,遇到一些乱码问题,好不容易解决了,记录一下,以备查看.一.导出数据 ...

随机推荐

  1. (备忘)android模拟器摄像头模拟

    Camera分Front Camera和Back Camera 通常我们模拟后摄像头就可以了 三个选项 none:表示没有摄像头,打开摄像应用会崩溃 emulated:系统模拟一个动态的画面--在黑白 ...

  2. BestCoder Round #61 1001 Numbers

    Problem Description There are n numbers A1,A2....An{A}_{1},{A}_{2}....{A}_{n}A​1​​,A​2​​....A​n​​,yo ...

  3. 前端之css、JavaScript和DOM

    css position 一般组合 relative+absolute,以relative为父元素,absolute依照relative进行定位. opcity: 0.5 透明度 z-index: 层 ...

  4. BurpSuite使用设置

    一.设置字体 二.设置字符集 三.设置浏览器代理 四.BurpSuite访问步骤 五.在Target中可以查看截获的数据包

  5. 如何发布及部署asp.net网站

    用vs开发完asp.net网站之后如何发布到服务器上去变成正式网站? 1.发布首先需要发布网站,这个步骤就是生成正式网站的目录(把源代码编译成.cs代码文件编译成.dll文件)详细步骤:http:// ...

  6. 基础知识《八》---Java反射机制

    1.反射可以做什么 2.反射相关的API 3.获取Class运行时类的实例的三种方法: 1)通过运行时类本身的.class属性***** Class clazz= Person.class; 2)通过 ...

  7. MDI窗体

    1.设置父窗体 使用MDI窗体,需要先将父窗体的IsMdiContainer属性设置为True 2.生成用于MDI子窗体的窗体 1 frmTemp f1 = new frmTemp(); f1.Tex ...

  8. python: extend (扩展) 与 append (追加) 的差别

    >>> li = ['a', 'b', 'c'] >>> li.extend(['d', 'e', 'f']) >>> li ['a', 'b', ...

  9. Divide and conquer:Garland(POJ 1759)

     挂彩灯 题目大意:就是要布场的时候需要挂彩灯,彩灯挂的高度满足: H1 = A Hi = (Hi-1 + Hi+1)/2 - 1, for all 1 < i < N HN = B Hi ...

  10. codeforces 567D.One-Dimensional Battle Ships 解题报告

    题目链接:http://codeforces.com/problemset/problem/567/D 题目意思:给出 1 * n 的 field,编号从左至右依次为 1,2,...,n.问射 m 枪 ...