简单的说,MyCAT就是:
·一个彻底开源的,面向企业应用开发的“大数据库集群”
·支持事务、ACID、可以替代Mysql的加强版数据库
MyCAT的目标是:低成本的将现有的单机数据库和应用平滑迁移到“云”端,解决数据存储和业务规模迅速增长情况下的数据瓶颈问题。
·支持Mysql集群,可以作为Proxy使用
·支持JDBC连接ORACLE、DB2、SQL Server,将其模拟为MySQL Server使用
·自动故障切换,高可用性
·支持读写分离,支持Mysql双主多从,以及一主多从的模式
·多平台支持,部署和实施简单
如图所示:MyCAT使用Mysql的通讯协议模拟成了一个Mysql服务器,并建立了完整的Schema(数据库)、Table (数据表)、User(用户)的逻辑模型,并将这套逻辑模型映射到后端的存储节点DataNode(MySQL Instance)上的真实物理库中,这样一来,所有能使用Mysql的客户端以及编程语言都能将MyCAT当成是Mysql Server来使用,不必开发新的客户端协议。
水平分片:一个表格的数据分割到多个节点上,按照行分隔。
垂直分片:一个数据库中多个表格A,B,C,A存储到节点1上,B存储到节点2上,C存储到节点3上。
1、Schema:逻辑库,与MySQL中的Database(数据库)对应,一个逻辑库中定义了所包括的Table。
2、Table:表,即物理数据库中存储的某一张表,与传统数据库不同,这里的表格需要声明其所存储的逻辑数据节点DataNode。在此可以指定表的分片规则。
3、DataNode:MyCAT的逻辑数据节点,是存放table的具体物理节点,也称之为分片节点,通过DataSource来关联到后端某个具体数据库上
4、DataSource:定义某个物理库的访问地址,用于捆绑到Datanode上
官方网站:
http://www.mycat.org.cn/
github地址
https://github.com/MyCATApache
第一步:把MyCat的压缩包上传到linux服务器
第二步:解压缩,得到mycat目录
第三步:进入mycat/bin,启动MyCat
启动命令:./mycat start
停止命令:./mycat stop
重启命令:./mycat restart
注意:可以使用mysql的客户端直接连接mycat服务。默认服务端口为8066
把商品表分片存储到三个数据节点上。
mysql节点1环境
操作系统版本 : centos7.4
数据库版本 : mysql-5.6
mycat版本 :1.4 release
数据库名 : db1、db3
ip:192.168.25.134
mysql节点2环境
操作系统版本 : centos7.4
数据库版本 : mysql-5.6
mycat版本 :1.4 release
数据库名 : db2
ip:192.168.25.166
MyCat安装到节点1上(需要安装jdk)
select user()
select user()
123456
e3mall-32
DROP TABLE IF EXISTS `tb_item`;
CREATE TABLE `tb_item` (
`id` bigint(20) NOT NULL COMMENT '商品id,同时也是商品编号',
`title` varchar(100) NOT NULL COMMENT '商品标题',
`sell_point` varchar(500) DEFAULT NULL COMMENT '商品卖点',
`price` bigint(20) NOT NULL COMMENT '商品价格,单位为:分',
`num` int(10) NOT NULL COMMENT '库存数量',
`barcode` varchar(30) DEFAULT NULL COMMENT '商品条形码',
`image` varchar(500) DEFAULT NULL COMMENT '商品图片',
`cid` bigint(10) NOT NULL COMMENT '所属类目,叶子类目',
`status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '商品状态,1-正常,2-下架,3-删除',
`created` datetime NOT NULL COMMENT '创建时间',
`updated` datetime NOT NULL COMMENT '更新时间',
PRIMARY KEY (`id`),
KEY `cid` (`cid`),
KEY `status` (`status`),
KEY `updated` (`updated`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品表';
/*
Navicat MySQL Data Transfer
Source Server : localhost_3306
Source Server Version : 50521
Source Host : localhost:3306
Source Database : taotao
Target Server Type : MYSQL
Target Server Version : 50521
File Encoding : 65001
Date: 2015-12-20 15:56:27
*/
-- ----------------------------
-- Records of tb_item
-- ----------------------------
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('536563', 'new2 - 阿尔卡特 (OT-927) 炭黑 联通3G手机 双卡双待', '清仓!仅北京,武汉仓有货!', '29900000', '99999', '', 'http://image.taotao.com/jd/4ef8861cf6854de9889f3db9b24dc371.jpg', '560', '1', '2015-03-08 21:33:18', '2015-04-11 20:38:38');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('562379', 'new8- 三星 W999 黑色 电信3G手机 双卡双待双通', '下单送12000毫安移动电源!双3.5英寸魔焕炫屏,以非凡视野纵观天下时局,尊崇翻盖设计,张弛中,尽显从容气度!', '1100', '99999', '', 'http://image.taotao.com/jd/d2ac340e728d4c6181e763e772a9944a.jpg', '560', '1', '2015-03-08 21:27:54', '2015-04-12 17:10:43');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('605616', '阿尔卡特 (OT-979) 冰川白 联通3G手机', '清仓!仅上海仓有货!', '30900', '99999', null, 'http://image.taotao.com/jd/a69d0d09a1a04164969c2d0369659b1a.jpg', '560', '1', '2015-03-08 21:33:18', '2015-03-08 21:33:18');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('635906', '阿尔卡特 (OT-927) 单电版 炭黑 联通3G手机 双卡双待', '清仓!仅北京,武汉仓有货!', '24900', '99999', null, 'http://image.taotao.com/jd/9c1fcdf2bf20450788195c707da00a87.jpg', '560', '1', '2015-03-08 21:33:18', '2015-03-08 21:33:18');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('679532', '阿尔卡特 (OT-986+) 玫红 AK47 加强版 联通3G手机', '仅上海,广州,沈阳仓有货!预购从速!', '49900', '99999', null, 'http://image.taotao.com/jd/65e2007d41dc4e3cb308833a1a910f8d.jpg', '560', '1', '2015-03-08 21:32:31', '2015-03-08 21:32:31');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('679533', '阿尔卡特 (OT-986+) 曜石黑 AK47 加强版 联通3G手机', '少量库存,抢完即止!“领券更优惠!”', '49900', '99999', null, 'http://image.taotao.com/jd/b3251c85da8e4302b7389f3371dd0a68.jpg', '560', '1', '2015-03-08 21:31:36', '2015-03-08 21:31:36');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('691300', '三星 B9120 钛灰色 联通3G手机 双卡双待双通', '下单即送10400毫安移动电源!再赠手机魔法盒!', '439900', '99999', null, 'http://image.taotao.com/jd/c1775819c7e44b1c903f27514e70b998.jpg', '560', '1', '2015-03-08 21:29:27', '2015-03-08 21:29:27');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('738388', '三星 Note II (N7100) 云石白 联通3G手机', '经典回顾!超值价格值得拥有。', '169900', '99999', null, 'http://image.taotao.com/jd/089b79cbe19f454dab24cce65f2e9602.jpg', '560', '1', '2015-03-08 21:28:16', '2015-03-08 21:28:16');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('741524', '三星 Note II (N7100) 钛金灰 联通3G手机', '下单赠12000毫安移动电源', '169900', '99999', null, 'http://image.taotao.com/jd/29e1b92dc7e146489ce46a2262479a0f.jpg', '560', '1', '2015-03-08 21:28:30', '2015-03-08 21:28:30');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('816448', '三星 Note II (N7100) 钻石粉 联通3G手机', '经典回顾!超值特惠!', '169900', '99999', null, 'http://image.taotao.com/jd/5a45e88aeca046ec88d7b7ffbc47092a.jpg', '560', '1', '2015-03-08 21:28:44', '2015-03-08 21:28:44');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('816753', '夏普(SHARP)LCD-46DS40A 46英寸 日本原装液晶面板 智能全高清液晶电视', '要好屏,选夏普!日本原装面板,智能电视,高画质高音质!还有升级版安卓智能新机46DS52供您选择!', '379900', '99999', null, 'http://image.taotao.com/jd/2e45ff47f2e7424cb6d95fb9f05151bd.jpg', '76', '1', '2015-03-08 21:27:39', '2015-03-08 21:27:39');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('830972', '飞利浦 老人手机 (X2560) 深情蓝 移动联通2G手机 双卡双待', '赠:九安血压计+8G内存!超长待机,关爱无限,更好用!飞利浦简单健康老人手机!外观圆滑,手感极佳!', '48900', '99999', null, 'http://image.taotao.com/jd/4f1d41baa6c84219a622f20a4f1c32bb.jpg', '560', '1', '2015-03-08 21:28:30', '2015-03-08 21:28:30');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('832739', '中兴 U288 珠光白 移动3G手机', '好评过万!超大彩屏,超大字体,超大按键,超大音量,一键SOS紧急呼叫 !', '19900', '99999', null, 'http://image.taotao.com/jd/4021f8a1ffcc4ae2a313c2012d9f35c8.jpg', '560', '1', '2015-03-08 21:28:44', '2015-03-08 21:28:44');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('844022', '三星 SCH-W899 亮金色 电信3G手机 双卡双待双通', '双3.3英寸魔焕炫屏,CG双网双待,臻尊体验,心系天下!', '299900', '99999', null, 'http://image.taotao.com/jd/e638243d8341474293be09ad157546b8.jpg', '560', '1', '2015-03-08 21:28:01', '2015-03-08 21:28:01');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('847276', '飞利浦 老人手机 (X2560) 喜庆红 移动联通2G手机 双卡双待', '超长待机,关爱无限,更好用!飞利浦简单健康老人手机!外观圆滑,手感极佳!', '48900', '99999', null, 'http://image.taotao.com/jd/657c61e5018043f89d9fe0f9a1519884.jpg', '560', '1', '2015-03-08 21:28:30', '2015-03-08 21:28:30');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('847278', '飞利浦 老人手机 (X2560) 硬朗黑 移动联通2G手机 双卡双待', '超长待机,关爱无限,更好用!飞利浦简单健康老人手机!外观圆滑,手感极佳!', '46900', '99999', null, 'http://image.taotao.com/jd/306b2287ce1c4b3bb541f37984d67929.jpg', '560', '1', '2015-03-08 21:28:09', '2015-03-08 21:28:09');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('855739', '三星 Galaxy S4 (I9500)16G版 皓月白 联通3G手机', '三星经典旗舰机!5英寸1080P高清屏+1300万像素主摄像头!', '188800', '99999', null, 'http://image.taotao.com/jd/c687f304b5164b1b84736b9a4d34a37c.jpg', '560', '1', '2015-03-08 21:27:42', '2015-03-08 21:27:42');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('856645', '三星 Galaxy S4 (I9500) 16G版 星空黑 联通3G手机', '年货特价来袭!三星经典旗舰机!', '188800', '99999', null, 'http://image.taotao.com/jd/2cd67c806e054435bce4c931a731493a.jpg', '560', '1', '2015-03-08 21:27:54', '2015-03-08 21:27:54');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('858025', '三星 I8552 白色 联通3G手机 双卡双待', '经济实惠机器~~开春入手好时机~', '79900', '99999', null, 'http://image.taotao.com/jd/d958a21cec814fdeab934d43b4fb2e06.jpg', '560', '1', '2015-03-08 21:27:49', '2015-03-08 21:27:49');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('860275', '长虹(CHANGHONG) 3D51C1080i 51英寸 快门式3D智能Android 电视(黑色)', '智能安卓系统 可自由安装应用程序 “点击进入长虹新年专场”', '269900', '99999', null, 'http://image.taotao.com/jd/08dabc37342943ffb717632f9ee40685.jpg', '76', '1', '2015-03-08 21:27:35', '2015-03-08 21:27:35');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('868462', 'LG 47LA6800-CA 47英寸 全高清智能3D液晶电视 (红色)', '【疯狂清仓】无边框硬屏,不闪式3D技术,动感应遥控器,“船”型底座设计!仅北京、沈阳、深圳有货!', '999900', '99999', null, 'http://image.taotao.com/jd/914ba6a287044e0d897a6cded583c8ac.jpg', '76', '1', '2015-03-08 21:29:12', '2015-03-08 21:29:12');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('875722', '诺基亚(NOKIA) 1050 (RM-908) 黑色 移动联通2G手机', '经典神器,简单实用,超长待机,更多色彩!', '14900', '99999', null, 'http://image.taotao.com/jd/902958f543874a4caed08045c96dcf30.jpg', '560', '1', '2015-03-08 21:27:49', '2015-03-08 21:27:49');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('875724', '诺基亚(NOKIA) 1050 (RM-908) 蓝色 移动联通2G手机', '经典神器,简单实用,超长待机,更多色彩!', '14900', '99999', null, 'http://image.taotao.com/jd/625735ae97524f77bc9e0ab39e0d2a2b.jpg', '560', '1', '2015-03-08 21:27:54', '2015-03-08 21:27:54');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('883893', '联想 MA388 老人手机 星夜黑 移动联通2G手机 双卡双待', '孝敬爸妈首选,好评超22000条,大按键 大喇叭 大翻盖,配置1900mAh大容量电池,带来超长续航体验!', '28700', '99999', null, 'http://image.taotao.com/jd/ee56ceae4466431cb5c1bed035203a4b.jpg', '560', '1', '2015-03-08 21:27:49', '2015-03-08 21:27:49');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('907012', '海信(Hisense)LED42EC260JD 42英寸 窄边网络 LED电视(黑色)', '“春宵一刻值千金”', '229900', '99999', null, 'http://image.taotao.com/jd/38406d85be2e4e3eb81b934df63e5ced.jpg', '76', '1', '2015-03-08 21:27:35', '2015-03-08 21:27:35');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('909245', '酷派 8076D 咖啡棕 移动3G手机 双卡双待', '4.0英寸屏幕,双核处理器!移动用户无需换号,直接尊享3G网络!', '19900', '99999', null, 'http://image.taotao.com/jd/a1df8eaa64774b498a2ba9457fd60190.jpg', '560', '1', '2015-03-08 21:29:19', '2015-03-08 21:29:19');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('912107', '创维(Skyworth)LED 42E5DHR 42英寸 海量影视资源智能网络平板液晶电视二代升级版(黑色)', '二代新品!!智能双系统,正版影视随心看,丰富安卓应用,多屏互动!“猛戳这里,更多惊喜”', '249900', '99999', null, 'http://image.taotao.com/jd/ff78fea47d20439a8e2bb837caed7384.jpg', '76', '1', '2015-03-08 21:27:39', '2015-03-08 21:27:39');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('915676', '联想 P780 极速版 深邃黑 联通3G手机 双卡双待', '待机王,5吋HD高清炫屏,9.9mm锐薄机身,背壳全金属材质,独创智恒省电技术!', '69900', '99999', null, 'http://image.taotao.com/jd/8886d8cac9204d34beee17de09a94124.jpg', '560', '1', '2015-03-08 21:28:09', '2015-03-08 21:28:09');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('917460', '华为 P6 (P6-C00) 黑 电信3G手机 双卡双待双通', '经典旗舰!雅然天成纤薄之美,强悍四核,前置500万美颜自拍,,2GB RAM+16GB ROM大内存!【买卡上京东,省钱又轻松】点击有惊喜!', '128800', '99999', null, 'http://image.taotao.com/jd/e6fa8fe64cad49ff93fe0af67ac52055.jpg', '560', '1', '2015-03-08 21:27:42', '2015-03-08 21:27:42');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('917461', '华为 P6 (P6-C00) 白 电信3G手机 双卡双待双通', '经典旗舰,万人好评!强悍四核,前置500万美颜自拍,,2GB RAM+16GB ROM大内存!', '129900', '99999', null, 'http://image.taotao.com/jd/a898d6b93e124a6bb26d58254a112250.jpg', '560', '1', '2015-03-08 21:27:37', '2015-03-08 21:27:37');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('917770', '华为 P6-C00 电信3G手机(粉色) CDMA2000/GSM 双模双待双通', '情人节神器!粉色机身,女神必备!数量有限前置500万美颜自拍,后置800万,非常适合喜欢拍照的你!', '134900', '99999', null, 'http://image.taotao.com/jd/ced8afd1b8d64134aa211aceb85fb3c5.jpg', '560', '1', '2015-03-08 21:27:54', '2015-03-08 21:27:54');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('919669', '华为 Ascend P6 (P6-T00) 黑色 移动3G手机', '限时特价!好评过万条优秀产品!浑然天成纤薄机身,前置500w摄像头,2GB RAM,1.5GHz四核cpu! 更多推荐请点击!', '128900', '99999', null, 'http://image.taotao.com/jd/a4585c63d2de4c22b7fab8e57bfb4b63.jpg', '560', '1', '2015-03-08 21:27:37', '2015-03-08 21:27:37');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('925237', '三星 Galaxy S4 (I9502) 16G版 蓝色 联通3G手机 双卡双待双通', '三星经典旗舰机!5英寸1080P高清屏+双四核分时CUP+2GB RAM+1300万像素主摄像头', '189900', '99999', null, 'http://image.taotao.com/jd/c2b4eb2e623a415091a0e1fafac80aad.jpg', '560', '1', '2015-03-08 21:28:01', '2015-03-08 21:28:01');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('927779', '海尔统帅(Leader)LE39MUF5 39英寸 MHL传屏 LED平板电视(黑色)', '好评率96%!MHL传屏,内附价值99元的MHL传屏线哦~独家免费带货安装调试一步到位!', '199900', '99999', null, 'http://image.taotao.com/jd/dc3bb2ceefed4eb48bef05226005e7a6.jpg', '76', '1', '2015-03-08 21:29:12', '2015-03-08 21:29:12');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('929734', '三星 I8558 白色 移动3G手机 双卡双待', '4.7英寸屏,四核,500万像素!移动用户无需换号,直接享3G网络!', '75900', '99999', null, 'http://image.taotao.com/jd/13bb5a74d03642a3a043a8ec33baa6e6.jpg', '560', '1', '2015-03-08 21:28:16', '2015-03-08 21:28:16');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('931849', '飞利浦 (X1560) 黑色+香槟色 移动联通2G手机 双卡双待', '畅销!智能机的好伴侣,可以充电的手机!最长可达100天!键盘金属工艺,移动电源功能!', '36900', '99999', null, 'http://image.taotao.com/jd/691c77d0ed13417da7cf59b8bd1e3bab.jpg', '560', '1', '2015-03-08 21:28:16', '2015-03-08 21:28:16');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('936920', '夏普(SHARP)LCD-52DS70A 52英寸 日本原装液晶面板 3D Android操作系统智能液晶电视', '安卓体感3D超强机!日本原装液晶屏 安卓智能 体感遥控器 智能语音 无线上网!还有外观炫酷的50英寸50DS60供您选择!', '699900', '99999', null, 'http://image.taotao.com/jd/c3ada90aec234ac9bc2589fbd40c9918.jpg', '76', '1', '2015-03-08 21:28:00', '2015-03-08 21:28:00');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('941189', 'TCL L32F3301B 32英寸 窄边蓝光USB播放LED电视(黑色)', '【0元献礼】好评过万,销量传奇!经典蓝光电视,独有自然光技术专利,过大年带最好的回家!【0元白条试用,1001个拜年计划】', '139800', '99999', null, 'http://image.taotao.com/jd/cda1219a38504f798b0413816d785d08.jpg', '76', '1', '2015-03-08 21:27:35', '2015-03-08 21:27:35');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('951305', '三星 Galaxy S4 (I9502) 16G版 粉色 联通3G手机 双卡双待双通', '三星经典旗舰机!5英寸1080P高清屏+双四核分时CUP+2GB RAM+1300万像素主摄像头', '179900', '99999', null, 'http://image.taotao.com/jd/11146d519c4c4f1bbc3f2e8fd0d5beaf.jpg', '560', '1', '2015-03-08 21:28:01', '2015-03-08 21:28:01');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('960138', '三星 I8558 灰色 移动3G手机 双卡双待', '4.7英寸屏,四核,500万像素!移动用户无需换号,直接享3G网络!', '75900', '99999', null, 'http://image.taotao.com/jd/8f3550c928d64484accf4c74d606a93e.jpg', '560', '1', '2015-03-08 21:28:55', '2015-03-08 21:28:55');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('967021', 'TCL 老人手机 (i310) 暗夜黑 移动联通2G手机', '爸妈满意才最好,大字体,大按键,大声音,简单易用的老人手机!', '19900', '99999', null, 'http://image.taotao.com/jd/67eb54bcdbc949ecaa32cbd725a223b6.jpg', '560', '1', '2015-03-08 21:27:49', '2015-03-08 21:27:49');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('968097', '长虹(CHANGHONG) LED32C2JDi 32英寸 安卓智能LED液晶电视(黑色)', '智能安卓系统!内置WiFi!遥控器一键直达京东!“点击进入长虹新年专场”', '149900', '99999', null, 'http://image.taotao.com/jd/7d2563f664a54aaf8e7fe0b7af52a118.jpg', '76', '1', '2015-03-08 21:27:35', '2015-03-08 21:27:35');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('968184', '索尼(SONY) Xperia Z1 (L39h) 黑色 联通3G手机', '特价抢购!骁龙800四核CPU,2070万像素G镜头,特丽魅彩显像技术,IP55/IP58精密防尘、防水!', '193800', '99999', null, 'http://image.taotao.com/jd/368d56e845074ed1803cfcfa8751cc4f.jpg', '560', '1', '2015-03-08 21:27:49', '2015-03-08 21:27:49');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('968185', '索尼(SONY) Xperia Z1 (L39h) 白色 联通3G手机', '特价抢购!骁龙800四核CPU,2070万像素G镜头,特丽魅彩显像技术,IP55/IP58精密防尘、防水!', '193800', '99999', null, 'http://image.taotao.com/jd/7668edd983f1486ab87eee9c471f82cc.jpg', '560', '1', '2015-03-08 21:27:54', '2015-03-08 21:27:54');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('968188', '索尼(SONY) Xperia Z1 (L39h) 紫色 联通3G手机', '特价抢购!骁龙800四核CPU,2070万像素G镜头,特丽魅彩显像技术,IP55/IP58精密防尘、防水!', '192800', '99999', null, 'http://image.taotao.com/jd/6a03dd6a019c4f4ea897ab7050955b17.jpg', '560', '1', '2015-03-08 21:27:49', '2015-03-08 21:27:49');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('968189', '索尼(SONY) Xperia Z Ultra (XL39h) 黑色 联通3G手机', '手机看视频首选跨界神器,巨屏+四核强芯,超薄防水机身!我的世界又大又轻巧!', '169800', '99999', null, 'http://image.taotao.com/jd/b525167a86c944fe9dbdacb07f0e86df.jpg', '560', '1', '2015-03-08 21:27:49', '2015-03-08 21:27:49');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('968191', '索尼(SONY) Xperia Z Ultra (XL39h) 紫色 联通3G手机', '清仓!手机看视频首选跨界神器,巨屏+四核强芯,超薄防水机身!我的世界又大又轻巧!更多选择!请点击》', '177800', '99999', null, 'http://image.taotao.com/jd/e93eac74e90a49098266078c23136459.jpg', '560', '1', '2015-03-08 21:31:50', '2015-03-08 21:31:50');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('971047', '联想 S820e 红色 电信3G手机 双卡双待', '4.7英寸1280*720高清大屏,四核强劲处理器,800万+160万摄像头,尽显时尚气质!', '49800', '99999', null, 'http://image.taotao.com/jd/746ac093280c4e9ea200a63e81df435a.jpg', '560', '1', '2015-03-08 21:28:09', '2015-03-08 21:28:09');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('971050', '联想 S820e 白色 电信3G手机 双卡双待', '4.7英寸1280*720高清大屏,四核强劲处理器,800万主摄像头,丝绒质感涂层机身!', '49800', '99999', null, 'http://image.taotao.com/jd/89a67b97915e4e93b14b201e360fe105.jpg', '560', '1', '2015-03-08 21:28:01', '2015-03-08 21:28:01');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('972627', '金立 商务翻盖 (A809) 绅士黑 联通移动2G手机 双卡双待单通', '时尚翻盖,精美工艺品质~', '59900', '99999', null, 'http://image.taotao.com/jd/73c7b6eee30a459583c5cf107c2f829b.jpg', '560', '1', '2015-03-08 21:28:16', '2015-03-08 21:28:16');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('973267', '优快(U&K) U97 四防对讲手机', '返100元!四防手机对讲,企业通讯必备;电信天翼、深度定制、一键通全国!', '198000', '99999', null, 'http://image.taotao.com/jd/82cdd90503aa4dabb2bb4e5984d6d8b4.jpg', '560', '1', '2015-03-08 21:33:18', '2015-03-08 21:33:18');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('973825', '飞利浦 (X5500) 奢华黑 移动联通2G手机 双卡双待', '超长待机!手写键盘双输入,硬朗金属设计,专属私人电台,双卡双待,奢华品质!', '79900', '99999', null, 'http://image.taotao.com/jd/26e4ddc64000497dbc15be0da4aab5bc.jpg', '560', '1', '2015-03-08 21:28:55', '2015-03-08 21:28:55');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('973862', '三星 Galaxy Note3 (N9009) 16G版 炫酷黑 电信3G手机 双卡双待双通', '京东给您发年终奖~下单即送10400毫安移动电源!', '309900', '99999', null, 'http://image.taotao.com/jd/c4a2e255bc954125a5d83283320a9c85.jpg', '560', '1', '2015-03-08 21:27:49', '2015-03-08 21:27:49');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('974401', '苹果(Apple) iPhone 5s (A1533) 16GB 银色 电信3G手机', 'A7芯片,首开64位智能手机先河,Touch ID指纹识别功能!货源在途,放心订购!电信苹果专场!', '409900', '99999', null, 'http://image.taotao.com/jd/35c54c88f6f147aa88e788042b70e7c4.jpg', '560', '1', '2015-03-08 21:27:49', '2015-03-08 21:27:49');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('975023', '三星 Galaxy Note 3 (N9002) 简约白 联通3G手机 双卡双待双通', '5.7英寸高清屏 带S Pen功能 手写编辑快速简单 支持多窗口多任务', '279900', '99999', null, 'http://image.taotao.com/jd/41e9ad9c568a4dbc92b545e88788451f.jpg', '560', '1', '2015-03-08 21:27:37', '2015-03-08 21:27:37');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('975024', '三星 Galaxy Note 3 (N9002) 炫酷黑 联通3G手机 双卡双待双通', '5.7英寸高清屏 带S Pen功能 手写编辑快速简单 支持多窗口多任务', '279900', '99999', null, 'http://image.taotao.com/jd/e6b313f1ded44b0a9ab217cc6faf382d.jpg', '560', '1', '2015-03-08 21:27:49', '2015-03-08 21:27:49');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('975101', '长虹(CHANGHONG) LED42C2JDi 42英寸 安卓智能LED液晶电视(黑色)', '京东独家,操作简单,一键直达京东,海量影视!“点击进入长虹新年专场”', '239900', '99999', null, 'http://image.taotao.com/jd/3471d33f448340c0aa5d5a11e7f0d068.jpg', '76', '1', '2015-03-08 21:27:35', '2015-03-08 21:27:35');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('975641', '苹果(Apple) iPhone 5s (A1533) 16GB 金色 电信3G手机', '特价抢购!A7芯片,64位智能手机,Touch ID指纹识别功能!电信苹果专场!', '409900', '99999', null, 'http://image.taotao.com/images/6e844025-47df-4b0e-b7f3-8aea1dca24a2.jpg,http://image.taotao.com/images/82df85b6-f7ce-4ad0-88c5-45848c60c1f8.jpg,http://image.taotao.com/images/3b5ce7d0-49f7-4dcb-a934-0112f91c573d.jpg', '560', '1', '2015-03-08 21:27:42', '2015-03-08 21:27:42');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('976898', '苹果 iPhone 4S 8G 白色 联通3G手机', '', '199900', '99999', null, 'http://image.taotao.com/jd/12241d5b7c044fccbc88ee6c191fd949.jpg', '560', '1', '2015-03-08 21:33:18', '2015-03-08 21:33:18');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('979072', '康佳(KONKA) LED42J39AW 42英寸 超薄安卓智能液晶电视(黑色)', '【洋洋得意抢神机】 超薄安卓智能,海量视频应用,任你拓展!【机不可失!49英寸巨屏4K智能仅2999!】', '259800', '99999', null, 'http://image.taotao.com/jd/527275cba3684863b6621ad33df97948.jpg', '76', '1', '2015-03-08 21:28:08', '2015-03-08 21:28:08');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('979281', '三星 W789 奢华金 电信3G手机 双卡双待双通', '下单送12000毫安移动电源!时尚翻盖设计,双3.3英寸触屏,四核处理器,双网双待,张弛自若,双赢人生!', '299900', '99999', null, 'http://image.taotao.com/jd/ebe230a9e4ff47caa32243cc5c80088a.jpg', '560', '1', '2015-03-08 21:28:01', '2015-03-08 21:28:01');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('981123', '联想 A516 荧光粉 联通3G手机 双卡双待', '9.9毫米轻薄机身!为女生量身打造!', '39900', '99999', null, 'http://image.taotao.com/jd/1166c37afdf24439a1465da589d20a4b.jpg', '560', '1', '2015-03-08 21:28:30', '2015-03-08 21:28:30');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('981821', '苹果(Apple) iPhone 4s 8GB 白色 联通3G手机', 'iPhone中的经典,值得拥有!支持联通3G、移动/联通2G 系统版本随机先领券,后下单,苹果4s专享东券万张齐发', '199900', '99999', null, 'http://image.taotao.com/jd/13a8213124d4489aa411bca04ec3e68f.jpg', '560', '1', '2015-03-08 21:27:37', '2015-03-08 21:27:37');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('981822', '苹果(Apple) iPhone 4s 8GB 黑色 联通3G手机', 'iPhone中的经典,值得拥有!支持联通3G、移动/联通2G 系统版本随机先领券,后下单,苹果4s专享东券万张齐发', '199900', '99999', null, 'http://image.taotao.com/jd/cb465f68fb9844cbb62cce45837848ba.jpg', '560', '1', '2015-03-08 21:27:37', '2015-03-08 21:27:37');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('983248', '诺基亚(NOKIA) 107 (RM-961) 红色 移动联通2G手机 双卡双待', '超值特价!诺记品质,辉煌延续!支持手电筒功能,包装内含原装耳机!', '16800', '99999', null, 'http://image.taotao.com/jd/2ff73a5b4c534c1aaf392c81b4e823af.jpg', '560', '1', '2015-03-08 21:28:16', '2015-03-08 21:28:16');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('983252', '诺基亚(NOKIA) 107 (RM-961) 白色 移动联通2G手机 双卡双待', '超值特价!诺记品质,辉煌延续!支持手电筒功能,包装内含原装耳机!', '16800', '99999', null, 'http://image.taotao.com/jd/b462a185f262461e8037c9418b39193a.jpg', '560', '1', '2015-03-08 21:28:44', '2015-03-08 21:28:44');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('983253', '诺基亚(NOKIA) 107 (RM-961) 黑色 移动联通2G手机 双卡双待', '超值特价!诺记品质,辉煌延续!支持手电筒功能,包装内含原装耳机!', '16800', '99999', null, 'http://image.taotao.com/jd/76c67dd46faa4ccd9db8540cae48e3b3.jpg', '560', '1', '2015-03-08 21:28:09', '2015-03-08 21:28:09');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('983521', '联想 VIBE X (S960)铂雅银 联通3G手机', '5吋FHD炫丽高清大屏,超薄机身,1300万超强拍照配置!', '69900', '99999', null, 'http://image.taotao.com/jd/b47d242135dc471a8c699cf26114e691.jpg', '560', '1', '2015-03-08 21:28:01', '2015-03-08 21:28:01');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('985058', '派信(PISIN) WO1 NanoSmart 智能手表手机(蓝色)', '京东自营,新款可插SIM卡智能手表,原装LG屏,雅马哈解码芯片、4G内存、支持和安卓、IOS手机配对!', '35000', '99999', null, 'http://image.taotao.com/jd/bbde56f5ccaf489eb24e1760a4b22756.jpg', '560', '1', '2015-03-08 21:31:27', '2015-03-08 21:31:27');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('985059', '派信(PISIN) WO1 NanoSmart 智能手表手机(红色)', '京东自营,新款可插SIM卡智能手表,原装LG屏,雅马哈解码芯片、4G内存、支持和安卓、IOS手机配对!', '35000', '99999', null, 'http://image.taotao.com/jd/22ae33eb4dd24f0bb0c8f467367647d6.jpg', '560', '1', '2015-03-08 21:31:27', '2015-03-08 21:31:27');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('988634', '长虹(CHANGHONG)LED39C2080i 39英寸智能安卓LED液晶电视(黑色)', '无线WiFi,强劲机芯,海量应用!“点击进入长虹新年专场”', '199900', '99999', null, 'http://image.taotao.com/jd/3c3f9a9346294ab280f26b8b9a6e5cc2.jpg', '76', '1', '2015-03-08 21:27:39', '2015-03-08 21:27:39');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('988753', '联想 A516 白色 联通3G手机 双卡双待', '9.9毫米轻薄机身,双卡双待,为女生量身打造!', '39900', '99999', null, 'http://image.taotao.com/jd/d70ba3808ad541b9a0ddcea47cc62ea6.jpg', '560', '1', '2015-03-08 21:28:09', '2015-03-08 21:28:09');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('988833', '诺基亚(NOKIA) 108 (RM-944) 黑色 移动联通2G手机 双卡双待', '小机器,大能耐!防尘键盘,超长待机!诺记品质,辉煌延续!诺基亚最便宜的拍照功能机!', '18900', '99999', null, 'http://image.taotao.com/jd/d41b3a3ab0dd496dac807c803e04171e.jpg', '560', '1', '2015-03-08 21:28:55', '2015-03-08 21:28:55');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('988834', '诺基亚(NOKIA) 108 (RM-944) 红色 移动联通2G手机 双卡双待', '小机器,大能耐!防尘键盘,超长待机!诺记品质,辉煌延续!诺基亚最便宜的拍照功能机!', '18900', '99999', null, 'http://image.taotao.com/jd/46240ac1fb794c3989c2fc60d734504d.jpg', '560', '1', '2015-03-08 21:29:19', '2015-03-08 21:29:19');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('989026', '酷派 7231 黑色 联通3G手机 双卡双待', '4.0英寸高清大屏,双核1.3GHz高速CPU,畅享21M极速上网!', '25900', '99999', null, 'http://image.taotao.com/jd/481be30882144a82a2db7a2a905d1496.jpg', '560', '1', '2015-03-08 21:29:11', '2015-03-08 21:29:11');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('990723', 'TCL LE50D59 50英寸 超窄边内置WIFI安卓智能液晶电视(黑色)', '【0元献礼】抢!抢!抢!50英寸大板安卓神机,库存倒计时,性价比首选,买到就赚!!【0元白条试用,1001个拜年计划】', '329900', '99999', null, 'http://image.taotao.com/jd/b81e05f917464c67879d3f893175c133.jpg', '76', '1', '2015-03-08 21:28:08', '2015-03-08 21:28:08');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('990724', 'TCL LE32D59 32英寸 安卓4.0 超窄边智能LED液晶电视(黑色)', '【0元献礼】爆!爆!爆!开放式安卓神器。云端影视,尽享不停。客厅新宠,“潮”我看齐!【0元白条试用,1001个拜年计划】', '159800', '99999', null, 'http://image.taotao.com/jd/7c5d6ba2251f4b75817b708536dffc17.jpg', '76', '1', '2015-03-08 21:27:39', '2015-03-08 21:27:39');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('997643', '长虹(CHANGHONG)LED50C2080i 50英寸智能安卓LED液晶电视(黑色)', '智能安卓系统,可自由安装应用程序,让您的电视无所不能!“点击进入长虹新年专场”', '339900', '99999', null, 'http://image.taotao.com/jd/4055ccf141a143c99a6d51e9107f96c1.jpg', '76', '1', '2015-03-08 21:27:39', '2015-03-08 21:27:39');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('997966', '诺基亚(NOKIA) 106 (RM-962) 红色 移动联通2G手机', '小机器,大能耐!防尘键盘,超长待机!支持FM收音机,手电筒功能!', '14900', '99999', null, 'http://image.taotao.com/jd/28085e4542e6433f80e69338327423be.jpg', '560', '1', '2015-03-08 21:28:30', '2015-03-08 21:28:30');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('997967', '诺基亚(NOKIA) 106 (RM-962) 黑色 移动联通2G手机', '小机器,大能耐!防尘键盘,超长待机!支持FM收音机,手电筒功能!', '14900', '99999', null, 'http://image.taotao.com/jd/f22fd70d7d26492e88e3368e6d528779.jpg', '560', '1', '2015-03-08 21:28:16', '2015-03-08 21:28:16');
INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('998692', '夏普(SHARP)LCD-52DS51A 52英寸 日本原装液晶面板 内置WIFI智能全高清液晶电视', '要好屏,选夏普!日本原装面板,智能电视,高画质高音质!还有升级版安卓智能新机52DS52供您选择!', '549900', '99999', null, 'http://image.taotao.com/jd/63af01c37a18454ab2fef4670046272e.jpg', '76', '1', '2015-03-08 21:27:45', '2015-03-08 21:27:45');
-- ----------------------------
-- Records of tb_user
-- ----------------------------
INSERT INTO TB_USER(ID,USERNAME,PASSWORD,PHONE,EMAIL,CREATED,UPDATED) VALUES ('7', 'zhangsan', 'e10adc3949ba59abbe56e057f20f883e', '13488888888', 'aa@a', '2015-04-06 17:03:55', '2015-04-06 17:03:55');
INSERT INTO TB_USER(ID,USERNAME,PASSWORD,PHONE,EMAIL,CREATED,UPDATED) VALUES ('9', 'zhangsan1', 'e10adc3949ba59abbe56e057f20f883e', '13333333333', null, '2015-04-07 10:32:08', '2015-04-07 10:32:08');
INSERT INTO TB_USER(ID,USERNAME,PASSWORD,PHONE,EMAIL,CREATED,UPDATED) VALUES ('10', 'zhangsan2', '195d91be1e3ba6f1c857d46f24c5a454', '13333333334', null, '2015-04-07 10:33:37', '2015-04-07 10:33:37');
INSERT INTO TB_USER(ID,USERNAME,PASSWORD,PHONE,EMAIL,CREATED,UPDATED) VALUES ('11', 'zhangsan3', '195d91be1e3ba6f1c857d46f24c5a454', '13333333335', null, '2015-04-07 10:35:57', '2015-04-07 10:35:57');
INSERT INTO TB_USER(ID,USERNAME,PASSWORD,PHONE,EMAIL,CREATED,UPDATED) VALUES ('12', 'zhangsan5', '195d91be1e3ba6f1c857d46f24c5a454', '13333333336', null, '2015-04-07 10:46:19', '2015-04-07 10:46:19');
INSERT INTO TB_USER(ID,USERNAME,PASSWORD,PHONE,EMAIL,CREATED,UPDATED) VALUES ('14', 'lisi', '202cb962ac59075b964b07152d234b70', '12344444444', null, '2015-06-19 10:02:11', '2015-06-19 10:02:11');
INSERT INTO TB_USER(ID,USERNAME,PASSWORD,PHONE,EMAIL,CREATED,UPDATED) VALUES ('16', 'lisi1', '202cb962ac59075b964b07152d234b70', '12344444442', null, '2015-06-19 10:24:27', '2015-06-19 10:24:27');
INSERT INTO TB_USER(ID,USERNAME,PASSWORD,PHONE,EMAIL,CREATED,UPDATED) VALUES ('17', 'jd_gogogo', '745404feaba9fb037e01b4a91c6ddbeb', '18800888888', null, '2015-06-19 10:25:46', '2015-06-19 10:25:46');
INSERT INTO TB_USER(ID,USERNAME,PASSWORD,PHONE,EMAIL,CREATED,UPDATED) VALUES ('18', 'tidy', '123', '13600112243', null, '2015-07-30 17:26:25', '2015-07-30 17:26:25');
INSERT INTO TB_USER(ID,USERNAME,PASSWORD,PHONE,EMAIL,CREATED,UPDATED) VALUES ('22', 'tidy1', '202cb962ac59075b964b07152d234b70', '13600112244', null, '2015-07-30 17:48:33', '2015-07-30 17:48:33');
INSERT INTO TB_USER(ID,USERNAME,PASSWORD,PHONE,EMAIL,CREATED,UPDATED) VALUES ('23', 'niuniu', '202cb962ac59075b964b07152d234b70', '15866777744', '', '2015-08-01 11:48:42', '2015-08-01 11:48:42');
INSERT INTO TB_USER(ID,USERNAME,PASSWORD,PHONE,EMAIL,CREATED,UPDATED) VALUES ('32', 'niuniu2', '202cb962ac59075b964b07152d234b70', '14322334455', null, '2015-08-01 12:04:50', '2015-08-01 12:04:50');
INSERT INTO TB_USER(ID,USERNAME,PASSWORD,PHONE,EMAIL,CREATED,UPDATED) VALUES ('33', 'niuniu3', '202cb962ac59075b964b07152d234b70', '14322334456', null, '2015-08-01 12:08:26', '2015-08-01 12:08:26');
INSERT INTO TB_USER(ID,USERNAME,PASSWORD,PHONE,EMAIL,CREATED,UPDATED) VALUES ('34', 'niuniu4', '202cb962ac59075b964b07152d234b70', '15877680983', null, '2015-08-01 12:13:41', '2015-08-01 12:13:41');
INSERT INTO TB_USER(ID,USERNAME,PASSWORD,PHONE,EMAIL,CREATED,UPDATED) VALUES ('35', 'test01', '202cb962ac59075b964b07152d234b70', '15600876321', null, '2015-08-01 12:21:53', '2015-08-01 12:21:53');
INSERT INTO TB_USER(ID,USERNAME,PASSWORD,PHONE,EMAIL,CREATED,UPDATED) VALUES ('36', 'test02', '202cb962ac59075b964b07152d234b70', '1370348890', null, '2015-08-01 12:28:39', '2015-08-01 12:28:39');
由于配置的分片规则为“auto-sharding-long”,所以mycat会根据此规则自动分片。
每个datanode中保存一定数量的数据。根据id进行分片
经测试id范围为:
Datanode1:1~5000000
Datanode2:5000000~10000000
Datanode3:10000001~15000000
当15000000以上的id插入时报错:
[Err] 1064 - can't find any valid datanode :TB_ITEM -> ID -> 15000001
此时需要添加节点了。