欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

mycat的配置

程序员文章站 2022-05-08 23:09:14
...

1.tar zxf Mycat-server-1.4-release-20151019230038-linux.tar.gz

tar zxf Mycat-server-1.4-release-20151019230038-linux.tar.gz 

2.cp -r mycat/ /usr/local/

cp -r mycat/ /usr/local/

3.cd /usr/local/mycat/

cd /usr/local/mycat/

4.cd bin/

cd bin/

5../mycat console(打印日志)

./mycat console

6../mycat start

./mycat start

7../mycat stop

./mycat stop

8.cd /usr/local/mycat/conf/

cd /usr/local/mycat/conf/

9.vim schema.xml

vim schema.xml

10.修改

<?xml version="1.0"?>
<!DOCTYPE mycat:schema SYSTEM "schema.dtd">
<mycat:schema xmlns:mycat="http://org.opencloudb/">

        <schema name="e3mall-32" checkSQLschema="false" sqlMaxLimit="100">
                <!-- auto sharding by id (long) -->
                <table name="tb_item" dataNode="dn1,dn2,dn3" rule="auto-sharding-long" />
        </schema> 
        <dataNode name="dn1" dataHost="localhost1" database="db1" />
        <dataNode name="dn2" dataHost="localhost2" database="db2" />
        <dataNode name="dn3" dataHost="localhost1" database="db3" />
        <dataHost name="localhost1" maxCon="1000" minCon="10" balance="0"
                writeType="0" dbType="mysql" dbDriver="native" switchType="1"  slaveThreshold="100">
                <heartbeat>select user()</heartbeat>
                <!-- can have multi write hosts -->
                <writeHost host="hostM1" url="192.168.25.128:3306" user="root"
                        password="root">
                        <!-- can have multi read hosts -->
                </writeHost>
        </dataHost>
        <dataHost name="localhost2" maxCon="1000" minCon="10" balance="0"
                writeType="0" dbType="mysql" dbDriver="native" switchType="1"  slaveThreshold="100">
                <heartbeat>select user()</heartbeat>
                <!-- can have multi write hosts -->
                <writeHost host="hostM1" url="192.168.25.129:3306" user="root"
                        password="root">
                        <!-- can have multi read hosts -->
                </writeHost>
        </dataHost>
</mycat:schema>

11.vim server.xml

vim server.xml

12.修改

<?xml version="1.0" encoding="UTF-8"?>
<!-- - - Licensed under the Apache License, Version 2.0 (the "License"); 
        - you may not use this file except in compliance with the License. - You 
        may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 
        - - Unless required by applicable law or agreed to in writing, software - 
        distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT 
        WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the 
        License for the specific language governing permissions and - limitations 
        under the License. -->
<!DOCTYPE mycat:server SYSTEM "server.dtd">
<mycat:server xmlns:mycat="http://org.opencloudb/">
        <system>
        <property name="defaultSqlParser">druidparser</property>
      <!--  <property name="useCompression">1</property>--> <!--1涓哄??.ysql?.缉?..-->
        <!-- <property name="processorBufferChunk">40960</property> -->
        <!-- 
        <property name="processors">1</property> 
        <property name="processorExecutor">32</property> 
         -->
                <!--榛..?.5535 64K ?ㄤ?sql瑙f.?舵.澶ф.?..搴?-->
                <!--<property name="maxStringLiteralLength">65535</property>-->
                <!--<property name="sequnceHandlerType">0</property>-->
                <!--<property name="backSocketNoDelay">1</property>-->
                <!--<property name="frontSocketNoDelay">1</property>-->
                <!--<property name="processorExecutor">16</property>-->
                <!-- 
                        <property name="mutiNodeLimitType">1</property> 0锛.??.??伴.绾э?榛..锛.锛.锛.??.嚎绾ф.?..搴~O
                <property name="mutiNodePatchSize">100</property> 浜跨骇?伴.?.??归.
                        <property name="processors">32</property> <property name="processorExecutor">32</property> 
                        <property name="serverPort">8066</property> <property name="managerPort">9066</property> 
                        <property name="idleTimeout">300000</property> <property name="bindIp">0.0.0.0</property> 
                        <property name="frontWriteQueueSize">4096</property> <property name="processors">32</property> -->
        </system>

        <user name="user">
                <property name="password">user</property>
                <property name="schemas">e3mall-32</property>
        </user>
        <!-- <cluster> <node name="cobar1"> <property name="host">127.0.0.1</property> 
                <property name="weight">1</property> </node> </cluster> -->
        <!-- <quarantine> <host name="1.2.3.4"> <property name="user">test</property> 
                </host> </quarantine> -->

</mycat:server>

13.cd /usr/local/mycat/bin/

cd /usr/local/mycat/bin/

14../mycat start

./mycat start

15../mycat status

./mycat status

16.cd /usr/local/mycat/logs/

cd /usr/local/mycat/logs/

17.查看日志

tail -f mycat.log

18.开放8066端口

/sbin/iptables -I INPUT -p tcp --dport 8066 -j ACCEPT
/etc/rc.d/init.d/iptables save

19.测试

-- ----------------------------
-- Table structure for tb_item
-- ----------------------------
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='商品表';

20.添加数据

/*
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手机', '少量库存,抢完即止!<a  target=\"blank\"  href=\"http://sale.jd.com/act/bxYeI1346g.html?erpad_source=erpad\">“领券更优惠!”</a>', '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英寸 日本原装液晶面板 智能全高清液晶电视', '要好屏,选夏普!日本原装面板,智能电视,高画质高音质!<a  target=\"blank\"  href=\"http://item.jd.com/1278686.html\">还有升级版安卓智能新机46DS52供您选择!</a>', '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 电视(黑色)', '智能安卓系统 可*安装应用程序 <a  target=\"blank\"  href=\"http://sale.jd.com/act/Kt0aHzbU7uR1M.html\">“点击进入长虹新年专场”</a>', '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电视(黑色)', '<a  target=\"blank\"  href=\"http://sale.jd.com/act/YykdEtrMRaSsT.html\">“春宵一刻值千金”</a>', '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英寸 海量影视资源智能网络平板液晶电视二代升级版(黑色)', '二代新品!!智能双系统,正版影视随心看,丰富安卓应用,多屏互动!<a  target=\"blank\"  href=\"http://jmall.jd.com/p117514.html\">“猛戳这里,更多惊喜”</a>', '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大内存!<a  target=\"blank\"  href=\"http://sale.jd.com/act/0akd8u5vomz.html\">【买卡上京东,省钱又轻松】点击有惊喜!</a>', '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! <a  target=\"blank\"  href=\"http://sale.jd.com/act/ZovfiDKYagBQJ.html\">更多推荐请点击!</a>', '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超强机!日本原装液晶屏 安卓智能 体感遥控器 智能语音 无线上网!<a  target=\"blank\"  href=\"http://item.jd.com/1134535.html\">还有外观炫酷的50英寸50DS60供您选择!</a>', '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元献礼】好评过万,销量传奇!经典蓝光电视,独有自然光技术专利,过大年带最好的回家!<a  target=\"blank\"  href=\"http://sale.jd.com/act/6MqRytIYKfn.html\">【0元白条试用,1001个拜年计划】</a>', '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!遥控器一键直达京东!<a  target=\"blank\"  href=\"http://sale.jd.com/act/Kt0aHzbU7uR1M.html\">“点击进入长虹新年专场”</a>', '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手机', '清仓!手机看视频首选跨界神器,巨屏+四核强芯,超薄防水机身!我的世界又大又轻巧!<a  target=\"blank\"  href=\"http://sale.jd.com/act/VQgfU7HPk5jAD.html\">更多选择!请点击》</a>', '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指纹识别功能!货源在途,放心订购!<a  target=\"blank\"  href=\"http://sale.jd.com/act/IvM8aG1BdW5.html\">电信苹果专场!</a>', '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液晶电视(黑色)', '京东独家,操作简单,一键直达京东,海量影视!<a  target=\"blank\"  href=\"http://sale.jd.com/act/Kt0aHzbU7uR1M.html\">“点击进入长虹新年专场”</a>', '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指纹识别功能!<a  target=\"blank\"  href=\"http://sale.jd.com/act/IvM8aG1BdW5.html\">电信苹果专场!</a>', '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英寸 超薄安卓智能液晶电视(黑色)', '【洋洋得意抢神机】 超薄安卓智能,海量视频应用,任你拓展!<a  target=\"blank\"  href=\"http://sale.jd.com/act/IrXe3ywoUE.html\">【机不可失!49英寸巨屏4K智能仅2999!】</a>', '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 系统版本随机<a  target=\"blank\"  href=\"http://sale.jd.com/act/1bPmvZ3nVf.html\">先领券,后下单,苹果4s专享东券万张齐发</a>', '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 系统版本随机<a  target=\"blank\"  href=\"http://sale.jd.com/act/1bPmvZ3nVf.html\">先领券,后下单,苹果4s专享东券万张齐发</a>', '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,强劲机芯,海量应用!<a  target=\"blank\"  href=\"http://sale.jd.com/act/Kt0aHzbU7uR1M.html\">“点击进入长虹新年专场”</a>', '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英寸大板安卓神机,库存倒计时,性价比首选,买到就赚!!<a  target=\"blank\"  href=\"http://sale.jd.com/act/6MqRytIYKfn.html\">【0元白条试用,1001个拜年计划】</a>', '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元献礼】爆!爆!爆!开放式安卓神器。云端影视,尽享不停。客厅新宠,“潮”我看齐!<a  target=\"blank\"  href=\"http://sale.jd.com/act/6MqRytIYKfn.html\">【0元白条试用,1001个拜年计划】</a>', '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液晶电视(黑色)', '智能安卓系统,可*安装应用程序,让您的电视无所不能!<a  target=\"blank\"  href=\"http://sale.jd.com/act/Kt0aHzbU7uR1M.html\">“点击进入长虹新年专场”</a>', '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智能全高清液晶电视', '要好屏,选夏普!日本原装面板,智能电视,高画质高音质!<a  target=\"blank\"  href=\"http://item.jd.com/1278664.html\">还有升级版安卓智能新机52DS52供您选择!</a>', '549900', '99999', null, 'http://image.taotao.com/jd/63af01c37a18454ab2fef4670046272e.jpg', '76', '1', '2015-03-08 21:27:45', '2015-03-08 21:27:45');

21.再插入一条id为5000000的数据

INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('5000000', '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');

22.再插入一条id为5000001的数据

INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('5000001', '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');

发现被插入到了db2中
mycat的配置

23.再插入一条id为10000000的数据

INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('10000000', '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');

24.再插入一条id为10000001的数据

INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('10000001', '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');

发现被插入到了db3中,每个数据库可以存5000000条

25若是超过这个数量会报错

[SQL]INSERT INTO TB_ITEM(ID,TITLE,SELL_POINT,PRICE,NUM,BARCODE,IMAGE,CID,STATUS,CREATED,UPDATED) VALUES ('15000001', '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');
[Err] 1064 - can't find any valid datanode :TB_ITEM -> ID -> 15000001

26.如图,mycat配置成功
mycat的配置

相关标签: mycat