已开启
[开源实习]: openGauss B库B协议适配MySQL rust驱动 mysql Crate #44
totaj创建于  7月20日
totaj
totaj成员
7月20日 创建

【任务分值】20分

背景描述

openGauss B库dolphin插件中实现了MySQL协议兼容,用户在设置相关参数后,可通过MySQL的JDBC driver或者MySQL命令行客户端,直接连接openGauss。为加强生态适配,本项目旨在测试验证并适配使用 MySQL rust驱动 mysql Crate 连接 openGauss B 兼容模式数据库。

需求描述

基于openGauss的MySQL协议兼容,测试验证并适配使用MySQL rust驱动 mysql Crate连接 openGauss B 兼容模式数据库,并输出示例指导文档。

CPU架构

x86_64/aarch64 均可

操作系统版本

openEuler 20.03 LTS

openGauss版本

openGauss 7.0.0-LTS

产出标准

1、代码
如有适配代码,提交到plugin仓
https://gitcode.com/opengauss/Plugin
2、测试代码
输出测试思维导图及测试代码,并输出自测报告,如发现bug,请修复,并补充在测试报告中,统一提交到examples仓库
https://gitcode.com/opengauss/examples
20、使用示例指导文档
参考基于Mybatis开发,输出基于 MySQL rust驱动 mysql Crate开发指导文档,提交到docs仓
https://docs.opengauss.org/zh/docs/latest/mysql_compatibility_developer_guide/mybatis_development.html
https://gitcode.com/opengauss/docs

PR提交地址

https://gitcode.com/opengauss/docs

期望完成时间

2026.10.30

开发指导

https://docs.opengauss.org/zh/docs/7.0.0-RC3/extension_reference/dolphin_mysql_protocol_compatibility.html

导师及邮箱

@superlchf liuchangfeng2@huawei.com superlchf

【备注】领取本任务时,请参照官网文档提前安装好 openGauss,并将安装且运行成功的截图、您的简历与本任务的开发方案邮件发给导师。导师收到邮件后,会在本任务的issue评论内通过命令反馈评审结果。

likedislike
opengauss_bot
opengauss_bot成员
7月20日 评论:

This issue requires an assignee. Since you haven't specified one, we've assigned TestManager as the default assignee for this issue.

likedislike
opengauss_botopengauss_bot成员
7月20日 将 TestManager 设为负责人
opengauss_botopengauss_bot成员
7月20日 添加了label:sig/Community
opengauss_bot
opengauss_bot成员
7月20日 评论:

Welcome To openGauss Community

Hey @totaj , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.

Contact Guide

If you have any questions, please contact the SIG: Community ,
and any of the maintainers: @CarrotGo, @chendong76, @chenxiaobin19, @congzhou2603, @dodders, @hwworkholic, @jemappellehc, @muyulinzhong, @quemingjian, @shenzheng4, @shirley_zhengx, @superlchf, @totaj, @wlff234, @wofanzheng, @ywzq1161327784 ,
and any of the committers: @ailoooong, @gzbang, @libiao2024, @zhangxubo .

likedislike
Rourou2285Rourou2285
8月26日 关联了pull request:【实习#44】dolphin: 修复 prepared 二进制参数遇 0x00 截断
totajtotaj成员
8月27日 修改了issue 的描述
Rourou2285Rourou2285
9月1日 关联了pull request:【实习#44】examples: mysql crate 兼容性测试项目、测试报告与缺陷报告
opengauss_bot
opengauss_bot成员
9月1日 评论:

@Rourou2285 , 您还未通过开源实习资格申请, 无法领取此任务, 请先完成实习申请.

likedislike
Rourou2285
Rourou2285
9月1日 评论:

/intern-assign

likedislike
opengauss_bot
opengauss_bot成员
9月1日 评论:

@Rourou2285 , 您还未通过开源实习资格申请, 无法领取此任务, 请先完成实习申请.

likedislike
Rourou2285Rourou2285
9月11日 关联了pull request:【回合 7.0.0】dolphin MySQL 协议修复回合(出站>16MB 分包 / OK·EOF 事务标志 / prepared 参数剥离高位标志)
Rourou2285Rourou2285
29 天前 关联了pull request:【回合 7.0.0】fix: 出站消息按 0xFFFFFF 分包,修复 >16MB 大结果读回失败(master !2566 回合)
Rourou2285Rourou2285
26 天前 关联了pull request:docs: 说明 MySQL 协议兼容不支持同连接切换用户(COM_CHANGE_USER)