# MySQL in SQLEye

> How SQLEye runs MySQL 8.0 and 8.4, covering managed config, root with no password, binding, how capture polls performance_schema, and limits.

Source: https://sqleye.com/docs/engines/mysql/ · Last updated: 2026-11-29 · Publisher: CodeROG (https://coderog.com)

SQLEye runs MySQL 8.0.46 or 8.4.11 (as of 2026-11-29) on `127.0.0.1` with the `root` user and no password.

## How is the server set up?

The data directory is created with `mysqld --initialize-insecure`. SQLEye writes `instances/<id>/my.cnf`, which starts with "# Managed by SQLEye - edits are overwritten.":

| Setting | Value |
| --- | --- |
| `bind-address` | `127.0.0.1` |
| `mysqlx` | `OFF` (X protocol off) |
| `max_connections` | `50` |
| `performance_schema` | `ON` |
| `events_statements_history_long` size | `10000` |

> **Caution.**
Root without a password means anyone who can reach the port can connect. That is acceptable because of the `127.0.0.1` binding. Do not expose the port.

## What is the connection string?

```text
mysql://root@127.0.0.1:<port>
```

```bash
mysql -h 127.0.0.1 -P <port> -u root
```

## How does capture work?

SQLEye enables the `events_statements_history_long` consumer while capture is on and polls it every 250 ms, using a `TIMER_END` watermark so each statement is read once. SQLEye's own thread is excluded.

If more statements arrive between polls than the history holds, some can be missed.

## What is captured only on MySQL?

SQL text, duration, rows sent or affected, **rows examined**, **No index used** (from `NO_INDEX_USED` and `NO_GOOD_INDEX_USED`), schema, error message, connection id and user. Rows examined and No index used are not available for PostgreSQL.

## Is the download big?

Yes, hundreds of MB. Progress is shown and you can cancel. See [engines](/docs/engines/).
