直接上图(附件是mysql c/s协议.pdf,cobar的源代码在: http://code.alibabatech.com/mvn/releases/com/alibaba/cobar/cobar-server/1.2.7/)