Install and connect
This walkthrough uses a fresh Linux instance, a local PostgreSQL administrator and a MariaDB mysql client. Install the OpenSSL command-line tool for the certificate step. Both ports must be free. At the end, the application owns one schema and can create and read its own tables. The TLS certificate below is for this loopback example.
Install the matching server and extension
This example builds the 19.0.1-r4 server and MySQL extension from two local repositories, pgsty/mimus in mimus/ and pgsty/pg_mysql in pg_mysql/. The candidate branches are pending upload. Run the commands in Bash from their common parent directory. Have the administrator prepare a fresh /usr/mimus-19 prefix writable by the build user. On Debian 13 the build uses build-essential, git, tar, bison, flex, perl (including FindBin), pkg-config, libicu-dev, libssl-dev, libreadline-dev and zlib1g-dev.
Expect PostgreSQL 19.0 and the installed control file. If the exact kernel is already installed, set PREFIX to that installation and skip the kernel archive, configure and make steps. The extension uses its installed server headers and PGXS through bin/pg_config. The server account needs read and execute access to the installation. Kernel and source identities
Initialize, preload and restart
In a shell running as OS user postgres, choose an unused data directory. The native socket uses peer authentication and the TCP loopback entries use SCRAM. Start PostgreSQL once, then enable the second listener. On an existing service, preserve its other preload entries and use its usual restart command.
Expect pg_mysql. SQL installation is per PostgreSQL database. Preloading is cluster-wide and takes effect at restart.
Prepare the database and role in psql
From the same shell, run psql -X -v ON_ERROR_STOP=1 -d postgres. As the database superuser, enter the following. At the password prompt, choose a password for the new role. The fresh database grants CONNECT to PUBLIC; if you revoked it, grant CONNECT ON DATABASE postgres to app_user.
Expect extension version 1.0. Earlier development builds, including unified RC2, also report 1.0. To move an application from one of those builds, install into a fresh cluster and restore its application schema and data. Check direct calls to private helper functions before restoring views. Schema ownership gives app_user the rights required by this example.
Write with mysql and read with psql
In the same OS shell, connect over TCP as the ordinary database role. Supply the password just set. If the client runs under another OS account, give it a readable copy of the public certificate and adjust the CA path.
At the mysql prompt, run these statements in schema app.
With the default configuration the first query returns app, 5.7.32-log and mimus. The TLS check returns 1, and the last query returns one row, 1 | hello. Type exit, then cross-check on the native port as the database administrator.
Connect from another host
Configure the intended interface, HBA rule, trusted CA and server identity before opening the listener to the application. Oracle MySQL and MariaDB use different TLS option names. Authentication and TLS