# Limits and troubleshooting

> Diagnose connection and migration failures and identify workloads that still need a trial.

---

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

---

## Connection problems {#connections}

| Symptom | What to check | Action |
|---|---|---|
| `mysql` looks for a socket file, or gets a protocol error | The MySQL listener is TCP-only. Port 5432 normally speaks PostgreSQL. | Use `--protocol=TCP -h 127.0.0.1 -P 3306` or substitute the configured address and port. |
| Connection refused after a configuration change | Via `psql`, check `SHOW shared_preload_libraries` and `pg_settings.pending_restart`. In the server log look for `MySQL protocol listening on port` or a socket bind warning. | Restart after changing the preloads, addresses or port. Check port conflicts, `mysql.listener_on` and whether `mysql.port=0`. |
| Login fails before any SQL | Check the first matching HBA line using the **PostgreSQL database name**, role, client IP and TLS mode. Check the role has `LOGIN`, a current password and the required verifier. | Correct the matching rule, reload HBA, reconnect and verify the certificate. For cold-cache SHA-2 login use TLS or a client configured for RSA exchange. |
| Ordinary role is told to install the extension | In `psql` check `SHOW mysql.database`. Connect to that database and query `pg_extension` there. | As a superuser run `CREATE EXTENSION pg_mysql` in the target. Grant the application access to its schema. |
| Login works but tables are missing | Compare MySQL `SELECT DATABASE()` with native `SELECT current_database()` and the table's schema. | Use `USE app` in MySQL and a schema-qualified name such as `app.notes` in the native target database. |
| Module missing or server refuses to start after removing a preload | Check the selected installation's `pg_config --pkglibdir`, the preload list and the startup log. A cluster can record `mysql` in `mimus_required_features` once it has installed MySQL objects. | Restore the matching kernel, module and preload. To close the port while keeping the required callbacks, restart with `mysql.listener_on=off`. [Kernel checks](/docs/patches/mysql/) |

## Unexpected results or failed restore {#gaps}

| Observation | Check or remedy |
|---|---|
| 1264 on a large positive ID, 1366 on text, 1292 on a date or time | Compare the source range, raw bytes or temporal value. Convert explicitly before replay. [Type examples](/docs/mysql/compatibility/#semantics) |
| Unique-key conflicts differ or ordering changed | Run `SHOW WARNINGS` immediately after DDL, then `SHOW CREATE TABLE`. Compare the effective collation, key prefix and candidate duplicates. For a comparator version warning, inventory dependent indexes and partition keys before rebuilding and checking them. [Collation example](/docs/mysql/compatibility/#collation) |
| A foreign-key violation persists after disabling checks | Check referenced-key uniqueness and the owner of each referencing table. Re-enabling checks does not repair old rows. [FK behavior](/docs/mysql/compatibility/#constraints) |
| A dump contains rows, but the client exited nonzero | Treat the dump as incomplete. Inspect generated columns, trigger definitions and the exact client version. Oracle 5.7.32 returned 2 on the quick-start identity table with default trigger export. [Rehearsed alternatives](/docs/mysql/operations/#mysql-dump) |
| `pgcmp` installation conflicts over the `bit` to `bytea` cast | Install `pgcmp` and `pg_mysql` in separate PostgreSQL databases. |

## Limits to account for before cutover {#summary}

Stored procedures through the MySQL dialect, MySQL Unix sockets, `KILL [QUERY]`, `COM_CHANGE_USER` and MySQL GTID replication are unavailable. Applications requiring these interfaces need changes before cutover. For consistent reporting or exclusive maintenance, use the [tested transaction behavior](/docs/mysql/compatibility/#transactions).

Workloads using other drivers or pool reset policies, MySQL 8-specific metadata and collation tailoring, arbitrary stored DDL, or their own triggers need application-level verification. An advertised version string, an ORM login and a single successful query each leave those paths open. The published examples also leave production key-provider recovery and the performance of large prefix-key collision groups to the operator's rehearsal. [Driver coverage](/docs/mysql/drivers/) · [Restore coverage](/docs/mysql/operations/)

---

Backlinks:

- [MySQL compatibility as a PostgreSQL 18 extension](/blog/mysql-as-a-postgresql-18-extension/)
- [MySQL](/docs/mysql/)
- [SQL and type compatibility](/docs/mysql/compatibility/)
