Skip to content

MySQL

Connect a MySQL application to Mimus 19.0.1 and read the same tables with PostgreSQL.

A MySQL client can create a table on TCP port 3306 and a PostgreSQL client can read it on port 5432. Mimus 19.0.1 runs PostgreSQL 19.0 with the OpenHalo protocol hooks and the standalone pg_mysql 1.0 extension. The two connections share tables, roles and transactions committed by other sessions. Each uses its own wire protocol and SQL dialect.

Which database am I using?

All MySQL connections enter the PostgreSQL database selected by mysql.database (default postgres). Inside it, a MySQL “database” is a PostgreSQL schema. With the example settings, mysql … app selects schema app and psql -d postgres sees its table as app.notes. A MySQL USE changes the selected schema on that connection.

First connection

Install and connect takes you from matching source trees to an ordinary login, an insert and a native PostgreSQL read. For additional hosts and existing services, see server configuration and authentication.

Before moving an application

Start with the columns that identify rows and the transactions that read them. An unsigned 64-bit key can exceed the supported range, and two plain reads in a writable REPEATABLE READ transaction can see different commits. Check your source values and replay one complete transaction with your own driver. SQL and types · Tested drivers · Migration and recovery · Limits and troubleshooting

How it works

OpenHalo contributed the protocol and grammar. Mimus pairs the 300/301 kernel changes with a separately built extension. MySQL kernel patches · Source versions and credits

Use a separate instance for applications that need the SQL Server protocol. For additional dialect reference see the PG.CENTER OpenHalo manual. Instance configuration · OpenHalo reference

Install the matching pg_mysql, enable its listener and write a row as an application user.

Check login, query results, server-side preparation and application workflows.