spaiz / go-mysql-proxy

MySQL Proxy Journey

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-mysql-proxy

This repository is a result of writing serie of articles Writing MySQL Proxy that I'm posting on Medium website.

1 - Writing MySQL Proxy in GO for self-learning: Part 1 — TCP Proxy 2 - Writing MySQL Proxy in GO for self-learning: Part 2 — decoding handshake packet

The main goal is to learn the MySQL Protocol by implementing it.

The plan:

  • Implement TCP Proxy as a starting point
  • Implement state machine
  • Implement query/query data buffering
  • Implement plugins

Packets decode/encode todo:

  • Handshake Packet
  • Authorization Packet

go version go1.12.9

To try it, just clone, and run:

go run .

About

MySQL Proxy Journey


Languages

Language:Go 100.0%