# Implementing the MySQL server protocol for fun and profit

**URL:** <https://forum.devtalk.com/t/implementing-the-mysql-server-protocol-for-fun-and-profit/88440>\
**Category:** In The News\
**Tags:** fun, mysql, in-the-news\
**Created:** [23 December 2022 15:08 UTC](https://forum.devtalk.com/t/implementing-the-mysql-server-protocol-for-fun-and-profit/88440 "2022-12-23T15:08:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![CommunityNews](https://forum.devtalk.com/user_avatar/forum.devtalk.com/communitynews/32/1113_2.png) [@CommunityNews](https://forum.devtalk.com/u/CommunityNews)\
**Post date:** [23 December 2022 15:08 UTC](https://forum.devtalk.com/t/implementing-the-mysql-server-protocol-for-fun-and-profit/88440/1 "2022-12-23T15:08:14Z")

</div>

> Implementing the MySQL server protocol for fun and profit.  
> In December 2021, a company from San Francisco asked me to port a Rust library to Java. The task seemed simple, but it ended up requiring a from-scratch implementation of the MySQL protocol and even fixing a bug in the main Rust MySQL client! Below follows an account of the adventure.  
> The task Originally, the idea was to port the msql-srv library from Rust to Java. For context, msql-srv makes it possible to create a fake MySQL/MariaDB server, which accepts MySQL connections and handles them with custom logic (instead of having a real database behind it).

Read in full here:

> **[Implementing the MySQL server protocol for fun and profit](https://ochagavia.nl/blog/implementing-the-mysql-server-protocol-for-fun-and-profit/)**
>
> In December 2021, a company from San Francisco asked me to port a Rust library to Java. The task seemed simple, but it ended up requiring a from-scratch implementation of the MySQL protocol and even fixing a bug in the main Rust MySQL client! Below...

_This thread was posted by one of our members via one of our news source trackers._
