Test CoverageedocErlang/OTP 26+Apache-2.0

What is msmp?

An Apache licensed MySQL/MariaDB pure protocol library using scran decoders and narcs encoders. An example client Erlang/OTP 26+ is msc that includes replication using this library.

Protocol Support

The main motivation of this library is to provide good support for binary replication in both MySQL and MariaDB.

Replication Protocol

This section covers the binlog protocol used by MySQL and MariaDB for binary replication.

The following binlog events are supported for binary replication via msmp_binlog_event.

The following binlog field types are supported when rows are being updated, written or deleted:

Binary Protocol

There is also a binary protocol used to prepare, bind and execute statements. Though the field types and encoding used are separate to the ones used by replication.

Text Protocol

The text protocol is used for simple query:

Connection Phase

The following are used in the connection phase of the protocol to negotiate capabilities between the client and server, requesting SSL (TLS), authentication and completing the handshake.