Permalink
Browse files

文档目录调整

1 parent e4de20f commit 0e234dc31716b74f57fc9112fa9e2fe73aa06b3c @linzhiqiang0514 linzhiqiang0514 committed Dec 29, 2014
Showing with 87 additions and 180 deletions.
  1. +0 −180 1.0/Changelog_MyCat1.0.html
  2. BIN 1.0/MyCAT性能测试案例集.wps
  3. BIN 1.0/MyCat_In_Action_中文版.doc
  4. BIN 1.0/MyCat专家系列之Mycat前世今生.doc
  5. BIN 1.0/Mycat Q&A.docx
  6. BIN 1.0/Mycat_Develope_Guide.docx
  7. BIN 1.0/Mycat命令行监控指南.docx
  8. BIN 1.0/Mycat性能测试指南.docx
  9. BIN 1.0/Mycat性能调优指南.docx
  10. BIN 1.0/Mycat最权威Mysql主从配置手册.docx
  11. BIN 1.0/Mycat高级功能测试案例.docx
  12. BIN 1.1/MyCat_In_Action_中文版.doc
  13. BIN 1.1/Mycat Q&A.docx
  14. BIN 1.1/Mycat性能调优指南.docx
  15. 0 { → history/1.1}/MySql常用命令总结.txt
  16. BIN { → history/1.1}/Mycat-Balance使用指南.docx
  17. BIN { → history/1.1}/Mycat-cluster设计简析.docx
  18. BIN { → history/1.1}/Mycat最权威DBCP使用手册.docx
  19. BIN { → history/1.1}/Mycat运行时序图.vsd
  20. BIN { → history/1.1}/Mycat高级功能测试案例.docx
  21. BIN { → history}/1.2.1/MyCat_In_Action_中文版.doc
  22. BIN { → history/1.2}/Haproxy+Mycat集群搭建指南.docx
  23. BIN { → history/1.2}/MyCat_In_Advanced.doc
  24. BIN { → history/1.2}/MyCat专家系列之Mycat前世今生.doc
  25. BIN { → history/1.2}/MyCat性能测试案例.docx
  26. BIN { → history}/1.2/Mycat Q&A.docx
  27. BIN { → history/1.2}/Mycat_Develope_Guide.docx
  28. BIN { → history/1.2}/Mycat命令行监控指南.docx
  29. BIN { → history/1.2}/Mycat性能调优指南.docx
  30. BIN { → history/1.2}/Mycat最权威Mysql主从配置手册.docx
  31. 0 { → history/1.2}/Q&A.docx
  32. 0 { → history/1.2}/sequnce-sql.txt
  33. BIN { → history}/DDAP-FPMA第二轮性能提升测试报告.docx
  34. BIN {1.2 → history}/Haproxy+Mycat集群搭建指南.docx
  35. BIN { → history}/MyCAT人工智能解决跨分片SQL.docx
  36. BIN history/MyCAT的S级别任务.docx
  37. BIN { → history}/MyCat_In_Action_中文版.doc
  38. BIN {1.2 → history}/MyCat_In_Advanced.doc
  39. BIN { → history}/MyCat_Professional.doc
  40. BIN { → history}/MyCat_安装指南(linux).doc
  41. BIN {1.2 → history}/MyCat专家系列之Mycat前世今生.doc
  42. BIN { → history}/MyCat主键自增字段开启.docx
  43. BIN {1.2 → history}/MyCat性能测试案例.docx
  44. 0 {1.1 → history}/MySql常用命令总结.txt
  45. BIN { → history}/Mycat 26亿单表分片案例及性能测试.docx
  46. BIN history/Mycat Q&A.docx
  47. BIN {1.1 → history}/Mycat-Balance使用指南.docx
  48. BIN {1.1 → history}/Mycat-cluster设计简析.docx
  49. BIN {1.2 → history}/Mycat_Develope_Guide.docx
  50. BIN { → history}/Mycat一致性哈希分片算法.docx
  51. BIN { → history}/Mycat事务补偿设计文档(讨论稿).docx
  52. BIN {1.2 → history}/Mycat命令行监控指南.docx
  53. BIN { → history}/Mycat性能测试指南.docx
  54. BIN {1.2 → history}/Mycat性能调优指南.docx
  55. BIN {dev → history}/Mycat智能优化设计方案.doc
  56. BIN {1.1 → history}/Mycat最权威DBCP使用手册.docx
  57. BIN {1.2 → history}/Mycat最权威Mysql主从配置手册.docx
  58. BIN { → history}/Mycat路由新解析器选型分析与结果.docx
  59. BIN {1.1 → history}/Mycat运行时序图.vsd
  60. BIN {1.1 → history}/Mycat高级功能测试案例.docx
  61. 0 {1.2 → history}/Q&A.docx
  62. BIN { → history}/dev/Mycat命令行监控指南.docx
  63. BIN { → history/dev}/Mycat智能优化设计方案.doc
  64. 0 { → history}/dev/mycat同步实现的设计.txt
  65. BIN { → history/dev}/一亿组数据排序.docx
  66. BIN { → history}/mycat+percona_cluster.docx
  67. 0 { → history}/mycat创建调用返回结果集的存储过程 (1).txt
  68. BIN { → history}/mycat路由解析开发指南.docx
  69. 0 {1.2 → history}/sequnce-sql.txt
  70. BIN {dev → history}/一亿组数据排序.docx
  71. 0 { → history}/案例集/mycat字符串枚举分片示例.txt
  72. BIN { → history}/案例集/从单租户改进到多租户模式的简单实现.docx
  73. 0 { → history}/案例集/枚举分片容错性动态扩展.txt
  74. BIN {1.2 → 入门指南}/MyCat_In_Action_中文版.doc
  75. BIN 入门指南/MyCat_In_Advanced.doc
  76. BIN 入门指南/MyCat_安装指南(linux).doc
  77. BIN {1.1 → 入门指南}/MyCat专家系列之Mycat前世今生.doc
  78. BIN {1.1 → 入门指南}/Mycat命令行监控指南.docx
  79. +56 −0 入门指南/sequnce-sql.txt
  80. 0 {1.0 → 开发指南}/MySql常用命令总结.txt
  81. BIN {1.1 → 开发指南}/Mycat_Develope_Guide.docx
  82. BIN 开发指南/github个人使用笔记.doc
  83. BIN 开发指南/mycat路由解析开发指南.docx
  84. BIN 测试案例与报告/DDAP-FPMA第二轮性能提升测试报告.docx
  85. BIN 测试案例与报告/MyCAT性能损失率报告.docx
  86. BIN {1.1 → 测试案例与报告}/MyCAT性能测试案例集.wps
  87. BIN 测试案例与报告/MyCat性能测试案例.docx
  88. BIN 测试案例与报告/Mycat 26亿单表分片案例及性能测试.docx
  89. BIN 测试案例与报告/Mycat高级功能测试案例.docx
  90. BIN 设计文档/MyCAT人工智能解决跨分片SQL.docx
  91. BIN {1.0 → 设计文档}/Mycat-cluster设计简析.docx
  92. BIN 设计文档/Mycat一致性哈希分片算法.docx
  93. BIN 设计文档/Mycat事务补偿设计文档(讨论稿).docx
  94. BIN 设计文档/Mycat智能优化设计方案.doc
  95. BIN 设计文档/Mycat运行时序图.vsd
  96. BIN {1.1 → 设计文档}/NIO的陷阱.docx
  97. BIN {1.1 → 设计文档}/Select的where条件解析增加Between解析说明.docx
  98. +17 −0 设计文档/mycat创建调用返回结果集的存储过程 (1).txt
  99. +14 −0 设计文档/mycat同步实现的设计.txt
  100. 0 { → 设计文档}/mycat字符串枚举分片示例.txt
  101. BIN 设计文档/一亿组数据排序.docx
  102. BIN { → 设计文档}/从单租户改进到多租户模式的简单实现.docx
  103. 0 { → 设计文档}/枚举分片容错性动态扩展.txt
  104. BIN 进阶文档/Haproxy+Mycat集群搭建指南.docx
  105. BIN 进阶文档/MyCat主键自增字段开启.docx
  106. BIN {1.0 → 进阶文档}/Mycat-Balance使用指南.docx
  107. BIN {1.1 → 进阶文档}/Mycat性能测试指南.docx
  108. BIN 进阶文档/Mycat性能调优指南.docx
  109. BIN {1.0 → 进阶文档}/Mycat最权威DBCP使用手册.docx
  110. BIN {1.1 → 进阶文档}/Mycat最权威Mysql主从配置手册.docx
  111. BIN 进阶文档/Mycat路由新解析器选型分析与结果.docx
  112. BIN 进阶文档/mycat+percona_cluster.docx
@@ -1,180 +0,0 @@
-<html>
-<head>
-<META http-equiv="Content-Type" content="text/html; charset=utf-8">
-<title>MyCat 1.0 - Changelog</title>
-<meta name="author" content="micmiu.com">
-<style type="text/css" media="print">
-.noPrint {
- display: none;
-}
-
-td#mainBody {
- width: 100%;
-}
-</style>
-</head>
-<body bgcolor="#ffffff" text="#000000" link="#525D76" alink="#525D76"
- vlink="#525D76">
- <div>
- <h1>MyCat 1.0</h1>
- <h2>Changelog</h2>
- <table cellspacing="0" cellpadding="2" border="0">
- <tbody>
- <tr>
- <td bgcolor="#525D76"><font face="arial,helvetica.sanserif"
- color="#ffffff"><a name="Tomcat 6.0.37 (jfclere)">
- <!--()-->
- </a><a name="MyCat 1.0"><strong>MyCat 1.0</strong></a></font></td>
- </tr>
- <tr>
- <td><blockquote>
- <table cellspacing="0" cellpadding="2" border="0">
- <tbody>
- <tr>
- <td bgcolor="#828DA6"><font
- face="arial,helvetica.sanserif" color="#ffffff"><a
- name="MyCat 1.0/特性">
- <!--()-->
- </a><a name="MyCat 1.0/特性"><strong>特性</strong></a></font></td>
- </tr>
- <tr>
- <td><blockquote>
- <table cellspacing="2" cellpadding="2" border="0">
- <tbody>
- <tr><td>+</td><td>支持Mysql集群,可以作为Proxy使用</td></tr>
- <tr><td>+</td><td>自动故障切换,高可用性</td></tr>
- <tr><td>+</td><td>支持读写分离,支持Mysql双主多从,以及一主多从的模式</td></tr>
- <tr><td>+</td><td>支持全局表,数据自动分片到多个节点,用于高效表关联查询</td></tr>
- <tr><td>+</td><td>支持独有的基于E-R 关系的分片策略,实现了高效的表关联查询</td></tr>
- <tr><td>+</td><td>全局序列号</td></tr>
- <tr><td>+</td><td>多平台支持,部署和实施简单</td></tr>
- </tbody>
- </table>
- </blockquote></td>
- </tr>
- </tbody>
- </table>
- <table cellspacing="0" cellpadding="2" border="0">
- <tbody>
- <tr>
- <td bgcolor="#828DA6"><font
- face="arial,helvetica.sanserif" color="#ffffff"><a
- name="MyCat 1.0/Fix bug">
- <!--()-->
- </a><a name="MyCat 1.0/Fix bug"><strong>Fix bug</strong></a></font></td>
- </tr>
- <tr>
- <td><blockquote>
- <table cellspacing="2" cellpadding="2" border="0">
- <tbody>
- <tr>
- <td>*</td>
- <td>Cobar连接池异常</td>
- </tr>
- <tr>
- <td>*</td>
- <td>连接被拒绝的 indexoutofbound 异常</td>
- </tr>
- <tr>
- <td>*</td>
- <td>部分路由错误等</td>
- </tr>
- </tbody>
- </table>
- </blockquote></td>
- </tr>
- </tbody>
- </table>
- <table cellspacing="0" cellpadding="2" border="0">
- <tbody>
- <tr>
- <td bgcolor="#828DA6"><font
- face="arial,helvetica.sanserif" color="#ffffff"><a
- name="MyCat 1.0/Author">
- <!--()-->
- </a><a name="MyCat 1.0/Author"><strong>Author</strong></a></font></td>
- </tr>
- <tr>
- <td><blockquote>
- <table cellspacing="2" cellpadding="2" border="0">
- <tbody>
- <tr>
- <td>吴志辉(Leader)</td>
- <td>MyCat-server</td>
- </tr>
- <tr>
- <td>rainbow 团队</td>
- <td>MyCat-web</td>
- </tr>
- <tr>
- <td>Qing</td>
- <td>MyCat-cluster</td>
- </tr>
- <tr>
- <td>提婆谭(暂定)</td>
- <td>MyCat-Balance</td>
- </tr>
- <tr>
- <td>Michael<a href="http://www.micmiu.com" target="_blank">@micmiu.com</td>
- <td>MyCat-server</td>
- </tr>
- <tr>
- <td>无影</td>
- <td>MyCat-server</td>
- </tr>
- <tr>
- <td>shenzhw</td>
- <td>性能测试</td>
- </tr>
- <tr>
- <td>小鱼</td>
- <td>测试</td>
- </tr>
- <tr>
- <td>阿德</td>
- <td>排序算法</td>
- </tr>
- <tr>
- <td>木糖醇患者</td>
- <td>修复BUG</td>
- </tr>
- <tr><td colspan="2">很多志愿者在努力研发中,后期版本陆续列出贡献者信息</tr>
- </tbody>
- </table>
- </blockquote>
- </td>
- </tr>
- </tbody>
- </table>
- <table cellspacing="0" cellpadding="2" border="0">
- <tbody>
- <tr>
- <td bgcolor="#828DA6"><font
- face="arial,helvetica.sanserif" color="#ffffff"><a
- name="MyCat 1.0/Other">
- <!--()-->
- </a><a name="MyCat 1.0/Other"><strong>Other</strong></a></font></td>
- </tr>
- <tr>
- <td><blockquote>
- <table cellspacing="2" cellpadding="2" border="0">
- <tbody>
- <tr>
- <td>*</td>
- <td>新特性期待中。。。</td>
- </tr>
- </tbody>
- </table>
- </blockquote>
- </td>
- </tr>
- </tbody>
- </table>
- </blockquote>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
-</body>
-</html>
Binary file not shown.
Binary file not shown.
Binary file not shown.
View
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
View
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
File renamed without changes.
File renamed without changes.
View
Binary file not shown.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,56 @@
+DROP TABLE IF EXISTS MYCAT_SEQUENCE;
+CREATE TABLE MYCAT_SEQUENCE ( name VARCHAR(50) NOT NULL, current_value INT NOT NULL, increment INT NOT NULL DEFAULT 100, PRIMARY KEY (name) ) ENGINE=InnoDB;
+
+-- ----------------------------
+-- Function structure for `mycat_seq_currval`
+-- ----------------------------
+DROP FUNCTION IF EXISTS `mycat_seq_currval`;
+DELIMITER ;;
+CREATE DEFINER=`root`@`%` FUNCTION `mycat_seq_currval`(seq_name VARCHAR(50)) RETURNS varchar(64) CHARSET latin1
+ DETERMINISTIC
+BEGIN
+ DECLARE retval VARCHAR(64);
+ SET retval="-999999999,null";
+ SELECT concat(CAST(current_value AS CHAR),",",CAST(increment AS CHAR) ) INTO retval FROM MYCAT_SEQUENCE WHERE name = seq_name;
+ RETURN retval ;
+END
+;;
+DELIMITER ;
+
+-- ----------------------------
+-- Function structure for `mycat_seq_nextval`
+-- ----------------------------
+DROP FUNCTION IF EXISTS `mycat_seq_nextval`;
+DELIMITER ;;
+CREATE DEFINER=`root`@`%` FUNCTION `mycat_seq_nextval`(seq_name VARCHAR(50)) RETURNS varchar(64) CHARSET latin1
+ DETERMINISTIC
+BEGIN
+ UPDATE MYCAT_SEQUENCE
+ SET current_value = current_value + increment WHERE name = seq_name;
+ RETURN mycat_seq_currval(seq_name);
+END
+;;
+DELIMITER ;
+
+-- ----------------------------
+-- Function structure for `mycat_seq_setval`
+-- ----------------------------
+DROP FUNCTION IF EXISTS `mycat_seq_setval`;
+DELIMITER ;;
+CREATE DEFINER=`root`@`%` FUNCTION `mycat_seq_setval`(seq_name VARCHAR(50), value INTEGER) RETURNS varchar(64) CHARSET latin1
+ DETERMINISTIC
+BEGIN
+ UPDATE MYCAT_SEQUENCE
+ SET current_value = value
+ WHERE name = seq_name;
+ RETURN mycat_seq_currval(seq_name);
+END
+;;
+DELIMITER ;
+
+INSERT INTO MYCAT_SEQUENCE VALUES ('GLOBAL', 0, 100);
+SELECT MYCAT_SEQ_SETVAL('GLOBAL', 1);
+SELECT MYCAT_SEQ_CURRVAL('GLOBAL');
+SELECT MYCAT_SEQ_NEXTVAL('GLOBAL');
+
+
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
@@ -0,0 +1,17 @@
+
+1.在包含employee的分片上创建存储过程:
+/*!mycat: sql=select sharding_id from employee */ create procedure proc_rtn_list(in v_in int) begin select * from employee where sharding_id=v_in;end;
+
+2.调用存储过程, 通过注解指定在哪个分片上执行:
+/*!mycat: sql=select sharding_id from employee where sharding_id=10000*/ call proc_rtn_list(10000);
+
+3.出现问题:
+ "[Err] 1312 - PROCEDURE db1.proc_rtn_list can't return a result set in the given context"
+
+4.解决方案:修改代码 org.opencloudb.mysql.nio包内的MySQLConnection类, 取消第85行的注释.
+
+5.遗留问题:
+ 调用存储过程后, 客户端没有收到相应的报文, 导致一直处于等待状态, 而不是正常的显示"mysql> ", 求大侠抓包解决, 看下mysql直连情况下,返回的这个报文跟Mycat的有哪些不同, 解决这个问题
+
+
+
@@ -0,0 +1,14 @@
+���A��ͬ����SQL������˳��д��B��C
+
+���� 1 ����2
+update xx from table1 where id =1 update yy from table where id=1
+������1 �ȷ��أ�����Ҫ��֤A�Ĵ���ͬ��SQL�������2��B��C����ִ��
+������Ҫ�첽��������1 commit���Զ�commit)����Ժ󣬲Ž�SQLͬʱ����BCִ�У�
+BCִ����ɺ󣬲�ִ����һ������2
+
+
+
+���˼·��ÿ��DataNode��Ƭ��ά��һ������ͬ����SQL˳����У��첽ִ�У�����Ҫͬ����SQL�����A��ִ����ɺ󣬼���˶��У��첽����ڵ�ִ�У�ִ��ʧ�ܵĽڵ㣬����Ӷ������Ƴ��ٿ��ã�
+
+
+��SQL�����ʱ����Sessino��û��ִ�й��޸���ݵ�SQL��������Է���������ͬ��SQL����Ϊ�յķ�Ƭִ�У�������ֻ����д�ڵ�
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 0e234dc

Please sign in to comment.