# 300 / 301 · MySQL

> How the OpenHalo connection hooks and pg_mysql share the PostgreSQL backend.

---

LLMS index: [llms.txt](/llms.txt)

---

300 imports the server-side changes selected from OpenHalo v19.0.0. Its protocol hooks let a preloaded module register a listener and drive the client handshake and command loop in a PostgreSQL backend. `pg_mysql` supplies the MySQL protocol and dialect. The native listener continues to speak PostgreSQL. [OpenHalo](https://github.com/pgsty/openhalo)

301 adapts protocol registration, type coercion, collation and foreign-key handling, and the server defaults. It checks for the registered MySQL callbacks on a cluster that depends on them. Use the matching `pg_mysql` build when starting or restoring that cluster. An application migration should exercise its actual driver and column types. Deploy a separate instance if TDS access is also required.

For application access and compatibility, see the [MySQL manual](/docs/mysql/).

---

Backlinks:

- [MySQL compatibility as a PostgreSQL 18 extension](/blog/mysql-as-a-postgresql-18-extension/)
- [The kernel patches pg_tde needs and their upstream prospects](/blog/pg-tde-kernel-patches-and-upstream/)
- [MySQL](/docs/mysql/)
- [Protocol, dialect and origins](/docs/mysql/architecture/)
- [Limits and troubleshooting](/docs/mysql/status/)
